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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin303
RA = 354.904, Dec = 2.7102
tmin = 317865601, tmax = 318124801
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='70076', job_status='RUN', time_executed='2021-09-30 02:34:51.194936', time_epoch_executed='1632994491.19' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='303'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70076

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70076/ft1_4FGL_J2339.6+0242_daily_bin303.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70076/ft2_4FGL_J2339.6+0242_daily_bin303.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70076/ft1_4FGL_J2339.6+0242_daily_bin303.fits outfile=/scratch/kocevski/70076/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin303.fits ra=354.904 dec=2.7102 rad=12.0 tmin=317865601.0 tmax=318124801.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.58
user 2.37
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/70076/ft2_4FGL_J2339.6+0242_daily_bin303.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/70076/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin303.fits evtable="EVENTS" outfile="/scratch/kocevski/70076/ft1_filtered_4FGL_J2339.6+0242_daily_bin303.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.41
user 0.28
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70076/ft1_filtered_4FGL_J2339.6+0242_daily_bin303.fits evtable="EVENTS" scfile=/scratch/kocevski/70076/ft2_4FGL_J2339.6+0242_daily_bin303.fits sctable="SC_DATA" expcube=/scratch/kocevski/70076/ltcube_317865601_318124801_4FGL_J2339.6+0242_daily_bin303.fits outfile=/scratch/kocevski/70076/expmap_317865601_318124801_4FGL_J2339.6+0242_daily_bin303.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/70076/ltcube_317865601_318124801_4FGL_J2339.6+0242_daily_bin303.fits
.....................!
real 149.89
user 146.16
sys 3.49

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/70076/ft1_filtered_4FGL_J2339.6+0242_daily_bin303.fits scfile=/scratch/kocevski/70076/ft2_4FGL_J2339.6+0242_daily_bin303.fits outfile=/scratch/kocevski/70076/cmap_317865601_318124801_4FGL_J2339.6+0242_daily_bin303.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.48
user 0.30
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70076/ft1_filtered_4FGL_J2339.6+0242_daily_bin303.fits scfile=/scratch/kocevski/70076/ft2_4FGL_J2339.6+0242_daily_bin303.fits outfile=/scratch/kocevski/70076/cmap_HighResolution_317865601_318124801_4FGL_J2339.6+0242_daily_bin303.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.31
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.345       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.7020       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10319E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .45768E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    17.906       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.821       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.381       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.271       1.0000         .10000E-03   10000.    
    17 'norm      '    .10199E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.199       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.1441       1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.073       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .90269       1.0000         .10000E-03   10000.    
    26 'Prefactor '    39.085       1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.227       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.9631       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .97964       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .74079       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=   6603.701     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     3970 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.345        8.0472       -.23183E-07   -.11672E-03
   2  Prefactor     .10000E-03    10.840        .10850E-06** at limit **
   3  Prefactor     6.6994        8.1375        .62602E-07   -.20925E-03
   4  Prefactor     .10000E-03    1.9297        .19242E-06** at limit **
   5  norm          .10000E-03    .39932        .91674E-07** at limit **
   6  norm          .10000E-03    2.3776        .71854E-06** at limit **
   7  Prefactor     .10004E-03    18.591        .71782E-05** at limit **
   8  norm          17.906        13.204        .14067E-06   -.11939E-03
   9  Prefactor     10.779        32.130       -.39610E-06   -.15323E-03
  10  Prefactor     22.382        15.075        .12005E-06   -.46188E-04
  11  Prefactor     .10000E-03    10.883       -.56268E-06** at limit **
  12  Prefactor     .10000E-03    2.2886        .74935E-07** at limit **
  13  norm          .10000E-03    .24942        .71518E-07** at limit **
  14  norm          .10000E-03    2.4195        .23824E-06** at limit **
  15  Prefactor     .10000E-03    5.1863       -.26283E-06** at limit **
  16  Prefactor     34.253        56.031       -.10973E-05   -.18231E-03
  17  norm          .10000E-03    10.378       -.66164E-06** at limit **
  18  Prefactor     22.203        9.1632        .40612E-06    .28661E-03
  19  Prefactor     .10000E-03    83.767        .74583E-07** at limit **
  20  Prefactor     .10000E-03    6.0727       -.54259E-06** at limit **
  21  Prefactor     8.1285        23.137        .11255E-05    .18353E-04
  22  norm          .10000E-03    11.385        .97946E-07** at limit **
  23  norm          .10000E-03    13.277       -.37931E-06** at limit **
  24  Prefactor     17.068        51.501       -.70466E-06   -.84643E-04
  25  Prefactor     .90514        3.1643        .14601E-05    .86914E-04
  26  Prefactor     39.086        36.596       -.47746E-06   -.22017E-03
  27  Prefactor     13.222        18.748        .26773E-06   -.93420E-04
  28  Prefactor     3.9639        9.7417        .83102E-06    .79629E-04
  29  Normalizat    .97982        .17920       -.17249E-05   -.11265E-02
  30  Prefactor     .74070        .11742       -.23683E-06   -.12161E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3454
  Prefactor  = 0.0001
  Prefactor  = 6.69943
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100038
  norm       = 17.9059
  Prefactor  = 10.7795
  Prefactor  = 22.3823
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.253
  norm       = 0.0001
  Prefactor  = 22.2028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.12854
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 17.0677
  Prefactor  = 0.905135
  Prefactor  = 39.0858
  Prefactor  = 13.2219
  Prefactor  = 3.96385
  Normalizat = 0.979824
  Prefactor  = 0.740695
 **********
 **   18 **HESSE 
 **********

 FCN=   6603.701     FROM HESSE     STATUS=OK           584 CALLS     4554 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.345        8.0477        .11894E-03   -1.5034    
   2  Prefactor     .10000E-03    10.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.6994        8.1410        .15500E-03   -1.5190    
   4  Prefactor     .10000E-03    1.9440        .11036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .40107        .50190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.4762        .23833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10004E-03    22.028        .39036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.906        13.215        .94650E-04   -1.4861    
   9  Prefactor     10.779        32.243        .12179E-03   -1.5051    
  10  Prefactor     22.382        15.082        .84668E-04   -1.4761    
  11  Prefactor     .10000E-03    10.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.2922        .12008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .32461        .78796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.4903        .24717E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.2364        .18069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     34.253        56.123        .68453E-04   -1.4537    
  17  norm          .10000E-03    10.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.203        9.2377        .85013E-04   -1.4765    
  19  Prefactor     .10000E-03    83.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.1154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.1285        23.210        .14049E-03   -1.5138    
  22  norm          .10000E-03    11.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    13.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     17.068        51.622        .96932E-04   -1.4881    
  25  Prefactor     .90514        4.4594        .24287E-02   -1.5518    
  26  Prefactor     39.086        36.642        .64113E-04   -1.4457    
  27  Prefactor     13.222        18.754        .11014E-03   -1.4981    
  28  Prefactor     3.9639        9.7814        .20262E-03   -1.5310    
  29  Normalizat    .97982        .20812        .26129E-03   -.93709    
  30  Prefactor     .74070        .13483        .20516E-03   -1.0195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26903e-09
