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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin398
RA = 354.904, Dec = 2.7102
tmin = 342489601, tmax = 342748801
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='71536', job_status='RUN', time_executed='2021-09-30 02:35:29.823914', time_epoch_executed='1632994529.82' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='398'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71536

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71536/ft1_4FGL_J2339.6+0242_daily_bin398.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71536/ft2_4FGL_J2339.6+0242_daily_bin398.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71536/ft1_4FGL_J2339.6+0242_daily_bin398.fits outfile=/scratch/kocevski/71536/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin398.fits ra=354.904 dec=2.7102 rad=12.0 tmin=342489601.0 tmax=342748801.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.58
user 3.25
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/71536/ft2_4FGL_J2339.6+0242_daily_bin398.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/71536/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin398.fits evtable="EVENTS" outfile="/scratch/kocevski/71536/ft1_filtered_4FGL_J2339.6+0242_daily_bin398.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71536/ft1_filtered_4FGL_J2339.6+0242_daily_bin398.fits" evtable="EVENTS" scfile=/scratch/kocevski/71536/ft2_4FGL_J2339.6+0242_daily_bin398.fits sctable="SC_DATA" outfile=/scratch/kocevski/71536/ltcube_342489601_342748801_4FGL_J2339.6+0242_daily_bin398.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/71536/ft2_4FGL_J2339.6+0242_daily_bin398.fits
.....................!
real 11.92
user 11.59
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71536/ft1_filtered_4FGL_J2339.6+0242_daily_bin398.fits evtable="EVENTS" scfile=/scratch/kocevski/71536/ft2_4FGL_J2339.6+0242_daily_bin398.fits sctable="SC_DATA" expcube=/scratch/kocevski/71536/ltcube_342489601_342748801_4FGL_J2339.6+0242_daily_bin398.fits outfile=/scratch/kocevski/71536/expmap_342489601_342748801_4FGL_J2339.6+0242_daily_bin398.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/71536/ltcube_342489601_342748801_4FGL_J2339.6+0242_daily_bin398.fits
.....................!
real 190.03
user 185.03
sys 4.67

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/71536/ft1_filtered_4FGL_J2339.6+0242_daily_bin398.fits scfile=/scratch/kocevski/71536/ft2_4FGL_J2339.6+0242_daily_bin398.fits outfile=/scratch/kocevski/71536/cmap_342489601_342748801_4FGL_J2339.6+0242_daily_bin398.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71536/ft1_filtered_4FGL_J2339.6+0242_daily_bin398.fits scfile=/scratch/kocevski/71536/ft2_4FGL_J2339.6+0242_daily_bin398.fits outfile=/scratch/kocevski/71536/cmap_HighResolution_342489601_342748801_4FGL_J2339.6+0242_daily_bin398.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.4698       1.0000         .10000E-03   10000.    
     6 'norm      '    4.3049       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.195       1.0000         .10000E-03   10000.    
     8 'norm      '    .28340E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.2196       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.7816       1.0000         .10000E-03   10000.    
    14 'norm      '    .10316E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10323E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10587E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.209       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11107E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    47.687       1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    17.748       1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.512       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.3147       1.0000         .10000E-03   10000.    
    26 'Prefactor '    35.977       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .49484E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    15.535       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .94335       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .85249       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=   6065.735     FROM MIGRAD    STATUS=CONVERGED    784 CALLS     3909 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8492       -.29309E-07** at limit **
   2  Prefactor     .10000E-03    15.349       -.33364E-07** at limit **
   3  Prefactor     .10000E-03    32.838       -.20666E-06** at limit **
   4  Prefactor     .10000E-03    2.0077       -.23893E-07** at limit **
   5  norm          3.4718        3.0687        .25646E-06   -.18383E-04
   6  norm          4.3047        4.3012        .11420E-06   -.16908E-04
   7  Prefactor     13.195        11.387        .78057E-07   -.28169E-04
   8  norm          .10011E-03    7.0264       -.28021E-06** at limit **
   9  Prefactor     7.2196        19.333        .34844E-05    .38819E-04
  10  Prefactor     .10000E-03    11.817       -.58283E-07** at limit **
  11  Prefactor     .10000E-03    10.208       -.35492E-07** at limit **
  12  Prefactor     .10000E-03    4.6769       -.24363E-06** at limit **
  13  norm          2.7821        1.0940        .65438E-07    .10059E-03
  14  norm          .10000E-03    3.8589       -.35139E-06** at limit **
  15  Prefactor     .10000E-03    4.4934        .57477E-06** at limit **
  16  Prefactor     .10000E-03    19.399        .16385E-06** at limit **
  17  norm          .10000E-03    2.7950        .48090E-06** at limit **
  18  Prefactor     .10000E-03    4.4419        .59543E-06** at limit **
  19  Prefactor     11.021        375.15       -.30227E-05   -.82763E-05
  20  Prefactor     .10000E-03    12.156       -.11994E-05** at limit **
  21  Prefactor     47.665        31.199       -.29457E-06   -.13547E-03
  22  norm          .10000E-03    10.119        .58052E-07** at limit **
  23  norm          17.751        25.426        .30991E-06    .20435E-04
  24  Prefactor     29.339        68.457        .12719E-05   -.63389E-05
  25  Prefactor     3.3177        4.1087        .17164E-06    .27476E-04
  26  Prefactor     35.950        39.877       -.27739E-06   -.71076E-04
  27  Prefactor     .10014E-03    23.454        .31975E-05** at limit **
  28  Prefactor     15.535        13.636        .18784E-06   -.27623E-04
  29  Normalizat    .94320        .21168       -.23429E-05   -.23691E-03
  30  Prefactor     .85260        .13439        .43446E-06   -.40011E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.47175
  norm       = 4.30475
  Prefactor  = 13.1953
  norm       = 0.000100105
  Prefactor  = 7.21963
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.78212
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0214
  Prefactor  = 0.0001
  Prefactor  = 47.6655
  norm       = 0.0001
  norm       = 17.7505
  Prefactor  = 29.3389
  Prefactor  = 3.31768
  Prefactor  = 35.9498
  Prefactor  = 0.000100145
  Prefactor  = 15.5355
  Normalizat = 0.943204
  Prefactor  = 0.852599
 **********
 **   18 **HESSE 
 **********

 FCN=   6065.735     FROM HESSE     STATUS=OK           584 CALLS     4493 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8494        .12839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    33.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.0108        .10777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.4718        3.0612        .12062E-03   -1.5335    
   6  norm          4.3047        4.2968        .15580E-03   -1.5293    
   7  Prefactor     13.195        11.391        .11027E-03   -1.4981    
   8  norm          .10011E-03    83.956        .39693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.2196        19.350        .74642E-03   -1.5171    
  10  Prefactor     .10000E-03    12.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.7006        .16435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.7821        1.0928        .48392E-04   -1.5374    
  14  norm          .10000E-03    3.9258        .14906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.5264        .16139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.8100        .12732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.5135        .16067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.021        379.37        .11966E-03   -1.5044    
  20  Prefactor     .10000E-03    12.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     47.665        31.198        .58066E-04   -1.4326    
  22  norm          .10000E-03    10.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          17.751        25.311        .95070E-04   -1.4865    
  24  Prefactor     29.339        68.591        .73751E-04   -1.4624    
  25  Prefactor     3.3177        4.0847        .15347E-03   -1.5344    
  26  Prefactor     35.950        39.819        .66815E-04   -1.4508    
  27  Prefactor     .10014E-03    96.987        .65866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     15.535        13.648        .10162E-03   -1.4919    
  29  Normalizat    .94320        .23924        .28654E-03   -.94958    
  30  Prefactor     .85260        .15462        .20512E-03   -.97818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79367e-09
