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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin457
RA = 354.904, Dec = 2.7102
tmin = 357782401, tmax = 358041601
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='71648', job_status='RUN', time_executed='2021-09-30 02:39:32.506042', time_epoch_executed='1632994772.51' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='457'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71648

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71648/ft1_4FGL_J2339.6+0242_daily_bin457.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71648/ft2_4FGL_J2339.6+0242_daily_bin457.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71648/ft1_4FGL_J2339.6+0242_daily_bin457.fits outfile=/scratch/kocevski/71648/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin457.fits ra=354.904 dec=2.7102 rad=12.0 tmin=357782401.0 tmax=358041601.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.57
user 3.34
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71648/ft1_filtered_4FGL_J2339.6+0242_daily_bin457.fits" evtable="EVENTS" scfile=/scratch/kocevski/71648/ft2_4FGL_J2339.6+0242_daily_bin457.fits sctable="SC_DATA" outfile=/scratch/kocevski/71648/ltcube_357782401_358041601_4FGL_J2339.6+0242_daily_bin457.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/71648/ft2_4FGL_J2339.6+0242_daily_bin457.fits
.....................!
real 12.17
user 11.82
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71648/ft1_filtered_4FGL_J2339.6+0242_daily_bin457.fits evtable="EVENTS" scfile=/scratch/kocevski/71648/ft2_4FGL_J2339.6+0242_daily_bin457.fits sctable="SC_DATA" expcube=/scratch/kocevski/71648/ltcube_357782401_358041601_4FGL_J2339.6+0242_daily_bin457.fits outfile=/scratch/kocevski/71648/expmap_357782401_358041601_4FGL_J2339.6+0242_daily_bin457.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/71648/ltcube_357782401_358041601_4FGL_J2339.6+0242_daily_bin457.fits
.....................!
real 189.40
user 185.16
sys 3.82

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/71648/ft1_filtered_4FGL_J2339.6+0242_daily_bin457.fits scfile=/scratch/kocevski/71648/ft2_4FGL_J2339.6+0242_daily_bin457.fits outfile=/scratch/kocevski/71648/cmap_357782401_358041601_4FGL_J2339.6+0242_daily_bin457.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71648/ft1_filtered_4FGL_J2339.6+0242_daily_bin457.fits scfile=/scratch/kocevski/71648/ft2_4FGL_J2339.6+0242_daily_bin457.fits outfile=/scratch/kocevski/71648/cmap_HighResolution_357782401_358041601_4FGL_J2339.6+0242_daily_bin457.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.596       1.0000         .10000E-03   10000.    
     2 'Prefactor '    60.959       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.1532       1.0000         .10000E-03   10000.    
     6 'norm      '    .72118       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.0692       1.0000         .10000E-03   10000.    
     8 'norm      '    1.8225       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .82084       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7655       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6669       1.0000         .10000E-03   10000.    
    13 'norm      '    2.8931       1.0000         .10000E-03   10000.    
    14 'norm      '    .10365E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.853       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.9889       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.478       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11611E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .52806E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .52495E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .84991       1.0000         .10000E-03   10000.    
    23 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.7727       1.0000         .10000E-03   10000.    
    26 'Prefactor '    35.752       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .14769E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .86288       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .86076       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=   5532.127     FROM MIGRAD    STATUS=CONVERGED    786 CALLS     4066 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.601        19.677        .68468E-06   -.20690E-05
   2  Prefactor     61.011        81.350       -.44203E-05    .33771E-04
   3  Prefactor     .10000E-03    6.0326        .62941E-07** at limit **
   4  Prefactor     .10000E-03    2.9319       -.23115E-06** at limit **
   5  norm          3.1557        2.6012        .15662E-06    .11029E-03
   6  norm          .72400        4.7730        .68096E-06    .46898E-04
   7  Prefactor     9.0745        11.096        .27997E-07    .11312E-04
   8  norm          1.8335        25.219        .91424E-06    .27998E-04
   9  Prefactor     .10000E-03    20.451       -.17118E-05** at limit **
  10  Prefactor     .85720        11.048       -.13421E-05   -.18151E-03
  11  Prefactor     6.7674        12.067        .13700E-06    .48874E-04
  12  Prefactor     1.6678        7.6516       -.61310E-05   -.78123E-04
  13  norm          2.8936        1.2283       -.20689E-06   -.74819E-03
  14  norm          .10000E-03    7.3969       -.26015E-05** at limit **
  15  Prefactor     17.850        11.057        .21326E-07    .11363E-04
  16  Prefactor     .10000E-03    124.69       -.48809E-05** at limit **
  17  norm          2.9895        9.5111        .41872E-06   -.51120E-05
  18  Prefactor     12.479        8.7518        .34968E-07   -.26961E-04
  19  Prefactor     .10000E-03    146.60        .19307E-06** at limit **
  20  Prefactor     .10000E-03    8.7792        .24146E-05** at limit **
  21  Prefactor     .10000E-03    12.232        .43995E-05** at limit **
  22  norm          .85052        20.397        .13981E-04    .30213E-03
  23  norm          .10000E-03    16.836        .22218E-05** at limit **
  24  Prefactor     .10000E-03    15.034       -.78692E-06** at limit **
  25  Prefactor     7.7729        4.9579       -.25829E-06   -.10788E-02
  26  Prefactor     35.753        35.596       -.64479E-06    .30955E-04
  27  Prefactor     .10062E-03    66.219       -.22577E-04** at limit **
  28  Prefactor     .10000E-03    8.2231        .34744E-07** at limit **
  29  Normalizat    .86168        .20700       -.17572E-05   -.10453E-03
  30  Prefactor     .86131        .13386       -.89222E-06    .17558E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.601
  Prefactor  = 61.0108
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.15569
  norm       = 0.723998
  Prefactor  = 9.07453
  norm       = 1.83348
  Prefactor  = 0.0001
  Prefactor  = 0.857196
  Prefactor  = 6.76742
  Prefactor  = 1.6678
  norm       = 2.89356
  norm       = 0.000100002
  Prefactor  = 17.85
  Prefactor  = 0.000100003
  norm       = 2.9895
  Prefactor  = 12.4795
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100002
  norm       = 0.850516
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.77288
  Prefactor  = 35.753
  Prefactor  = 0.000100621
  Prefactor  = 0.0001
  Normalizat = 0.861681
  Prefactor  = 0.861312
 **********
 **   18 **HESSE 
 **********

 FCN=   5532.127     FROM HESSE     STATUS=OK           606 CALLS     4672 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.601        19.702        .67170E-04   -1.4514    
   2  Prefactor     61.011        81.302        .51391E-04   -1.4144    
   3  Prefactor     .10000E-03    6.0433        .17838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.9292        .12419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.1557        2.5985        .10376E-03   -1.5353    
   6  norm          .72400        4.6969        .30616E-03   -1.5538    
   7  Prefactor     9.0745        11.014        .13309E-03   -1.5105    
   8  norm          1.8335        25.189        .30929E-03   -1.5437    
   9  Prefactor     .10000E-03    20.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .85720        40.754        .46388E-02   -1.5523    
  11  Prefactor     6.7674        12.056        .15426E-03   -1.5188    
  12  Prefactor     1.6678        7.4279        .32661E-03   -1.5450    
  13  norm          2.8936        1.2190        .50576E-04   -1.5368    
  14  norm          .10000E-03    26.593        .30021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.850        10.973        .94791E-04   -1.4863    
  16  Prefactor     .10000E-03    125.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.9895        9.2795        .23481E-03   -1.5362    
  18  Prefactor     12.479        8.6430        .11340E-03   -1.5001    
  19  Prefactor     .10000E-03    146.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    110.96        .38060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    125.82        .46987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .85052        32.097        .25249E-02   -1.5524    
  23  norm          .10000E-03    16.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    15.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.7729        4.6193        .11655E-03   -1.5150    
  26  Prefactor     35.753        35.488        .67024E-04   -1.4511    
  27  Prefactor     .10062E-03    163.90        .60160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    8.2626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .86168        .23623        .28749E-03   -.97820    
  30  Prefactor     .86131        .15535        .20146E-03   -.97506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.01839e-09
