/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 235 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 = 7410
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2339.6+0242_daily_bin388
RA = 354.904, Dec = 2.7102
tmin = 339897601, tmax = 340156801
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='71519', job_status='RUN', time_executed='2021-09-30 02:39:22.483271', time_epoch_executed='1632994762.48' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='388'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71519

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71519/ft1_4FGL_J2339.6+0242_daily_bin388.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71519/ft2_4FGL_J2339.6+0242_daily_bin388.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71519/ft1_4FGL_J2339.6+0242_daily_bin388.fits outfile=/scratch/kocevski/71519/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin388.fits ra=354.904 dec=2.7102 rad=12.0 tmin=339897601.0 tmax=340156801.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.31
user 3.09
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/71519/ft2_4FGL_J2339.6+0242_daily_bin388.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/71519/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin388.fits evtable="EVENTS" outfile="/scratch/kocevski/71519/ft1_filtered_4FGL_J2339.6+0242_daily_bin388.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/71519/ft1_filtered_4FGL_J2339.6+0242_daily_bin388.fits" evtable="EVENTS" scfile=/scratch/kocevski/71519/ft2_4FGL_J2339.6+0242_daily_bin388.fits sctable="SC_DATA" outfile=/scratch/kocevski/71519/ltcube_339897601_340156801_4FGL_J2339.6+0242_daily_bin388.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/71519/ft2_4FGL_J2339.6+0242_daily_bin388.fits
.....................!
real 11.94
user 11.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71519/ft1_filtered_4FGL_J2339.6+0242_daily_bin388.fits evtable="EVENTS" scfile=/scratch/kocevski/71519/ft2_4FGL_J2339.6+0242_daily_bin388.fits sctable="SC_DATA" expcube=/scratch/kocevski/71519/ltcube_339897601_340156801_4FGL_J2339.6+0242_daily_bin388.fits outfile=/scratch/kocevski/71519/expmap_339897601_340156801_4FGL_J2339.6+0242_daily_bin388.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/71519/ltcube_339897601_340156801_4FGL_J2339.6+0242_daily_bin388.fits
.....................!
real 190.65
user 185.12
sys 5.15

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/71519/ft1_filtered_4FGL_J2339.6+0242_daily_bin388.fits scfile=/scratch/kocevski/71519/ft2_4FGL_J2339.6+0242_daily_bin388.fits outfile=/scratch/kocevski/71519/cmap_339897601_340156801_4FGL_J2339.6+0242_daily_bin388.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.58
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71519/ft1_filtered_4FGL_J2339.6+0242_daily_bin388.fits scfile=/scratch/kocevski/71519/ft2_4FGL_J2339.6+0242_daily_bin388.fits outfile=/scratch/kocevski/71519/cmap_HighResolution_339897601_340156801_4FGL_J2339.6+0242_daily_bin388.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.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7312       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.233       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.8897       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .13949E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    11.165       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.681       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2800       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.2424       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.384       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8935       1.0000         .10000E-03   10000.    
    14 'norm      '    .10181E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    37.174       1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .48787E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10746E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.551       1.0000         .10000E-03   10000.    
    21 'Prefactor '    43.533       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.8719       1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.126       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    70.443       1.0000         .10000E-03   10000.    
    27 'Prefactor '    51.442       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .35535E-02   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .66031       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0759       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=   5483.956     FROM MIGRAD    STATUS=CONVERGED    761 CALLS     4013 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7292        8.9772       -.10009E-05   -.47095E-04
   2  Prefactor     15.231        53.502       -.38379E-05   -.25012E-04
   3  Prefactor     5.8916        7.8310       -.99308E-06    .29341E-04
   4  Prefactor     .10000E-03    9.8307        .71482E-05** at limit **
   5  norm          .10000E-03    1.7525       -.49744E-06** at limit **
   6  norm          11.164        5.9520       -.44936E-06   -.15966E-03
   7  Prefactor     .10000E-03    7.7649        .86554E-05** at limit **
   8  norm          12.680        13.816       -.95639E-06    .12060E-04
   9  Prefactor     3.2571        92.054       -.37592E-04   -.67055E-05
  10  Prefactor     .10000E-03    2.9545       -.20501E-07** at limit **
  11  Prefactor     8.2404        11.599       -.35902E-05    .28601E-04
  12  Prefactor     13.368        16.290       -.78339E-05    .10230E-03
  13  norm          1.8927        1.1202        .11993E-06    .39471E-03
  14  norm          .10000E-03    7.0692       -.32041E-05** at limit **
  15  Prefactor     .10000E-03    3.5677       -.14271E-06** at limit **
  16  Prefactor     37.157        47.196       -.15237E-04    .16592E-04
  17  norm          .10000E-03    8.7941       -.11601E-04** at limit **
  18  Prefactor     .10006E-03    3.7821       -.23315E-05** at limit **
  19  Prefactor     .10000E-03    72.022        .64469E-05** at limit **
  20  Prefactor     10.543        14.684       -.34490E-05    .27752E-05
  21  Prefactor     43.553        28.940        .43230E-05    .61778E-03
  22  norm          .10000E-03    4.6059       -.26900E-07** at limit **
  23  norm          7.8793        28.602        .31877E-05   -.10034E-04
  24  Prefactor     19.134        52.317        .10748E-04    .16478E-04
  25  Prefactor     .10000E-03    1.9807        .75184E-07** at limit **
  26  Prefactor     70.444        48.340        .26771E-05    .87655E-04
  27  Prefactor     51.413        31.840       -.91954E-05    .14550E-03
  28  Prefactor     .10000E-03    13.164       -.20515E-05** at limit **
  29  Normalizat    .66071        .23321        .89581E-05    .56838E-03
  30  Prefactor     1.0759        .15141        .10482E-06    .10607E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.72923
  Prefactor  = 15.2313
  Prefactor  = 5.89162
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.1637
  Prefactor  = 0.0001
  norm       = 12.68
  Prefactor  = 3.25706
  Prefactor  = 0.0001
  Prefactor  = 8.24037
  Prefactor  = 13.3682
  norm       = 1.89271
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 37.1571
  norm       = 0.0001
  Prefactor  = 0.000100056
  Prefactor  = 0.0001
  Prefactor  = 10.5434
  Prefactor  = 43.5535
  norm       = 0.0001
  norm       = 7.87934
  Prefactor  = 19.1338
  Prefactor  = 0.0001
  Prefactor  = 70.444
  Prefactor  = 51.4131
  Prefactor  = 0.0001
  Normalizat = 0.660712
  Prefactor  = 1.07586
 **********
 **   18 **HESSE 
 **********

 FCN=   5483.956     FROM HESSE     STATUS=OK           590 CALLS     4603 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7292        8.9683        .16778E-03   -1.5229    
   2  Prefactor     15.231        53.456        .10262E-03   -1.4927    
   3  Prefactor     5.8916        7.8088        .16547E-03   -1.5222    
   4  Prefactor     .10000E-03    10.016        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.1634        .18904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.164        5.9510        .11990E-03   -1.5040    
   7  Prefactor     .10000E-03    7.7572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.680        13.801        .11249E-03   -1.4996    
   9  Prefactor     3.2571        92.497        .22358E-03   -1.5347    
  10  Prefactor     .10000E-03    2.9565        .12431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.2404        11.593        .13964E-03   -1.5134    
  12  Prefactor     13.368        16.230        .10949E-03   -1.4977    
  13  norm          1.8927        1.1113        .57034E-04   -1.5433    
  14  norm          .10000E-03    7.1753        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.5747        .13658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     37.157        47.205        .65734E-04   -1.4488    
  17  norm          .10000E-03    9.0041        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10006E-03    20.275        .26819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    72.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.543        14.613        .12335E-03   -1.5058    
  21  Prefactor     43.553        28.691        .60762E-04   -1.4387    
  22  norm          .10000E-03    4.6061        .15522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.8793        28.455        .14291E-03   -1.5146    
  24  Prefactor     19.134        52.227        .91583E-04   -1.4833    
  25  Prefactor     .10000E-03    1.9982        .10162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     70.444        48.292        .47829E-04   -1.4027    
  27  Prefactor     51.413        31.872        .55917E-04   -1.4273    
  28  Prefactor     .10000E-03    150.68        .51132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .66071        .25709        .34362E-03   -1.0546    
  30  Prefactor     1.0759        .17199        .19541E-03   -.90242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32621e-09
