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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin794
RA = 354.904, Dec = 2.7102
tmin = 445132801, tmax = 445392001
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='73191', job_status='RUN', time_executed='2021-09-30 02:42:43.514703', time_epoch_executed='1632994963.51' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='794'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73191

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73191/ft1_4FGL_J2339.6+0242_daily_bin794.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73191/ft2_4FGL_J2339.6+0242_daily_bin794.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73191/ft1_4FGL_J2339.6+0242_daily_bin794.fits outfile=/scratch/kocevski/73191/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin794.fits ra=354.904 dec=2.7102 rad=12.0 tmin=445132801.0 tmax=445392001.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.61
user 3.39
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/73191/ft2_4FGL_J2339.6+0242_daily_bin794.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/73191/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin794.fits evtable="EVENTS" outfile="/scratch/kocevski/73191/ft1_filtered_4FGL_J2339.6+0242_daily_bin794.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/73191/ft1_filtered_4FGL_J2339.6+0242_daily_bin794.fits" evtable="EVENTS" scfile=/scratch/kocevski/73191/ft2_4FGL_J2339.6+0242_daily_bin794.fits sctable="SC_DATA" outfile=/scratch/kocevski/73191/ltcube_445132801_445392001_4FGL_J2339.6+0242_daily_bin794.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/73191/ft2_4FGL_J2339.6+0242_daily_bin794.fits
.....................!
real 12.68
user 12.36
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73191/ft1_filtered_4FGL_J2339.6+0242_daily_bin794.fits evtable="EVENTS" scfile=/scratch/kocevski/73191/ft2_4FGL_J2339.6+0242_daily_bin794.fits sctable="SC_DATA" expcube=/scratch/kocevski/73191/ltcube_445132801_445392001_4FGL_J2339.6+0242_daily_bin794.fits outfile=/scratch/kocevski/73191/expmap_445132801_445392001_4FGL_J2339.6+0242_daily_bin794.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/73191/ltcube_445132801_445392001_4FGL_J2339.6+0242_daily_bin794.fits
.....................!
real 189.30
user 185.05
sys 3.90

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/73191/ft1_filtered_4FGL_J2339.6+0242_daily_bin794.fits scfile=/scratch/kocevski/73191/ft2_4FGL_J2339.6+0242_daily_bin794.fits outfile=/scratch/kocevski/73191/cmap_445132801_445392001_4FGL_J2339.6+0242_daily_bin794.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/73191/ft1_filtered_4FGL_J2339.6+0242_daily_bin794.fits scfile=/scratch/kocevski/73191/ft2_4FGL_J2339.6+0242_daily_bin794.fits outfile=/scratch/kocevski/73191/cmap_HighResolution_445132801_445392001_4FGL_J2339.6+0242_daily_bin794.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.62
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1585       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0828       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.0877       1.0000         .10000E-03   10000.    
     6 'norm      '    10.141       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.8077       1.0000         .10000E-03   10000.    
     8 'norm      '    1.8144       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.285       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9077       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8821       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.299       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.969       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.3761       1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.8342       1.0000         .10000E-03   10000.    
    27 'Prefactor '    48.859       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .85719       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0347       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=   5751.268     FROM MIGRAD    STATUS=CONVERGED    755 CALLS     3907 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1586        10.815        .50753E-06    .88347E-04
   2  Prefactor     .10000E-03    32.585       -.52954E-06** at limit **
   3  Prefactor     3.0827        13.954        .36556E-05   -.24781E-04
   4  Prefactor     .10000E-03    4.7681        .11704E-07** at limit **
   5  norm          6.0878        3.4550       -.12727E-06    .73291E-04
   6  norm          10.141        5.6011       -.16972E-07    .64413E-05
   7  Prefactor     4.8076        10.692        .13303E-05   -.20989E-04
   8  norm          1.8141        11.640        .77736E-05   -.73489E-04
   9  Prefactor     .10000E-03    32.307       -.39951E-06** at limit **
  10  Prefactor     .10001E-03    27.376       -.13413E-05** at limit **
  11  Prefactor     26.286        18.764        .97162E-07    .48389E-04
  12  Prefactor     6.9076        6.8145        .47109E-07    .20398E-04
  13  norm          1.8820        1.1128        .10855E-06    .10043E-02
  14  norm          .10000E-03    2.0115       -.14697E-07** at limit **
  15  Prefactor     .10000E-03    4.5184       -.96728E-08** at limit **
  16  Prefactor     34.298        43.843        .72971E-06    .73275E-04
  17  norm          .10000E-03    6.5036       -.24981E-07** at limit **
  18  Prefactor     17.969        8.4161        .20237E-07   -.25401E-03
  19  Prefactor     .10000E-03    235.38        .61402E-06** at limit **
  20  Prefactor     .10000E-03    21.092        .60567E-06** at limit **
  21  Prefactor     .10000E-03    14.873       -.16184E-06** at limit **
  22  norm          9.3762        16.336        .11717E-06   -.12674E-04
  23  norm          .10000E-03    11.484        .73394E-07** at limit **
  24  Prefactor     .10000E-03    14.227        .36315E-06** at limit **
  25  Prefactor     .10000E-03    3.1526        .15457E-06** at limit **
  26  Prefactor     4.8330        36.977        .10875E-05    .38270E-04
  27  Prefactor     48.859        29.342        .45883E-06    .81913E-04
  28  Prefactor     .10000E-03    5.2337        .35229E-08** at limit **
  29  Normalizat    .85720        .21849       -.84074E-06   -.58565E-04
  30  Prefactor     1.0347        .14703       -.50783E-06   -.10555E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.15861
  Prefactor  = 0.0001
  Prefactor  = 3.0827
  Prefactor  = 0.0001
  norm       = 6.08781
  norm       = 10.1414
  Prefactor  = 4.80765
  norm       = 1.81408
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 26.2855
  Prefactor  = 6.90758
  norm       = 1.88204
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.2979
  norm       = 0.0001
  Prefactor  = 17.9688
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 9.37623
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.83298
  Prefactor  = 48.8594
  Prefactor  = 0.0001
  Normalizat = 0.857198
  Prefactor  = 1.0347
 **********
 **   18 **HESSE 
 **********

 FCN=   5751.268     FROM HESSE     STATUS=OK           582 CALLS     4489 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1586        10.819        .70182E-03   -1.5137    
   2  Prefactor     .10000E-03    32.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.0827        13.885        .11550E-02   -1.5357    
   4  Prefactor     .10000E-03    4.8193        .16171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.0878        3.4528        .96450E-04   -1.5214    
   6  norm          10.141        5.5985        .12582E-03   -1.5071    
   7  Prefactor     4.8076        10.675        .91740E-03   -1.5269    
   8  norm          1.8141        11.661        .15505E-02   -1.5439    
   9  Prefactor     .10000E-03    32.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    28.368        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.286        18.781        .78137E-04   -1.4682    
  12  Prefactor     6.9076        6.8154        .15265E-03   -1.5182    
  13  norm          1.8820        1.1115        .58901E-04   -1.5434    
  14  norm          .10000E-03    2.0169        .10502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.5320        .15741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     34.298        43.894        .68424E-04   -1.4536    
  17  norm          .10000E-03    6.5514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.969        8.4244        .94484E-04   -1.4860    
  19  Prefactor     .10000E-03    235.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.839        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.3762        16.337        .13088E-03   -1.5095    
  23  norm          .10000E-03    11.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.2651        .26278E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     4.8330        36.971        .18297E-03   -1.5268    
  27  Prefactor     48.859        29.394        .57369E-04   -1.4309    
  28  Prefactor     .10000E-03    5.2389        .16944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .85720        .25112        .31500E-03   -.97981    
  30  Prefactor     1.0347        .16928        .20560E-03   -.91582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.02754e-10
