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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin946
RA = 354.904, Dec = 2.7102
tmin = 484531201, tmax = 484790401
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='74498', job_status='RUN', time_executed='2021-09-30 02:47:40.336577', time_epoch_executed='1632995260.34' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='946'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74498

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74498/ft1_4FGL_J2339.6+0242_daily_bin946.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74498/ft2_4FGL_J2339.6+0242_daily_bin946.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74498/ft1_4FGL_J2339.6+0242_daily_bin946.fits outfile=/scratch/kocevski/74498/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin946.fits ra=354.904 dec=2.7102 rad=12.0 tmin=484531201.0 tmax=484790401.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 7.15
user 6.81
sys 0.28

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74498/ft1_filtered_4FGL_J2339.6+0242_daily_bin946.fits evtable="EVENTS" scfile=/scratch/kocevski/74498/ft2_4FGL_J2339.6+0242_daily_bin946.fits sctable="SC_DATA" expcube=/scratch/kocevski/74498/ltcube_484531201_484790401_4FGL_J2339.6+0242_daily_bin946.fits outfile=/scratch/kocevski/74498/expmap_484531201_484790401_4FGL_J2339.6+0242_daily_bin946.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/74498/ltcube_484531201_484790401_4FGL_J2339.6+0242_daily_bin946.fits
.....................!
real 191.32
user 185.75
sys 5.07

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/74498/ft1_filtered_4FGL_J2339.6+0242_daily_bin946.fits scfile=/scratch/kocevski/74498/ft2_4FGL_J2339.6+0242_daily_bin946.fits outfile=/scratch/kocevski/74498/cmap_484531201_484790401_4FGL_J2339.6+0242_daily_bin946.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.62
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/74498/ft1_filtered_4FGL_J2339.6+0242_daily_bin946.fits scfile=/scratch/kocevski/74498/ft2_4FGL_J2339.6+0242_daily_bin946.fits outfile=/scratch/kocevski/74498/cmap_HighResolution_484531201_484790401_4FGL_J2339.6+0242_daily_bin946.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.61
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.502       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10525E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.0186       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    71.720       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.5573       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.5201       1.0000         .10000E-03   10000.    
    14 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    84.515       1.0000         .10000E-03   10000.    
    17 'norm      '    .13566E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.2983       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10222E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.4181       1.0000         .10000E-03   10000.    
    26 'Prefactor '    26.864       1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.517       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .57531       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0296       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=   4720.031     FROM MIGRAD    STATUS=CONVERGED    737 CALLS     3838 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.505        23.186       -.89430E-06   -.84167E-04
   2  Prefactor     .10000E-03    67.395        .48760E-04** at limit **
   3  Prefactor     .10000E-03    6.0462        .15088E-05** at limit **
   4  Prefactor     .10000E-03    3.3152       -.26281E-06** at limit **
   5  norm          .10000E-03    1.6391       -.35557E-06** at limit **
   6  norm          4.0184        3.3878       -.14072E-06    .10839E-04
   7  Prefactor     .10000E-03    2.8184        .19164E-06** at limit **
   8  norm          .10000E-03    7.7269        .34661E-05** at limit **
   9  Prefactor     71.720        48.697       -.16401E-05    .50196E-04
  10  Prefactor     8.5549        11.820       -.10791E-05   -.10017E-04
  11  Prefactor     .10000E-03    7.3710        .83887E-06** at limit **
  12  Prefactor     .10000E-03    6.0670        .17699E-05** at limit **
  13  norm          1.5202        .88520        .17265E-06    .10257E-02
  14  norm          .10000E-03    6.4127       -.31921E-05** at limit **
  15  Prefactor     .10000E-03    6.3668       -.15657E-05** at limit **
  16  Prefactor     84.503        70.176       -.10822E-04    .65012E-04
  17  norm          .10000E-03    9.1194       -.40169E-05** at limit **
  18  Prefactor     8.3016        8.2477       -.91813E-06    .40967E-03
  19  Prefactor     .10000E-03    101.72       -.56809E-04** at limit **
  20  Prefactor     .10000E-03    5.9198       -.50091E-06** at limit **
  21  Prefactor     .10000E-03    44.058       -.34557E-04** at limit **
  22  norm          .10000E-03    22.541       -.59965E-05** at limit **
  23  norm          .10000E-03    21.879        .84597E-05** at limit **
  24  Prefactor     .10000E-03    56.238        .29812E-04** at limit **
  25  Prefactor     1.4165        5.2819       -.10823E-04   -.93178E-03
  26  Prefactor     26.872        45.285        .13466E-04    .11989E-03
  27  Prefactor     10.473        29.358       -.32417E-04    .62549E-04
  28  Prefactor     .10000E-03    10.383        .23056E-05** at limit **
  29  Normalizat    .57485        .22345        .58343E-05    .39199E-03
  30  Prefactor     1.0299        .14713        .26283E-05    .53664E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.5047
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.01844
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 71.7199
  Prefactor  = 8.55494
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.52021
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 84.5034
  norm       = 0.0001
  Prefactor  = 8.30155
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.41653
  Prefactor  = 26.8717
  Prefactor  = 10.4729
  Prefactor  = 0.0001
  Normalizat = 0.574849
  Prefactor  = 1.02993
 **********
 **   18 **HESSE 
 **********

 FCN=   4720.031     FROM HESSE     STATUS=OK           568 CALLS     4406 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.505        23.255        .61491E-04   -1.4403    
   2  Prefactor     .10000E-03    67.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.0522        .16497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.3225        .12216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.6732        .85833E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.0184        3.3847        .11323E-03   -1.5307    
   7  Prefactor     .10000E-03    2.8187        .11264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.7511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     71.720        48.655        .47404E-04   -1.4012    
  10  Prefactor     8.5549        11.830        .13703E-03   -1.5123    
  11  Prefactor     .10000E-03    7.3793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.1031        .16521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5202        .88454        .47374E-04   -1.5461    
  14  norm          .10000E-03    6.5949        .33963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.4297        .16927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     84.503        70.128        .43696E-04   -1.3867    
  17  norm          .10000E-03    9.4219        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.3016        8.1951        .13917E-03   -1.5132    
  19  Prefactor     .10000E-03    101.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.9457        .16306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    44.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    22.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    22.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    56.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.4165        5.3664        .28423E-03   -1.5470    
  26  Prefactor     26.872        45.318        .77291E-04   -1.4671    
  27  Prefactor     10.473        29.379        .12355E-03   -1.5061    
  28  Prefactor     .10000E-03    10.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .57485        .25053        .33779E-03   -1.0906    
  30  Prefactor     1.0299        .16810        .18093E-03   -.91739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10777e-09