Minuit parameter uncertainties:
  1  3.58121e-07
  2  8.04679e-07
  3  7.94102e-07
  4  7.55931e-07
  5  3.06129
  6  4.29712
  7  11.3928
  8  0.00595946
  9  19.3668
  10  9.58118e-06
  11  2.72918e-06
  12  1.46402e-06
  13  1.09278
  14  2.23242e-06
  15  1.58555e-05
  16  1.40442e-05
  17  8.66821e-06
  18  1.3984e-05
  19  130.23
  20  7.33787e-06
  21  31.2091
  22  1.05845e-05
  23  25.3262
  24  68.7765
  25  4.08502
  26  39.8482
  27  0.00751115
  28  13.6506
  29  0.239511
  30  0.154703
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.595e+01  3.985e+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:  8.526e-01  1.547e-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.432e-01  2.395e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.05
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.35e-08 +/- 4.82e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 1.33e-05

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

Saving results to:
/scratch/kocevski/71536/likelihoodResults_342489601_342748801_4FGL_J2339.6+0242_daily_bin398.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) = 6065.71967936
delta logL = 0.0151873341183

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6065.71329454
delta logL = 0.0215721583927

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.050       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7279       1.0000          .0000       10.000    
     3 'Normalizat'    .93632       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85605       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=   6065.713     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      270 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.047        47.694        .71905E-04    .47837E-03
   2  Index         2.7280        .96829        .89079E-02    .21814E-03
   3  Normalizat    .93637        .22678        .28771E-03   -.89815E-04
   4  Prefactor     .85600        .15384        .20476E-03   -.44478E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.0467
  Index      = 2.72801
  Normalizat = 0.936375
  Prefactor  = 0.856002
 **********
 **   18 **HESSE 
 **********

 FCN=   6065.713     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.047        43.955        .14381E-04   -1.4593    
   2  Index         2.7280        .89232        .35632E-03   -.47170    
   3  Normalizat    .93637        .22679        .11509E-04   -.95194    
   4  Prefactor     .85600        .15376        .40952E-04   -.97696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43082e-09
Minuit parameter uncertainties:
  1  44.0011
  2  0.898397
  3  0.227027
  4  0.153833
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71536': 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) = 6065.71329449
delta logL = 0.0215722089597

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.105e+01  4.400e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.728e+00  8.984e-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:  8.560e-01  1.538e-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.364e-01  2.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 354.904 2.710
Photon Index (Free Index): 2.73 +/- 0.90
Photon Flux (Free Index): 4.87e-08 +/- 5.61e-08
Energy Flux (Free Index): 1.15e-05 +/- 1.27e-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/71536/cmap_HighResolution_342489601_342748801_4FGL_J2339.6+0242_daily_bin398.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='4.35e-08', energy_flux2='1.15e-05', photon_flux_error='4.82e-08', dlogl='2.16e-02', energy_flux='1.20e-05', photon_flux2='4.87e-08', job_status='DONE', time_completed='2021-09-30 02:48:31.327033', photon_index_error2='0.90', photon_index2='2.73', ts='1.05', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='1.27e-05', EG='0.94', time_epoch_completed='1632995311.33', return_code='0', job_id='71536', GAL2='0.86', EG2='0.94', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='5.61e-08', ts2='1.09', photon_index='2.55' WHERE bin_id='398' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:48:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 71536: <4FGL_J2339.6+0242_daily_bin398> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin398 354.904 2.7102 342489601 342748801 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 :                                   779.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             329.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            794 sec.

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