Minuit parameter uncertainties:
  1  8.97039
  2  53.6251
  3  7.81013
  4  0.000119488
  5  8.80754e-05
  6  5.95133
  7  2.8434e-05
  8  13.8044
  9  34.7731
  10  3.30305e-08
  11  11.5958
  12  16.2355
  13  1.11128
  14  0.000146194
  15  8.37074e-06
  16  47.2525
  17  7.3e-06
  18  0.00213049
  19  2.31481e-05
  20  14.6181
  21  28.7004
  22  1.66145e-06
  23  28.5039
  24  52.3524
  25  4.79063e-06
  26  48.3187
  27  31.8827
  28  0.000294975
  29  0.25756
  30  0.172076
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  7.044e+01  4.832e+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.076e+00  1.721e-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:  6.607e-01  2.576e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.23
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 8.53e-08 +/- 5.84e-08
Energy Flux (Fixed Index): 2.35e-05 +/- 1.61e-05

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

Saving results to:
/scratch/kocevski/71519/likelihoodResults_339897601_340156801_4FGL_J2339.6+0242_daily_bin388.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) = 5483.15584043
delta logL = 0.800575649614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5483.14936064
delta logL = 0.807055445303

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.547       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4926       1.0000          .0000       10.000    
     3 'Normalizat'    .60322       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1046       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=   5483.149     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      256 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.598        259.80        .19814E-02    .12073E-03
   2  Index         3.4922        3.2104        .11000        .16980E-03
   3  Normalizat    .60310        .89768E-01    .80828E-01    .24240E-04
   4  Prefactor     1.1047        .61435E-01    .37416E-01   -.23576E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.5976
  Index      = 3.49225
  Normalizat = 0.603102
  Prefactor  = 1.10466
 **********
 **   18 **HESSE 
 **********

 FCN=   5483.149     FROM HESSE     STATUS=OK            31 CALLS      287 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.598        48.263        .79255E-04   -1.4696    
   2  Index         3.4922        1.1511        .43628E-02   -.30632    
   3  Normalizat    .60310        .24545        .35794E-03   -1.0785    
   4  Prefactor     1.1047        .17313        .19304E-03   -.89318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66533e-11
