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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin701
RA = 354.904, Dec = 2.7102
tmin = 421027201, tmax = 421286401
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='73051', job_status='RUN', time_executed='2021-09-30 02:41:17.284731', time_epoch_executed='1632994877.28' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='701'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73051

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73051/ft1_4FGL_J2339.6+0242_daily_bin701.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73051/ft2_4FGL_J2339.6+0242_daily_bin701.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73051/ft1_4FGL_J2339.6+0242_daily_bin701.fits outfile=/scratch/kocevski/73051/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin701.fits ra=354.904 dec=2.7102 rad=12.0 tmin=421027201.0 tmax=421286401.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.76
user 3.50
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/73051/ft2_4FGL_J2339.6+0242_daily_bin701.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/73051/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin701.fits evtable="EVENTS" outfile="/scratch/kocevski/73051/ft1_filtered_4FGL_J2339.6+0242_daily_bin701.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73051/ft1_filtered_4FGL_J2339.6+0242_daily_bin701.fits" evtable="EVENTS" scfile=/scratch/kocevski/73051/ft2_4FGL_J2339.6+0242_daily_bin701.fits sctable="SC_DATA" outfile=/scratch/kocevski/73051/ltcube_421027201_421286401_4FGL_J2339.6+0242_daily_bin701.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/73051/ft2_4FGL_J2339.6+0242_daily_bin701.fits
.....................!
real 11.75
user 11.39
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73051/ft1_filtered_4FGL_J2339.6+0242_daily_bin701.fits evtable="EVENTS" scfile=/scratch/kocevski/73051/ft2_4FGL_J2339.6+0242_daily_bin701.fits sctable="SC_DATA" expcube=/scratch/kocevski/73051/ltcube_421027201_421286401_4FGL_J2339.6+0242_daily_bin701.fits outfile=/scratch/kocevski/73051/expmap_421027201_421286401_4FGL_J2339.6+0242_daily_bin701.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/73051/ltcube_421027201_421286401_4FGL_J2339.6+0242_daily_bin701.fits
.....................!
real 190.68
user 185.40
sys 4.96

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/73051/ft1_filtered_4FGL_J2339.6+0242_daily_bin701.fits scfile=/scratch/kocevski/73051/ft2_4FGL_J2339.6+0242_daily_bin701.fits outfile=/scratch/kocevski/73051/cmap_421027201_421286401_4FGL_J2339.6+0242_daily_bin701.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.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    47.584       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10780E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.2419       1.0000         .10000E-03   10000.    
     6 'norm      '    4.3878       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    14.684       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.344       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.312       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .15307       1.0000         .10000E-03   10000.    
    14 'norm      '    .11613E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.0314       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.5295       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    22.515       1.0000         .10000E-03   10000.    
    23 'norm      '    12.150       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11871E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    105.20       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    17.323       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .78167       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .98832       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=   6700.000     FROM MIGRAD    STATUS=CONVERGED    757 CALLS     4018 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0103       -.56412E-06** at limit **
   2  Prefactor     47.586        38.223        .18866E-05    .16528E-05
   3  Prefactor     .10000E-03    43.947        .69879E-05** at limit **
   4  Prefactor     .10000E-03    2.1809        .26547E-07** at limit **
   5  norm          6.2418        3.4528        .33853E-07   -.89357E-03
   6  norm          4.3880        3.8857       -.68323E-06   -.42537E-04
   7  Prefactor     .10000E-03    9.0175        .77310E-06** at limit **
   8  norm          14.685        13.307        .24182E-06   -.74011E-06
   9  Prefactor     .10000E-03    11.806       -.15437E-05** at limit **
  10  Prefactor     11.345        11.972        .16984E-06   -.59949E-04
  11  Prefactor     19.313        15.311        .11004E-06   -.11897E-05
  12  Prefactor     .10000E-03    5.3993        .10968E-05** at limit **
  13  norm          .15300        .57372        .40474E-07   -.19175E-04
  14  norm          .10000E-03    2.7412       -.46446E-06** at limit **
  15  Prefactor     6.0316        6.8341        .19925E-07   -.93798E-04
  16  Prefactor     .10000E-03    11.287        .14360E-05** at limit **
  17  norm          2.5300        2.1155        .45860E-07   -.82864E-03
  18  Prefactor     .10000E-03    1.7905       -.48926E-07** at limit **
  19  Prefactor     .10000E-03    48.344       -.66717E-05** at limit **
  20  Prefactor     .10000E-03    4.4892       -.18160E-07** at limit **
  21  Prefactor     .10000E-03    8.4991       -.65755E-06** at limit **
  22  norm          22.515        17.259        .11086E-06   -.28850E-06
  23  norm          12.151        19.703        .64747E-06    .26046E-04
  24  Prefactor     .10000E-03    31.743       -.65573E-06** at limit **
  25  Prefactor     .10000E-03    2.2352       -.14863E-06** at limit **
  26  Prefactor     105.21        47.973        .45286E-05    .23168E-05
  27  Prefactor     .10000E-03    7.7553        .30779E-06** at limit **
  28  Prefactor     17.325        17.995        .25651E-06   -.27264E-04
  29  Normalizat    .78156        .18963       -.12830E-05    .22908E-05
  30  Prefactor     .98839        .12505       -.60557E-07   -.28393E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 47.5857
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.24179
  norm       = 4.38802
  Prefactor  = 0.0001
  norm       = 14.6847
  Prefactor  = 0.0001
  Prefactor  = 11.3447
  Prefactor  = 19.3125
  Prefactor  = 0.0001
  norm       = 0.153002
  norm       = 0.000100001
  Prefactor  = 6.03158
  Prefactor  = 0.0001
  norm       = 2.52997
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.5152
  norm       = 12.1509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 105.206
  Prefactor  = 0.0001
  Prefactor  = 17.3245
  Normalizat = 0.781563
  Prefactor  = 0.988389
 **********
 **   18 **HESSE 
 **********

 FCN=   6700.000     FROM HESSE     STATUS=OK           586 CALLS     4604 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     47.586        38.235        .58129E-04   -1.4327    
   3  Prefactor     .10000E-03    44.631        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.1864        .11804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.2418        3.5599        .53870E-03   -1.5208    
   6  norm          4.3880        3.8922        .14733E-03   -1.5289    
   7  Prefactor     .10000E-03    9.0853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          14.685        13.326        .10452E-03   -1.4941    
   9  Prefactor     .10000E-03    11.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.345        11.977        .59472E-03   -1.5034    
  11  Prefactor     19.313        15.322        .91142E-04   -1.4829    
  12  Prefactor     .10000E-03    5.4365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .15300        .92438        .11143E-02   -1.5630    
  14  norm          .10000E-03    5.3055        .25948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.0316        6.8499        .81745E-03   -1.5217    
  16  Prefactor     .10000E-03    11.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.5300        6.5057        .12841E-02   -1.5390    
  18  Prefactor     .10000E-03    1.7962        .10694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    48.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.4987        .16914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.5156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          22.515        17.259        .84415E-04   -1.4759    
  23  norm          12.151        19.025        .11492E-03   -1.5011    
  24  Prefactor     .10000E-03    31.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.2990        .22764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     105.21        48.043        .39206E-04   -1.3653    
  27  Prefactor     .10000E-03    7.7628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     17.325        18.018        .96230E-04   -1.4875    
  29  Normalizat    .78156        .21763        .30991E-03   -1.0076    
  30  Prefactor     .98839        .14463        .19633E-03   -.93118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51577e-08