Minuit parameter uncertainties:
  1  10.8217
  2  5.88582e-05
  3  13.0895
  4  1.40461e-06
  5  3.45293
  6  5.59882
  7  10.6791
  8  9.20112
  9  5.30602e-05
  10  0.0011392
  11  18.7847
  12  6.81619
  13  1.11156
  14  1.75638e-06
  15  7.12669e-07
  16  43.9352
  17  3.68673e-06
  18  8.42496
  19  2.50328e-05
  20  0.000373795
  21  5.35168e-05
  22  16.3445
  23  3.44234e-05
  24  2.10143e-05
  25  2.07416e-05
  26  26.757
  27  29.4023
  28  1.55809e-06
  29  0.251461
  30  0.16937
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  4.833e+00  2.676e+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.035e+00  1.694e-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.572e-01  2.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 354.904 2.710
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/73191/likelihoodResults_445132801_445392001_4FGL_J2339.6+0242_daily_bin794.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) = 5751.23846868
delta logL = 0.0298237630941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5751.23786005
delta logL = 0.0304323887149

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2978       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1152       1.0000          .0000       10.000    
     3 'Normalizat'    .85042       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0369       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=   5751.238     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      300 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3372        244.06        .48582E-02    .94089E-04
   2  Index         3.1144        1.9928        .46203        .17837E-04
   3  Normalizat    .85049        .24434E-01    .71441E-01    .24312E-04
   4  Prefactor     1.0369        .17417E-01    .40747E-01    .19162E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.3372
  Index      = 3.11445
  Normalizat = 0.850495
  Prefactor  = 1.03687
 **********
 **   18 **HESSE 
 **********

 FCN=   5751.238     FROM HESSE     STATUS=OK            33 CALLS      333 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3372        24.707        .19433E-03   -1.5291    
   2  Index         3.1144        2.3527        .73025E-02   -.38667    
   3  Normalizat    .85049        .23775        .31613E-03   -.98222    
   4  Prefactor     1.0369        .16820        .20540E-03   -.91510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55215e-11
Minuit parameter uncertainties:
  1  20.7163
  2  2.46786
  3  0.238038
  4  0.168289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73191': 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) = 5751.23785664
delta logL = 0.0304358040103

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  4.337e+00  2.072e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  3.114e+00  2.468e+00  0.000e+00  1.000e+01 (-1.000e+00)
465        Scale:  7.790e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.037e+00  1.683e-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.505e-01  2.380e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 354.904 2.710

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/73191/cmap_HighResolution_445132801_445392001_4FGL_J2339.6+0242_daily_bin794.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.95e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-30 02:55:17.524896', job_id='73191', GAL2='1.04', fit_tolerance='1e-08', EG2='0.85', EG='0.86', time_epoch_completed='1632995717.52', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.04e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='794' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:55:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 73191: <4FGL_J2339.6+0242_daily_bin794> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin794 354.904 2.7102 445132801 445392001 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 :                                   751.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            885 sec.

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

