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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin155
RA = 354.904, Dec = 2.7102
tmin = 279504001, tmax = 279763201
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='69839', job_status='RUN', time_executed='2021-09-30 02:32:47.371744', time_epoch_executed='1632994367.37' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='155'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69839

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69839/ft1_4FGL_J2339.6+0242_daily_bin155.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69839/ft2_4FGL_J2339.6+0242_daily_bin155.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69839/ft1_4FGL_J2339.6+0242_daily_bin155.fits outfile=/scratch/kocevski/69839/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin155.fits ra=354.904 dec=2.7102 rad=12.0 tmin=279504001.0 tmax=279763201.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.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/69839/ft2_4FGL_J2339.6+0242_daily_bin155.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/69839/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin155.fits evtable="EVENTS" outfile="/scratch/kocevski/69839/ft1_filtered_4FGL_J2339.6+0242_daily_bin155.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.51
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69839/ft1_filtered_4FGL_J2339.6+0242_daily_bin155.fits evtable="EVENTS" scfile=/scratch/kocevski/69839/ft2_4FGL_J2339.6+0242_daily_bin155.fits sctable="SC_DATA" expcube=/scratch/kocevski/69839/ltcube_279504001_279763201_4FGL_J2339.6+0242_daily_bin155.fits outfile=/scratch/kocevski/69839/expmap_279504001_279763201_4FGL_J2339.6+0242_daily_bin155.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/69839/ltcube_279504001_279763201_4FGL_J2339.6+0242_daily_bin155.fits
.....................!
real 191.04
user 186.13
sys 4.58

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/69839/ft1_filtered_4FGL_J2339.6+0242_daily_bin155.fits scfile=/scratch/kocevski/69839/ft2_4FGL_J2339.6+0242_daily_bin155.fits outfile=/scratch/kocevski/69839/cmap_279504001_279763201_4FGL_J2339.6+0242_daily_bin155.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69839/ft1_filtered_4FGL_J2339.6+0242_daily_bin155.fits scfile=/scratch/kocevski/69839/ft2_4FGL_J2339.6+0242_daily_bin155.fits outfile=/scratch/kocevski/69839/cmap_HighResolution_279504001_279763201_4FGL_J2339.6+0242_daily_bin155.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=354.904 yref=2.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.668       1.0000         .10000E-03   10000.    
     5 'norm      '    2.5212       1.0000         .10000E-03   10000.    
     6 'norm      '    2.1751       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.289       1.0000         .10000E-03   10000.    
     8 'norm      '    3.0294       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.4335       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .63319       1.0000         .10000E-03   10000.    
    14 'norm      '    .10141E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.8696       1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.874       1.0000         .10000E-03   10000.    
    17 'norm      '    .10357E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.678       1.0000         .10000E-03   10000.    
    19 'Prefactor '    512.20       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10831E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    69.559       1.0000         .10000E-03   10000.    
    22 'norm      '    30.034       1.0000         .10000E-03   10000.    
    23 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11697E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.3488       1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.896       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    22.818       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0210       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .71928       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=   5358.944     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3939 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3335       -.88637E-08** at limit **
   2  Prefactor     .10000E-03    26.126       -.24276E-05** at limit **
   3  Prefactor     .10000E-03    11.077       -.69412E-05** at limit **
   4  Prefactor     12.667        8.6377       -.28044E-06   -.85913E-05
   5  norm          2.5209        2.9387       -.16035E-06   -.18135E-03
   6  norm          2.1750        3.3024       -.16839E-06   -.23983E-03
   7  Prefactor     11.286        14.302       -.33905E-06   -.82585E-05
   8  norm          3.0283        10.749       -.15475E-05   -.16912E-03
   9  Prefactor     .10000E-03    34.317        .37008E-05** at limit **
  10  Prefactor     7.4332        9.7641       -.34141E-06   -.56836E-04
  11  Prefactor     .10000E-03    5.6065       -.19109E-06** at limit **
  12  Prefactor     .10000E-03    18.389        .32124E-05** at limit **
  13  norm          .63246        .65204       -.32269E-06   -.10809E-02
  14  norm          .10000E-03    3.8345       -.13936E-06** at limit **
  15  Prefactor     6.8683        7.4312       -.47549E-06   -.83163E-03
  16  Prefactor     35.873        33.710        .10312E-05    .12702E-04
  17  norm          .10000E-03    8.1980       -.14572E-05** at limit **
  18  Prefactor     10.673        7.5784       -.11398E-06   -.14327E-04
  19  Prefactor     512.26        276.26        .26920E-04    .10727E-04
  20  Prefactor     .10000E-03    7.1423        .32048E-06** at limit **
  21  Prefactor     69.549        28.533       -.12673E-05    .31150E-04
  22  norm          30.034        25.578       -.93179E-06    .33538E-05
  23  norm          .10000E-03    26.402       -.40408E-05** at limit **
  24  Prefactor     .10000E-03    104.80        .61491E-05** at limit **
  25  Prefactor     5.3463        5.5367        .36607E-06   -.19559E-03
  26  Prefactor     15.856        32.403       -.27517E-04   -.91219E-05
  27  Prefactor     .10000E-03    10.219        .61153E-05** at limit **
  28  Prefactor     22.814        18.706        .34149E-06    .28214E-04
  29  Normalizat    1.0213        .21323        .12966E-05    .29112E-04
  30  Prefactor     .71915        .13601        .90630E-06    .78658E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6669
  norm       = 2.52086
  norm       = 2.17496
  Prefactor  = 11.2862
  norm       = 3.02834
  Prefactor  = 0.0001
  Prefactor  = 7.43318
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.632465
  norm       = 0.000100005
  Prefactor  = 6.86833
  Prefactor  = 35.8735
  norm       = 0.0001
  Prefactor  = 10.6732
  Prefactor  = 512.262
  Prefactor  = 0.0001
  Prefactor  = 69.5486
  norm       = 30.0335
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.3463
  Prefactor  = 15.8555
  Prefactor  = 0.0001
  Prefactor  = 22.8136
  Normalizat = 1.02128
  Prefactor  = 0.719147
 **********
 **   18 **HESSE 
 **********

 FCN=   5358.944     FROM HESSE     STATUS=OK           590 CALLS     4529 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3341        .13054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.667        8.6409        .11254E-03   -1.4996    
   5  norm          2.5209        2.9296        .12703E-03   -1.5390    
   6  norm          2.1750        3.2776        .15735E-03   -1.5413    
   7  Prefactor     11.286        14.320        .11924E-03   -1.5036    
   8  norm          3.0283        10.755        .23314E-03   -1.5360    
   9  Prefactor     .10000E-03    34.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.4332        9.7604        .14710E-03   -1.5163    
  11  Prefactor     .10000E-03    5.6125        .16929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.801        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .63246        .62528        .57613E-03   -1.5549    
  14  norm          .10000E-03    10.531        .27697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.8683        7.4471        .76538E-03   -1.5184    
  16  Prefactor     35.873        33.716        .66911E-04   -1.4509    
  17  norm          .10000E-03    8.2758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.673        7.5769        .12261E-03   -1.5054    
  19  Prefactor     512.26        276.01        .90725E-04   -1.1142    
  20  Prefactor     .10000E-03    7.1736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     69.549        28.492        .48130E-04   -1.4038    
  22  norm          30.034        25.587        .73109E-04   -1.4611    
  23  norm          .10000E-03    26.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    106.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.3463        5.5149        .15631E-03   -1.5245    
  26  Prefactor     15.856        32.415        .10046E-03   -1.4911    
  27  Prefactor     .10000E-03    10.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     22.814        18.757        .83854E-04   -1.4752    
  29  Normalizat    1.0213        .24450        .26775E-03   -.92321    
  30  Prefactor     .71915        .15585        .21553E-03   -1.0278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40218e-09
