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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin320
RA = 354.904, Dec = 2.7102
tmin = 322272001, tmax = 322531201
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='70102', job_status='RUN', time_executed='2021-09-30 02:31:00.930039', time_epoch_executed='1632994260.93' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70102

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70102/ft1_4FGL_J2339.6+0242_daily_bin320.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70102/ft2_4FGL_J2339.6+0242_daily_bin320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70102/ft1_4FGL_J2339.6+0242_daily_bin320.fits outfile=/scratch/kocevski/70102/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin320.fits ra=354.904 dec=2.7102 rad=12.0 tmin=322272001.0 tmax=322531201.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.62
user 3.24
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/70102/ft1_filtered_4FGL_J2339.6+0242_daily_bin320.fits" evtable="EVENTS" scfile=/scratch/kocevski/70102/ft2_4FGL_J2339.6+0242_daily_bin320.fits sctable="SC_DATA" outfile=/scratch/kocevski/70102/ltcube_322272001_322531201_4FGL_J2339.6+0242_daily_bin320.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/70102/ft2_4FGL_J2339.6+0242_daily_bin320.fits
.....................!
real 11.62
user 11.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70102/ft1_filtered_4FGL_J2339.6+0242_daily_bin320.fits evtable="EVENTS" scfile=/scratch/kocevski/70102/ft2_4FGL_J2339.6+0242_daily_bin320.fits sctable="SC_DATA" expcube=/scratch/kocevski/70102/ltcube_322272001_322531201_4FGL_J2339.6+0242_daily_bin320.fits outfile=/scratch/kocevski/70102/expmap_322272001_322531201_4FGL_J2339.6+0242_daily_bin320.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/70102/ltcube_322272001_322531201_4FGL_J2339.6+0242_daily_bin320.fits
.....................!
real 190.71
user 184.94
sys 5.47

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/70102/ft1_filtered_4FGL_J2339.6+0242_daily_bin320.fits scfile=/scratch/kocevski/70102/ft2_4FGL_J2339.6+0242_daily_bin320.fits outfile=/scratch/kocevski/70102/cmap_322272001_322531201_4FGL_J2339.6+0242_daily_bin320.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70102/ft1_filtered_4FGL_J2339.6+0242_daily_bin320.fits scfile=/scratch/kocevski/70102/ft2_4FGL_J2339.6+0242_daily_bin320.fits outfile=/scratch/kocevski/70102/cmap_HighResolution_322272001_322531201_4FGL_J2339.6+0242_daily_bin320.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0859       1.0000         .10000E-03   10000.    
     2 'Prefactor '    50.852       1.0000         .10000E-03   10000.    
     3 'Prefactor '    74.238       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5857       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.2134       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .26279       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3380       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.317       1.0000         .10000E-03   10000.    
    17 'norm      '    8.6630       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.919       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .46286E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .50336E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    32.409       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.2647       1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.779       1.0000         .10000E-03   10000.    
    27 'Prefactor '    22.212       1.0000         .10000E-03   10000.    
    28 'Prefactor '    74.686       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .96274       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0611       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=   7449.982     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     3983 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0849        6.4556        .11544E-05   -.79401E-03
   2  Prefactor     50.872        46.563        .40054E-05    .98181E-04
   3  Prefactor     74.240        27.966       -.12928E-06   -.20687E-04
   4  Prefactor     7.5853        7.5411       -.83050E-06   -.12464E-03
   5  norm          .10000E-03    1.3183        .15539E-07** at limit **
   6  norm          .10000E-03    1.5576       -.76398E-08** at limit **
   7  Prefactor     .10000E-03    8.6706        .31277E-07** at limit **
   8  norm          8.2135        11.157        .84826E-06    .47990E-04
   9  Prefactor     .10000E-03    9.4547        .37854E-07** at limit **
  10  Prefactor     .10000E-03    4.5211        .10177E-07** at limit **
  11  Prefactor     .10000E-03    7.8930        .64856E-06** at limit **
  12  Prefactor     .10000E-03    7.2489       -.15569E-07** at limit **
  13  norm          .26311        .66444        .66594E-07   -.61076E-03
  14  norm          .10000E-03    2.5742       -.22718E-07** at limit **
  15  Prefactor     6.3382        8.8103       -.10500E-06   -.46246E-04
  16  Prefactor     16.320        40.787        .57830E-06    .50560E-05
  17  norm          8.6633        12.835       -.49681E-06   -.91438E-04
  18  Prefactor     14.919        13.257       -.27626E-06   -.90412E-04
  19  Prefactor     .10000E-03    77.171       -.16711E-09** at limit **
  20  Prefactor     .10000E-03    9.6969       -.70124E-07** at limit **
  21  Prefactor     .10000E-03    20.057        .36442E-07** at limit **
  22  norm          .10000E-03    7.9717       -.65331E-06** at limit **
  23  norm          .10000E-03    25.739        .48150E-07** at limit **
  24  Prefactor     32.409        51.423       -.15060E-06   -.14025E-05
  25  Prefactor     9.2601        6.5461       -.38660E-07   -.74778E-04
  26  Prefactor     11.779        38.029        .31931E-06    .10244E-05
  27  Prefactor     22.211        25.013        .21837E-06    .45957E-05
  28  Prefactor     74.687        26.492       -.13871E-06   -.14754E-04
  29  Normalizat    .96275        .23029        .86708E-07   -.12809E-04
  30  Prefactor     1.0611        .14260       -.97692E-07    .51739E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.0849
  Prefactor  = 50.8721
  Prefactor  = 74.2405
  Prefactor  = 7.5853
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.21351
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.263114
  norm       = 0.0001
  Prefactor  = 6.33816
  Prefactor  = 16.3198
  norm       = 8.66334
  Prefactor  = 14.9189
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 32.4086
  Prefactor  = 9.26013
  Prefactor  = 11.7787
  Prefactor  = 22.2113
  Prefactor  = 74.6871
  Normalizat = 0.962746
  Prefactor  = 1.06109
 **********
 **   18 **HESSE 
 **********

 FCN=   7449.982     FROM HESSE     STATUS=OK           604 CALLS     4587 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0849        9.7569        .99726E-03   -1.5304    
   2  Prefactor     50.872        48.894        .56239E-04   -1.4280    
   3  Prefactor     74.240        28.042        .46599E-04   -1.3983    
   4  Prefactor     7.5853        7.5861        .14561E-03   -1.5157    
   5  norm          .10000E-03    1.3430        .19289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.5667        .10519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.7329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.2135        11.167        .13989E-03   -1.5135    
   9  Prefactor     .10000E-03    9.4600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.5282        .17924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.9170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.3164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .26311        .67189        .10462E-02   -1.5605    
  14  norm          .10000E-03    2.5921        .13518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.3382        8.7836        .15944E-03   -1.5204    
  16  Prefactor     16.320        40.747        .99152E-04   -1.4900    
  17  norm          8.6633        12.707        .13619E-03   -1.5119    
  18  Prefactor     14.919        13.178        .10370E-03   -1.4935    
  19  Prefactor     .10000E-03    77.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    68.532        .43818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.9811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    28.262        .10921       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     32.409        51.446        .70385E-04   -1.4569    
  25  Prefactor     9.2601        6.2956        .13167E-03   -1.5099    
  26  Prefactor     11.779        37.994        .11672E-03   -1.5021    
  27  Prefactor     22.211        25.025        .84989E-04   -1.4765    
  28  Prefactor     74.687        26.529        .46460E-04   -1.3977    
  29  Normalizat    .96275        .26404        .33845E-03   -.94289    
  30  Prefactor     1.0611        .16426        .22143E-03   -.90720    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18604e-08