Minuit parameter uncertainties:
  1  19.7051
  2  81.4506
  3  5.00537e-06
  4  7.60858e-05
  5  2.59862
  6  3.68827
  7  11.0167
  8  13.5982
  9  9.31504e-05
  10  11.8288
  11  12.0607
  12  7.04063
  13  1.21903
  14  0.000454613
  15  10.9746
  16  0.00123505
  17  9.28398
  18  8.64387
  19  8.53112e-05
  20  0.00142371
  21  0.00103764
  22  10.4552
  23  5.47048e-05
  24  2.70318e-05
  25  4.61952
  26  35.5089
  27  0.0202408
  28  5.48186e-05
  29  0.236517
  30  0.155429
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.575e+01  3.551e+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.613e-01  1.554e-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:  8.617e-01  2.365e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.41
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.33e-08 +/- 4.29e-08
Energy Flux (Fixed Index): 1.19e-05 +/- 1.18e-05

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

Saving results to:
/scratch/kocevski/71648/likelihoodResults_357782401_358041601_4FGL_J2339.6+0242_daily_bin457.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) = 5531.03304471
delta logL = 1.09420837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5531.02690071
delta logL = 1.10035236939

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.427       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5088       1.0000          .0000       10.000    
     3 'Normalizat'    .90151       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84310       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=   5531.027     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.417        45.336       -.66549E-05   -.14516E-03
   2  Index         1.5087        .58074       -.21694E-04    .49102E-04
   3  Normalizat    .90166        .19021        .66977E-06    .13310E-03
   4  Prefactor     .84310        .13408        .52456E-07    .14132E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.417
  Index      = 1.50873
  Normalizat = 0.901659
  Prefactor  = 0.843102
 **********
 **   18 **HESSE 
 **********

 FCN=   5531.027     FROM HESSE     STATUS=OK            29 CALLS      240 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.417        43.923        .32329E-03   -1.4468    
   2  Index         1.5087        .56229        .78357E-02   -.77296    
   3  Normalizat    .90166        .21729        .28121E-03   -.96402    
   4  Prefactor     .84310        .15324        .20319E-03   -.98159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.69613e-11
