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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin586
RA = 354.904, Dec = 2.7102
tmin = 391219201, tmax = 391478401
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='71867', job_status='RUN', time_executed='2021-09-30 02:39:20.119275', time_epoch_executed='1632994760.12' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='586'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71867

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71867/ft1_4FGL_J2339.6+0242_daily_bin586.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71867/ft2_4FGL_J2339.6+0242_daily_bin586.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71867/ft1_4FGL_J2339.6+0242_daily_bin586.fits outfile=/scratch/kocevski/71867/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin586.fits ra=354.904 dec=2.7102 rad=12.0 tmin=391219201.0 tmax=391478401.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.33
user 3.09
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71867/ft1_filtered_4FGL_J2339.6+0242_daily_bin586.fits evtable="EVENTS" scfile=/scratch/kocevski/71867/ft2_4FGL_J2339.6+0242_daily_bin586.fits sctable="SC_DATA" expcube=/scratch/kocevski/71867/ltcube_391219201_391478401_4FGL_J2339.6+0242_daily_bin586.fits outfile=/scratch/kocevski/71867/expmap_391219201_391478401_4FGL_J2339.6+0242_daily_bin586.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/71867/ltcube_391219201_391478401_4FGL_J2339.6+0242_daily_bin586.fits
.....................!
real 190.78
user 185.70
sys 4.71

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/71867/ft1_filtered_4FGL_J2339.6+0242_daily_bin586.fits scfile=/scratch/kocevski/71867/ft2_4FGL_J2339.6+0242_daily_bin586.fits outfile=/scratch/kocevski/71867/cmap_391219201_391478401_4FGL_J2339.6+0242_daily_bin586.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71867/ft1_filtered_4FGL_J2339.6+0242_daily_bin586.fits scfile=/scratch/kocevski/71867/ft2_4FGL_J2339.6+0242_daily_bin586.fits outfile=/scratch/kocevski/71867/cmap_HighResolution_391219201_391478401_4FGL_J2339.6+0242_daily_bin586.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7604       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.260       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.821       1.0000         .10000E-03   10000.    
     5 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.4217       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.353       1.0000         .10000E-03   10000.    
     8 'norm      '    .14373E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    82.246       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.394       1.0000         .10000E-03   10000.    
    13 'norm      '    3.1588       1.0000         .10000E-03   10000.    
    14 'norm      '    .35428       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    70.116       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8388       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11891E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.8216       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.9940       1.0000         .10000E-03   10000.    
    23 'norm      '    .10354E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.6401       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10392E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .51994       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1603       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=   6077.807     FROM MIGRAD    STATUS=CONVERGED    775 CALLS     3940 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7609        13.010        .41881E-06    .12876E-03
   2  Prefactor     .10000E-03    22.848       -.12527E-05** at limit **
   3  Prefactor     13.256        14.456        .10075E-05    .50828E-03
   4  Prefactor     30.820        11.429        .52097E-06    .73289E-03
   5  norm          .10000E-03    1.4213       -.92656E-06** at limit **
   6  norm          1.4219        5.3160        .99480E-07   -.10898E-03
   7  Prefactor     11.353        11.626        .16575E-06    .19724E-03
   8  norm          .10001E-03    14.408       -.16224E-04** at limit **
   9  Prefactor     82.255        46.936       -.98267E-06   -.80440E-04
  10  Prefactor     .10000E-03    10.780       -.87736E-07** at limit **
  11  Prefactor     .10000E-03    34.956        .11976E-05** at limit **
  12  Prefactor     15.385        12.026        .71987E-06    .86709E-04
  13  norm          3.1588        1.1381       -.25752E-07   -.31644E-03
  14  norm          .36500        5.3980       -.50084E-05   -.56306E-03
  15  Prefactor     .10000E-03    5.5679       -.21767E-07** at limit **
  16  Prefactor     70.128        62.558       -.23820E-05   -.11961E-03
  17  norm          .10000E-03    4.7742       -.11314E-06** at limit **
  18  Prefactor     1.8406        4.6065        .75321E-05   -.23986E-03
  19  Prefactor     .10000E-03    164.78        .35317E-05** at limit **
  20  Prefactor     4.8206        8.6381        .10723E-05   -.22504E-03
  21  Prefactor     .10000E-03    24.184       -.18235E-05** at limit **
  22  norm          9.9943        16.197       -.42782E-06    .72743E-05
  23  norm          .10000E-03    10.855        .61948E-07** at limit **
  24  Prefactor     .10000E-03    14.851       -.10093E-05** at limit **
  25  Prefactor     .10000E-03    2.0508       -.16543E-06** at limit **
  26  Prefactor     .10000E-03    18.365        .23523E-05** at limit **
  27  Prefactor     5.6420        24.902        .10385E-05   -.21364E-04
  28  Prefactor     .10000E-03    36.233        .31016E-04** at limit **
  29  Normalizat    .51990        .22419        .15454E-05    .40624E-03
  30  Prefactor     1.1603        .15114       -.10304E-05    .48173E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.76087
  Prefactor  = 0.0001
  Prefactor  = 13.2559
  Prefactor  = 30.8197
  norm       = 0.000100002
  norm       = 1.42192
  Prefactor  = 11.3529
  norm       = 0.000100007
  Prefactor  = 82.2546
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 15.3851
  norm       = 3.15882
  norm       = 0.364997
  Prefactor  = 0.0001
  Prefactor  = 70.1285
  norm       = 0.0001
  Prefactor  = 1.84056
  Prefactor  = 0.000100002
  Prefactor  = 4.82062
  Prefactor  = 0.0001
  norm       = 9.99426
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.64203
  Prefactor  = 0.000100001
  Normalizat = 0.519903
  Prefactor  = 1.16034
 **********
 **   18 **HESSE 
 **********

 FCN=   6077.807     FROM HESSE     STATUS=OK           586 CALLS     4526 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7609        13.007        .12827E-03   -1.5083    
   2  Prefactor     .10000E-03    22.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.256        14.100        .11000E-03   -1.4980    
   4  Prefactor     30.820        11.373        .72172E-04   -1.4597    
   5  norm          .10000E-03    6.5863        .17214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.4219        5.2960        .32269E-03   -1.5469    
   7  Prefactor     11.353        11.542        .11890E-03   -1.5034    
   8  norm          .10001E-03    43.226        .42136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     82.255        47.003        .44290E-04   -1.3892    
  10  Prefactor     .10000E-03    10.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    35.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.385        12.015        .10208E-03   -1.4923    
  13  norm          3.1588        1.1337        .47229E-04   -1.5352    
  14  norm          .36500        13.946        .31207E-02   -1.5587    
  15  Prefactor     .10000E-03    5.5972        .17962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     70.128        62.756        .47939E-04   -1.4031    
  17  norm          .10000E-03    4.8143        .16631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.8406        7.1958        .15382E-02   -1.5437    
  19  Prefactor     .10000E-03    164.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.8206        8.7402        .91605E-03   -1.5269    
  21  Prefactor     .10000E-03    24.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.9943        16.195        .12675E-03   -1.5076    
  23  norm          .10000E-03    10.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.0738        .10889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    18.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.6420        25.072        .84575E-03   -1.5233    
  28  Prefactor     .10000E-03    57.091        .50138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .51990        .24250        .38394E-03   -1.1150    
  30  Prefactor     1.1603        .16699        .18849E-03   -.87561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65983e-09