Minuit parameter uncertainties:
  1  1.7855e-06
  2  38.2544
  3  5.83116e-05
  4  3.77374e-07
  5  3.56003
  6  3.89246
  7  1.74716e-05
  8  13.3283
  9  2.78091e-06
  10  11.9794
  11  15.3255
  12  8.47249e-06
  13  0.751921
  14  0.000134533
  15  6.85083
  16  5.17253e-06
  17  6.50755
  18  9.33828e-07
  19  1.80502e-05
  20  1.11471e-05
  21  4.85335e-06
  22  17.2632
  23  19.0343
  24  1.38014e-05
  25  3.69188e-05
  26  48.0605
  27  1.11783e-05
  28  18.0235
  29  0.217869
  30  0.144689
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  9.884e-01  1.447e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  7.816e-01  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.51
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.27e-07 +/- 5.81e-08
Energy Flux (Fixed Index): 3.51e-05 +/- 1.60e-05

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) = 6699.76664583
delta logL = 0.233206077097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6699.74763641
delta logL = 0.252215497214

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    74.125       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8989       1.0000          .0000       10.000    
     3 'Normalizat'    .75026       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0045       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=   6699.748     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      294 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     74.082        65.084        .46634E-04   -.10410E-03
   2  Index         2.8984        .59707        .44118E-02   -.51542E-04
   3  Normalizat    .75024        .20924        .31565E-03    .86152E-04
   4  Prefactor     1.0048        .14513        .19493E-03   -.21016E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 74.0817
  Index      = 2.8984
  Normalizat = 0.750238
  Prefactor  = 1.00485
 **********
 **   18 **HESSE 
 **********

 FCN=   6699.748     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     74.082        58.426        .93268E-05   -1.3984    
   2  Index         2.8984        .53560        .17647E-03   -.43380    
   3  Normalizat    .75024        .20884        .12626E-04   -1.0194    
   4  Prefactor     1.0048        .14476        .38985E-04   -.92568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24648e-10
Minuit parameter uncertainties:
  1  58.4709
  2  0.536852
  3  0.209066
  4  0.144816
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73051': 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) = 6699.7476254
delta logL = 0.252226506936

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  7.408e+01  5.847e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.898e+00  5.369e-01  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.005e+00  1.448e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  7.502e-01  2.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.08
Ra Dec: 354.904 2.710
Photon Index (Free Index): 2.90 +/- 0.54
Photon Flux (Free Index): 1.50e-07 +/- 6.93e-08
Energy Flux (Free Index): 3.16e-05 +/- 1.45e-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/73051/cmap_HighResolution_421027201_421286401_4FGL_J2339.6+0242_daily_bin701.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.27e-07', energy_flux2='3.16e-05', photon_flux_error='5.81e-08', dlogl='2.52e-01', energy_flux='3.51e-05', photon_flux2='1.50e-07', job_status='DONE', time_completed='2021-09-30 02:53:47.030897', photon_index_error2='0.54', photon_index2='2.90', ts='7.51', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.45e-05', EG='0.78', time_epoch_completed='1632995627.03', return_code='0', job_id='73051', GAL2='1.00', EG2='0.75', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='6.93e-08', ts2='8.08', photon_index='2.55' WHERE bin_id='701' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:53:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 73051: <4FGL_J2339.6+0242_daily_bin701> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin701> 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) <bullet0241>, 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:53:47 2021
Results reported at Thu Sep 30 02:53:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin701 354.904 2.7102 421027201 421286401 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 :                                   748.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            807 sec.

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