Minuit parameter uncertainties:
  1  43.9599
  2  0.564631
  3  0.217498
  4  0.153317
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71648': 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) = 5531.0268998
delta logL = 1.1003532783

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.842e+01  4.396e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  1.509e+00  5.646e-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.431e-01  1.533e-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.017e-01  2.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.60
Ra Dec: 354.904 2.710
Photon Index (Free Index): 1.51 +/- 0.56
Photon Flux (Free Index): 1.62e-08 +/- 2.04e-08
Energy Flux (Free Index): 4.98e-05 +/- 6.66e-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/71648/cmap_HighResolution_357782401_358041601_4FGL_J2339.6+0242_daily_bin457.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', photon_flux='4.33e-08', energy_flux2='4.98e-05', photon_flux_error='4.29e-08', dlogl='1.10e+00', energy_flux='1.19e-05', photon_flux2='1.62e-08', job_status='DONE', time_completed='2021-09-30 02:52:05.640162', photon_index_error2='0.56', photon_index2='1.51', ts='1.41', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='6.66e-05', EG='0.86', time_epoch_completed='1632995525.64', return_code='0', job_id='71648', GAL2='0.84', EG2='0.90', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='2.04e-08', ts2='3.60', photon_index='2.55' WHERE bin_id='457' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:52:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 71648: <4FGL_J2339.6+0242_daily_bin457> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin457 354.904 2.7102 357782401 358041601 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 :                                   751.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            997 sec.

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