Minuit parameter uncertainties:
  1  48.3367
  2  1.16258
  3  0.245895
  4  0.173219
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71519': 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) = 5483.14935693
delta logL = 0.807059155404

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  2.560e+01  4.834e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  3.492e+00  1.163e+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.105e+00  1.732e-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:  6.031e-01  2.459e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.03
Ra Dec: 354.904 2.710
Photon Index (Free Index): 3.49 +/- 1.16
Photon Flux (Free Index): 1.34e-07 +/- 7.45e-08
Energy Flux (Free Index): 2.23e-05 +/- 1.30e-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/71519/cmap_HighResolution_339897601_340156801_4FGL_J2339.6+0242_daily_bin388.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.56e-02', comment='SUCCESS', photon_flux='8.53e-08', energy_flux2='2.23e-05', photon_flux_error='5.84e-08', dlogl='8.07e-01', energy_flux='2.35e-05', photon_flux2='1.34e-07', job_status='DONE', time_completed='2021-09-30 02:51:54.752621', photon_index_error2='1.16', photon_index2='3.49', ts='3.23', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='2.00e-07', energy_flux_error2='1.30e-05', EG='0.66', time_epoch_completed='1632995514.75', return_code='0', job_id='71519', GAL2='1.10', EG2='0.60', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='7.45e-08', ts2='5.03', photon_index='2.55' WHERE bin_id='388' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:51:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 71519: <4FGL_J2339.6+0242_daily_bin388> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin388 354.904 2.7102 339897601 340156801 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 :                                   750.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             239.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   996 sec.
    Turnaround time :                            998 sec.

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