Minuit parameter uncertainties:
  1  23.2599
  2  0.000130456
  3  1.09659e-05
  4  9.53101e-06
  5  1.5548e-05
  6  3.38489
  7  1.09322e-06
  8  4.35858e-05
  9  48.6819
  10  11.833
  11  9.95467e-06
  12  1.36441e-05
  13  0.88455
  14  1.64844e-05
  15  6.01377e-06
  16  70.1967
  17  6.78714e-05
  18  8.19624
  19  0.00027542
  20  0.000101015
  21  0.000336586
  22  6.58067e-05
  23  0.000356272
  24  2.2447e-05
  25  5.36823
  26  45.3762
  27  29.4195
  28  2.39585e-05
  29  0.251027
  30  0.168183
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  2.687e+01  4.538e+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:  1.030e+00  1.682e-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.748e-01  2.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/74498/likelihoodResults_484531201_484790401_4FGL_J2339.6+0242_daily_bin946.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) = 4719.87376521
delta logL = 0.157664978175

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4719.87097156
delta logL = 0.160458632044

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3695       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9439       1.0000          .0000       10.000    
     3 'Normalizat'    .54737       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0466       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=   4719.871     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      337 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4061        183.76        .48171E-02    .27071E-03
   2  Index         3.9416        6.9344        .14504        .87792E-04
   3  Normalizat    .54712        .63641E-01    .78073E-01   -.45628E-04
   4  Prefactor     1.0465        .44233E-01    .40112E-01   -.17302E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.40613
  Index      = 3.94156
  Normalizat = 0.547124
  Prefactor  = 1.04648
 **********
 **   18 **HESSE 
 **********

 FCN=   4719.871     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      368 TOTAL
                     EDM=   .67E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4061        359.06        .17697E-03   -1.5288    
   2  Index         3.9416        6.3173        .77143E-02   -.21330    
   3  Normalizat    .54712        .20565        .34573E-03   -1.1028    
   4  Prefactor     1.0465        .14716        .17966E-03   -.91196    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.6706e-07
Minuit parameter uncertainties:
  1  80.0509
  2  10.2489
  3  0.20594
  4  0.147213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74498': 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): 102
logL (Free Index) = 4719.87096162
delta logL = 0.16046857434

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  4.406e+00  8.005e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  3.942e+00  1.025e+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:  1.046e+00  1.472e-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.471e-01  2.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.47
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/74498/cmap_HighResolution_484531201_484790401_4FGL_J2339.6+0242_daily_bin946.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', job_status='DONE', photon_flux_upper_limit='1.54e-07', time_completed='2021-09-30 03:01:27.161369', job_id='74498', GAL2='1.05', fit_tolerance='1e-08', EG2='0.55', EG='0.57', time_epoch_completed='1632996087.16', return_code2='102', ts='0.47', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.60e-01', ts2='0.82', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='946' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 03:01:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 74498: <4FGL_J2339.6+0242_daily_bin946> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin946> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:45:11 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:45:12 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:45:12 2021
Terminated at Thu Sep 30 03:01:27 2021
Results reported at Thu Sep 30 03:01:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin946 354.904 2.7102 484531201 484790401 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 :                                   683.49 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             249.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            976 sec.

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