Minuit parameter uncertainties:
  1  13.0108
  2  6.15312e-05
  3  14.1032
  4  11.3733
  5  0.000248364
  6  5.29773
  7  11.5447
  8  0.00106352
  9  47.0246
  10  4.06607e-05
  11  0.000586572
  12  12.0168
  13  1.13371
  14  4.51276
  15  7.76634e-06
  16  62.8153
  17  3.10319e-05
  18  7.19914
  19  0.00117193
  20  8.74254
  21  0.000150468
  22  16.2016
  23  2.3613e-05
  24  3.70801e-05
  25  2.33172e-05
  26  0.000202973
  27  23.8035
  28  0.000441442
  29  0.242998
  30  0.167068
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  2.030e-04  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.160e+00  1.671e-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:  5.199e-01  2.430e-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: 7.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71867/likelihoodResults_391219201_391478401_4FGL_J2339.6+0242_daily_bin586.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) = 6077.80774748
delta logL = -0.00025954492412

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6077.80748901
delta logL = -1.08123094833e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8017       1.0000          .0000       10.000    
     3 'Normalizat'    .51990       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1604       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=   6077.690     FROM MIGRAD    STATUS=CONVERGED    157 CALLS      352 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4248        522.80        .18142E-01    .26342E-03
   2  Index         1.2439        8.2204        .37300        .22596E-04
   3  Normalizat    .52307        .42851E-01    .38394E-03   -.68696E-05
   4  Prefactor     1.1560        .30823E-01    .18849E-03   -.89964E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.42476
  Index      = 1.24391
  Normalizat = 0.52307
  Prefactor  = 1.15604
 **********
 **   18 **HESSE 
 **********

 FCN=   6077.690     FROM HESSE     STATUS=OK            29 CALLS      381 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4248        17.585        .43875E-03   -1.5242    
   2  Index         1.2439        1.0751        .13466E-01   -2.2917    
   3  Normalizat    .52307        .22870        .15358E-04   -1.1136    
   4  Prefactor     1.1560        .16433        .37699E-04   -.87695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.93481e-11
Minuit parameter uncertainties:
  1  17.6017
  2  1.09505
  3  0.229111
  4  0.1644
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71867': 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) = 6077.68952801
delta logL = 0.117959921015

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  5.425e+00  1.760e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  1.244e+00  1.095e+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.156e+00  1.644e-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:  5.231e-01  2.291e-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/71867/cmap_HighResolution_391219201_391478401_4FGL_J2339.6+0242_daily_bin586.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.07e-03', job_status='DONE', photon_flux_upper_limit='7.78e-08', time_completed='2021-09-30 02:52:19.765761', job_id='71867', GAL2='1.16', fit_tolerance='1e-08', EG2='0.52', EG='0.52', time_epoch_completed='1632995539.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='1.18e-01', ts2='0.24', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='586' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:52:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 71867: <4FGL_J2339.6+0242_daily_bin586> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin586 354.904 2.7102 391219201 391478401 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 :                                   778.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             245.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            990 sec.

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