Minuit parameter uncertainties:
  1  8.04842
  2  2.4596e-05
  3  8.14235
  4  1.57562e-05
  5  3.04742e-06
  6  4.21632e-05
  7  0.00184056
  8  13.2172
  9  32.2956
  10  15.0848
  11  9.45349e-05
  12  7.07939e-06
  13  2.22828e-06
  14  2.24658e-05
  15  3.02e-05
  16  56.2093
  17  0.000108371
  18  9.23825
  19  8.91338e-05
  20  8.58073e-05
  21  23.2355
  22  4.0876e-06
  23  0.000100726
  24  51.7573
  25  4.01841
  26  36.6634
  27  18.7623
  28  9.78529
  29  0.20829
  30  0.134889
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.909e+01  3.666e+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:  7.407e-01  1.349e-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:  9.798e-01  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.93
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.73e-08 +/- 4.43e-08
Energy Flux (Fixed Index): 1.30e-05 +/- 1.22e-05

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

Saving results to:
/scratch/kocevski/70076/likelihoodResults_317865601_318124801_4FGL_J2339.6+0242_daily_bin303.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) = 6599.28219446
delta logL = 4.4192523471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6599.0491515
delta logL = 4.65229531082

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19835E-03   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    .79897       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83862       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=   6599.049     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      457 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19856E-03    .18083E-03    .11360E-03** at limit **
   2  Index        10.0000        .71434        .48607    ** at limit **
   3  Normalizat    .79882        .17121        .64359E-01   -.30704E-03
   4  Prefactor     .83865        .11730        .44218E-01   -.41624E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000198563
  Index      = 10
  Normalizat = 0.798818
  Prefactor  = 0.838651
 **********
 **   18 **HESSE 
 **********

 FCN=   6599.049     FROM HESSE     STATUS=OK            35 CALLS      492 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19856E-03    .82090E-04    .59759E-06   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        .15728        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .79882        .20478        .28470E-03   -1.0011    
   4  Prefactor     .83865        .13934        .19402E-03   -.98319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.39187e-10
Minuit parameter uncertainties:
  1  8.209e-05
  2  2.61176e-05
  3  0.204983
  4  0.139401
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70076': 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) = 6599.04914677
delta logL = 4.65230003915

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.986e-04  8.209e-05  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  1.000e+01  2.612e-05  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:  8.387e-01  1.394e-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.988e-01  2.050e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.28
Ra Dec: 354.904 2.710
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.88e-07 +/- 7.51e-08
Energy Flux (Free Index): 2.10e-05 +/- 8.45e-06

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/70076/cmap_HighResolution_317865601_318124801_4FGL_J2339.6+0242_daily_bin303.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', photon_flux='4.73e-08', energy_flux2='2.10e-05', photon_flux_error='4.43e-08', dlogl='4.65e+00', energy_flux='1.30e-05', photon_flux2='1.88e-07', job_status='DONE', time_completed='2021-09-30 02:45:46.180844', photon_index_error2='0.00', photon_index2='10.00', ts='1.93', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='8.45e-06', EG='0.98', time_epoch_completed='1632995146.18', return_code='0', job_id='70076', GAL2='0.84', EG2='0.80', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='7.51e-08', ts2='12.28', photon_index='2.55' WHERE bin_id='303' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:45:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 70076: <4FGL_J2339.6+0242_daily_bin303> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin303> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:30:48 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:30:50 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:30:50 2021
Terminated at Thu Sep 30 02:45:46 2021
Results reported at Thu Sep 30 02:45:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin303 354.904 2.7102 317865601 318124801 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 :                                   652.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            898 sec.

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

