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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin826
RA = 354.904, Dec = 2.7102
tmin = 453427201, tmax = 453686401
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='73241', job_status='RUN', time_executed='2021-09-30 02:40:51.284757', time_epoch_executed='1632994851.28' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='826'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73241

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73241/ft1_4FGL_J2339.6+0242_daily_bin826.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73241/ft2_4FGL_J2339.6+0242_daily_bin826.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73241/ft1_4FGL_J2339.6+0242_daily_bin826.fits outfile=/scratch/kocevski/73241/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin826.fits ra=354.904 dec=2.7102 rad=12.0 tmin=453427201.0 tmax=453686401.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.61
user 3.38
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/73241/ft2_4FGL_J2339.6+0242_daily_bin826.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/73241/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin826.fits evtable="EVENTS" outfile="/scratch/kocevski/73241/ft1_filtered_4FGL_J2339.6+0242_daily_bin826.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 2.10
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73241/ft1_filtered_4FGL_J2339.6+0242_daily_bin826.fits evtable="EVENTS" scfile=/scratch/kocevski/73241/ft2_4FGL_J2339.6+0242_daily_bin826.fits sctable="SC_DATA" expcube=/scratch/kocevski/73241/ltcube_453427201_453686401_4FGL_J2339.6+0242_daily_bin826.fits outfile=/scratch/kocevski/73241/expmap_453427201_453686401_4FGL_J2339.6+0242_daily_bin826.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/73241/ltcube_453427201_453686401_4FGL_J2339.6+0242_daily_bin826.fits
.....................!
real 191.29
user 185.93
sys 4.97

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/73241/ft1_filtered_4FGL_J2339.6+0242_daily_bin826.fits scfile=/scratch/kocevski/73241/ft2_4FGL_J2339.6+0242_daily_bin826.fits outfile=/scratch/kocevski/73241/cmap_453427201_453686401_4FGL_J2339.6+0242_daily_bin826.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73241/ft1_filtered_4FGL_J2339.6+0242_daily_bin826.fits scfile=/scratch/kocevski/73241/ft2_4FGL_J2339.6+0242_daily_bin826.fits outfile=/scratch/kocevski/73241/cmap_HighResolution_453427201_453686401_4FGL_J2339.6+0242_daily_bin826.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    76.200       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.6845       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0020       1.0000         .10000E-03   10000.    
     5 'norm      '    .29361       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      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    57.798       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10437E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.229       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.1722       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.749       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .70422       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .41238E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10583E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.2405       1.0000         .10000E-03   10000.    
    23 'norm      '    13.406       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.0507       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10553E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    25.473       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1663       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .81186       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=   6631.274     FROM MIGRAD    STATUS=CONVERGED    766 CALLS     3961 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9549        .28163E-08** at limit **
   2  Prefactor     76.192        60.558       -.75904E-06   -.51281E-05
   3  Prefactor     8.7033        16.220       -.13549E-09   -.10911E-04
   4  Prefactor     3.0029        9.2861        .57548E-05   -.95848E-05
   5  norm          .28506        1.7010       -.23071E-06   -.71071E-04
   6  norm          .10000E-03    1.9072        .40389E-08** at limit **
   7  Prefactor     .10000E-03    4.9053       -.28443E-08** at limit **
   8  norm          .10000E-03    3.2607       -.61005E-08** at limit **
   9  Prefactor     57.796        37.062        .32059E-06    .80970E-05
  10  Prefactor     .10000E-03    5.8438       -.86569E-06** at limit **
  11  Prefactor     30.226        18.834        .62408E-07   -.13815E-04
  12  Prefactor     .10000E-03    6.1576       -.16394E-06** at limit **
  13  norm          .10000E-03    .26739        .93468E-09** at limit **
  14  norm          8.1716        5.8868        .12578E-06   -.15797E-04
  15  Prefactor     .10000E-03    1.9844       -.18466E-07** at limit **
  16  Prefactor     .10000E-03    63.044        .14236E-05** at limit **
  17  norm          10.764        9.3630        .24579E-06    .11436E-03
  18  Prefactor     .67567        4.3932       -.55145E-06    .14034E-03
  19  Prefactor     .10000E-03    251.59        .17617E-04** at limit **
  20  Prefactor     .10000E-03    27.280        .20353E-05** at limit **
  21  Prefactor     .10000E-03    24.859        .92740E-06** at limit **
  22  norm          8.2413        10.842        .27282E-07    .10635E-04
  23  norm          13.409        24.433       -.13456E-05   -.15033E-03
  24  Prefactor     .10000E-03    15.592        .38508E-06** at limit **
  25  Prefactor     9.0537        5.0386       -.93058E-07   -.44683E-03
  26  Prefactor     .10000E-03    20.304       -.18870E-05** at limit **
  27  Prefactor     .10000E-03    42.185       -.25666E-05** at limit **
  28  Prefactor     25.471        18.282       -.11064E-06   -.13305E-04
  29  Normalizat    1.1664        .19898       -.75488E-06    .52262E-04
  30  Prefactor     .81184        .13110        .11012E-06    .15364E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 76.1921
  Prefactor  = 8.70335
  Prefactor  = 3.0029
  norm       = 0.285061
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 57.7957
  Prefactor  = 0.000100005
  Prefactor  = 30.2257
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.17164
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.7637
  Prefactor  = 0.67567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.24135
  norm       = 13.4095
  Prefactor  = 0.0001
  Prefactor  = 9.05367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.4709
  Normalizat = 1.16645
  Prefactor  = 0.811835
 **********
 **   18 **HESSE 
 **********

 FCN=   6631.274     FROM HESSE     STATUS=OK           592 CALLS     4553 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     76.192        60.595        .46000E-04   -1.3960    
   3  Prefactor     8.7033        16.745        .13602E-03   -1.5118    
   4  Prefactor     3.0029        9.3441        .11713E-02   -1.5361    
   5  norm          .28506        7.3484        .18056E-02   -1.5601    
   6  norm          .10000E-03    1.9265        .10981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.9194        .17614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.2653        .14361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     57.796        37.073        .52769E-04   -1.4186    
  10  Prefactor     .10000E-03    23.587        .37745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     30.226        18.842        .72873E-04   -1.4608    
  12  Prefactor     .10000E-03    6.1946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .40952        .81726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.1716        5.8754        .14025E-03   -1.5136    
  15  Prefactor     .10000E-03    1.9854        .11202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    63.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.764        9.8384        .12220E-03   -1.5052    
  18  Prefactor     .67567        21.838        .27687E-02   -1.5544    
  19  Prefactor     .10000E-03    250.86        .21250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    28.116        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.2413        10.837        .13966E-03   -1.5134    
  23  norm          13.409        24.412        .10940E-03   -1.4975    
  24  Prefactor     .10000E-03    15.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     9.0537        5.0498        .12101E-03   -1.5106    
  26  Prefactor     .10000E-03    20.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    42.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     25.471        18.295        .79371E-04   -1.4698    
  29  Normalizat    1.1664        .23292        .27181E-03   -.87646    
  30  Prefactor     .81184        .15353        .22034E-03   -.99294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12912e-08