Minuit parameter uncertainties:
  1  1.24518e-06
  2  7.01987e-06
  3  9.67295e-06
  4  8.64175
  5  2.92976
  6  3.27784
  7  14.3241
  8  10.7615
  9  5.91983e-05
  10  9.76253
  11  2.76628e-06
  12  0.000145383
  13  0.625286
  14  0.000454351
  15  7.44813
  16  33.7343
  17  4.27149e-05
  18  7.57755
  19  276.734
  20  8.62386e-05
  21  28.4977
  22  25.5958
  23  0.000198625
  24  0.000425145
  25  5.51543
  26  32.4512
  27  4.47333e-05
  28  18.7614
  29  0.244774
  30  0.15594
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.586e+01  3.245e+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:  7.191e-01  1.559e-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.021e+00  2.448e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/69839/likelihoodResults_279504001_279763201_4FGL_J2339.6+0242_daily_bin155.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) = 5358.94111038
delta logL = 0.00335543524398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5358.93882876
delta logL = 0.00563706280536

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.246       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7240       1.0000          .0000       10.000    
     3 'Normalizat'    1.0190       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72047       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=   5358.939     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      259 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.247        48.490        .11006E-03    .19833E-04
   2  Index         2.7275        2.1805        .12919E-01    .15749E-04
   3  Normalizat    1.0184        .22357        .26809E-03    .49701E-04
   4  Prefactor     .72085        .15339        .21530E-03    .57873E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2469
  Index      = 2.72754
  Normalizat = 1.01836
  Prefactor  = 0.720853
 **********
 **   18 **HESSE 
 **********

 FCN=   5358.939     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .70E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.247        38.945        .44022E-05   -1.4980    
   2  Index         2.7275        1.7766        .51675E-03   -.47180    
   3  Normalizat    1.0184        .22315        .10723E-04   -.92418    
   4  Prefactor     .72085        .15282        .86119E-05   -1.0272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.00641e-12
Minuit parameter uncertainties:
  1  39.0194
  2  1.8275
  3  0.223354
  4  0.152904
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69839': 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) = 5358.9388216
delta logL = 0.00564421558647

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.325e+01  3.902e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.728e+00  1.828e+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:  7.209e-01  1.529e-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.018e+00  2.234e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
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/69839/cmap_HighResolution_279504001_279763201_4FGL_J2339.6+0242_daily_bin155.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.77e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-30 02:44:46.649313', job_id='69839', GAL2='0.72', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1632995086.65', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='5.64e-03', ts2='0.29', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='155' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:44:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 69839: <4FGL_J2339.6+0242_daily_bin155> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin155> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:30:29 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:30:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 02:30:30 2021
Terminated at Thu Sep 30 02:44:47 2021
Results reported at Thu Sep 30 02:44:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin155 354.904 2.7102 279504001 279763201 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 :                                   718.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            858 sec.

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