Minuit parameter uncertainties:
  1  9.76072
  2  48.9326
  3  28.047
  4  7.58704
  5  1.81047e-06
  6  9.1938e-08
  7  1.78706e-06
  8  11.1694
  9  1.50401e-06
  10  1.56857e-06
  11  1.75257e-05
  12  2.03489e-06
  13  0.671906
  14  9.22125e-07
  15  8.78537
  16  40.8162
  17  12.7111
  18  13.1802
  19  5.56123e-08
  20  1.53263e-05
  21  2.52256e-05
  22  1.81992e-05
  23  8.35649e-05
  24  51.5164
  25  6.29605
  26  38.0718
  27  25.0369
  28  26.533
  29  0.264398
  30  0.164339
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.178e+01  3.807e+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.061e+00  1.643e-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.627e-01  2.644e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/70102/likelihoodResults_322272001_322531201_4FGL_J2339.6+0242_daily_bin320.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) = 7449.98071476
delta logL = 0.00120353945294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7449.98013056
delta logL = 0.00178774528376

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.275       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7105       1.0000          .0000       10.000    
     3 'Normalizat'    .96044       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0621       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=   7449.980     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      298 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.404        443.86        .31249E-02   -.11753E-03
   2  Index         2.7107        1.6664        .50000       -.29147E-04
   3  Normalizat    .96046        .23427E-01    .76559E-01    .19743E-05
   4  Prefactor     1.0622        .16055E-01    .39246E-01    .51501E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4035
  Index      = 2.71067
  Normalizat = 0.96046
  Prefactor  = 1.06224
 **********
 **   18 **HESSE 
 **********

 FCN=   7449.980     FROM HESSE     STATUS=OK            33 CALLS      331 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.404        48.861        .12500E-03   -1.5063    
   2  Index         2.7107        2.7485        .74433E-02   -.47559    
   3  Normalizat    .96046        .24019        .33882E-03   -.94367    
   4  Prefactor     1.0622        .16294        .22132E-03   -.90683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76199e-10
Minuit parameter uncertainties:
  1  45.1524
  2  2.96316
  3  0.240455
  4  0.163013
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70102': 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) = 7449.98011946
delta logL = 0.0017988373038

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.040e+01  4.515e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.711e+00  2.963e+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.062e+00  1.630e-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.605e-01  2.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/70102/cmap_HighResolution_322272001_322531201_4FGL_J2339.6+0242_daily_bin320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.60e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-09-30 02:45:58.551658', job_id='70102', GAL2='1.06', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1632995158.55', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.80e-03', ts2='0.11', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='320' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:45:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 70102: <4FGL_J2339.6+0242_daily_bin320> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin320 354.904 2.7102 322272001 322531201 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 :                                   889.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