Minuit parameter uncertainties:
  1  1.18923e-05
  2  60.6442
  3  16.7541
  4  9.3486
  5  2.89453
  6  5.19639e-07
  7  8.77437e-07
  8  3.61009e-07
  9  37.0881
  10  0.000661911
  11  18.8453
  12  3.99472e-06
  13  9.40124e-07
  14  5.87585
  15  6.94609e-07
  16  2.52606e-05
  17  9.83985
  18  7.68505
  19  6.22093e-05
  20  0.000201505
  21  2.3798e-05
  22  10.8399
  23  24.4304
  24  8.1244e-07
  25  5.05002
  26  2.09012e-05
  27  0.00020987
  28  18.2989
  29  0.233131
  30  0.153613
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  2.090e-05  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.118e-01  1.536e-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:  1.166e+00  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 354.904 2.710
Photon Flux Upper Limit: 8.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/73241/likelihoodResults_453427201_453686401_4FGL_J2339.6+0242_daily_bin826.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): 102
logL (Free Index) = 6631.27449155
delta logL = -0.000234690202888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6631.27425701
delta logL = -1.57529939315e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4530       1.0000          .0000       10.000    
     3 'Normalizat'    1.1665       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81183       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=   6631.274     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      232 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6841.7        .90712E-02** at limit **
   2  Index         2.4618        5.2659        .50000       -.39611E-05
   3  Normalizat    1.1664        .12326        .61453E-01    .14132E-04
   4  Prefactor     .81184        .85016E-01    .43871E-01    .16024E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.46179
  Normalizat = 1.16645
  Prefactor  = 0.811835
 **********
 **   18 **HESSE 
 **********

 FCN=   6631.274     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4618        6.2290        .50000       -.53244    
   3  Normalizat    1.1664        .21712        .27181E-03   -.87646    
   4  Prefactor     .81184        .15054        .22034E-03   -.99294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82988e-11
Minuit parameter uncertainties:
  1  6.25284e-07
  2  4.64306
  3  0.217289
  4  0.150618
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73241': 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) = 6631.27425693
delta logL = -7.71888153395e-08

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  6.253e-07  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.462e+00  4.643e+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:  8.118e-01  1.506e-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:  1.166e+00  2.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 354.904 2.710

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/73241/cmap_HighResolution_453427201_453686401_4FGL_J2339.6+0242_daily_bin826.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.39e-03', job_status='DONE', photon_flux_upper_limit='8.19e-08', time_completed='2021-09-30 02:54:45.531272', job_id='73241', GAL2='0.81', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1632995685.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='-7.72e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='826' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:54:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 73241: <4FGL_J2339.6+0242_daily_bin826> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin826> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 02:40:37 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:40:38 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:38 2021
Terminated at Thu Sep 30 02:54:48 2021
Results reported at Thu Sep 30 02:54:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin826 354.904 2.7102 453427201 453686401 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 :                                   828.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            851 sec.

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

