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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin503
RA = 354.904, Dec = 2.7102
tmin = 369705601, tmax = 369964801
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='71722', job_status='RUN', time_executed='2021-09-30 02:38:04.149806', time_epoch_executed='1632994684.15' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='503'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71722

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71722/ft1_4FGL_J2339.6+0242_daily_bin503.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71722/ft2_4FGL_J2339.6+0242_daily_bin503.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71722/ft1_4FGL_J2339.6+0242_daily_bin503.fits outfile=/scratch/kocevski/71722/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin503.fits ra=354.904 dec=2.7102 rad=12.0 tmin=369705601.0 tmax=369964801.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.82
user 3.58
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71722/ft1_filtered_4FGL_J2339.6+0242_daily_bin503.fits evtable="EVENTS" scfile=/scratch/kocevski/71722/ft2_4FGL_J2339.6+0242_daily_bin503.fits sctable="SC_DATA" expcube=/scratch/kocevski/71722/ltcube_369705601_369964801_4FGL_J2339.6+0242_daily_bin503.fits outfile=/scratch/kocevski/71722/expmap_369705601_369964801_4FGL_J2339.6+0242_daily_bin503.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/71722/ltcube_369705601_369964801_4FGL_J2339.6+0242_daily_bin503.fits
.....................!
real 191.86
user 185.53
sys 4.91

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/71722/ft1_filtered_4FGL_J2339.6+0242_daily_bin503.fits scfile=/scratch/kocevski/71722/ft2_4FGL_J2339.6+0242_daily_bin503.fits outfile=/scratch/kocevski/71722/cmap_369705601_369964801_4FGL_J2339.6+0242_daily_bin503.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=354.904 yref=2.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71722/ft1_filtered_4FGL_J2339.6+0242_daily_bin503.fits scfile=/scratch/kocevski/71722/ft2_4FGL_J2339.6+0242_daily_bin503.fits outfile=/scratch/kocevski/71722/cmap_HighResolution_369705601_369964801_4FGL_J2339.6+0242_daily_bin503.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.028       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.0074       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.101       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.709       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0808       1.0000         .10000E-03   10000.    
    13 'norm      '    3.5857       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.962       1.0000         .10000E-03   10000.    
    17 'norm      '    4.8285       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.4125       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11085E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    28.298       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .94419E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    74.154       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .86416       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .95237       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=   6864.013     FROM MIGRAD    STATUS=CONVERGED    763 CALLS     3894 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.027        11.928       -.79403E-06   -.91579E-03
   2  Prefactor     4.0064        76.186       -.72229E-05   -.10299E-04
   3  Prefactor     20.097        13.870        .14951E-05   -.35760E-05
   4  Prefactor     .10000E-03    6.3875       -.18980E-05** at limit **
   5  norm          .10000E-03    1.2267       -.41379E-07** at limit **
   6  norm          .10000E-03    3.9368        .45034E-06** at limit **
   7  Prefactor     .10000E-03    7.9768       -.62836E-05** at limit **
   8  norm          .10000E-03    4.0433       -.75689E-06** at limit **
   9  Prefactor     11.702        25.949       -.27191E-05   -.28965E-04
  10  Prefactor     .10000E-03    11.169        .45795E-05** at limit **
  11  Prefactor     .10000E-03    8.6919        .55858E-05** at limit **
  12  Prefactor     6.0811        7.2869       -.28011E-06   -.21918E-03
  13  norm          3.5863        1.0633        .70958E-07   -.14016E-02
  14  norm          .10000E-03    2.2500       -.91565E-07** at limit **
  15  Prefactor     .10000E-03    4.4288        .84940E-07** at limit **
  16  Prefactor     11.961        27.166       -.33295E-05   -.44905E-04
  17  norm          4.8273        7.0335        .62587E-06   -.30421E-03
  18  Prefactor     5.4117        5.9515        .13822E-05   -.24029E-03
  19  Prefactor     .10000E-03    46.740        .16511E-04** at limit **
  20  Prefactor     .10000E-03    6.8436        .62340E-05** at limit **
  21  Prefactor     .10000E-03    7.3231       -.21380E-05** at limit **
  22  norm          .10000E-03    12.311       -.58598E-05** at limit **
  23  norm          28.395        20.402       -.10097E-04   -.55113E-03
  24  Prefactor     .10000E-03    13.066       -.68086E-05** at limit **
  25  Prefactor     .14632E-01    2.0982        .11933E-05    .55913E-03
  26  Prefactor     74.159        44.727        .32637E-05   -.19296E-03
  27  Prefactor     .10000E-03    14.645        .88917E-05** at limit **
  28  Prefactor     .10000E-03    26.240       -.22125E-06** at limit **
  29  Normalizat    .86454        .18711        .42642E-06   -.41258E-03
  30  Prefactor     .95225        .12582        .14798E-06   -.40907E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0271
  Prefactor  = 4.00645
  Prefactor  = 20.0968
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.7018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.08114
  norm       = 3.58632
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9607
  norm       = 4.8273
  Prefactor  = 5.41172
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 28.3946
  Prefactor  = 0.0001
  Prefactor  = 0.0146325
  Prefactor  = 74.1591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.864543
  Prefactor  = 0.952247
 **********
 **   18 **HESSE 
 **********

 FCN=   6864.013     FROM HESSE     STATUS=OK           582 CALLS     4476 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.027        11.998        .57752E-03   -1.5014    
   2  Prefactor     4.0064        75.804        .20146E-03   -1.5308    
   3  Prefactor     20.097        13.878        .89336E-04   -1.4811    
   4  Prefactor     .10000E-03    6.5174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.2490        .89405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.0480        .32090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.0060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.0520        .16268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.702        25.958        .11707E-03   -1.5024    
  10  Prefactor     .10000E-03    11.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.7121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.0811        7.2751        .16282E-03   -1.5215    
  13  norm          3.5863        1.0629        .44353E-04   -1.5329    
  14  norm          .10000E-03    2.2638        .12119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.4759        .17018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.961        27.167        .11582E-03   -1.5016    
  17  norm          4.8273        6.9887        .18308E-03   -1.5269    
  18  Prefactor     5.4117        5.9158        .17273E-03   -1.5243    
  19  Prefactor     .10000E-03    46.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.9544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.3295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    12.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          28.395        21.869        .75312E-04   -1.4642    
  24  Prefactor     .10000E-03    13.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .14632E-01    8.1388        .34702E-01   -1.5684    
  26  Prefactor     74.159        44.773        .46625E-04   -1.3984    
  27  Prefactor     .10000E-03    14.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    26.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .86454        .22279        .29657E-03   -.97717    
  30  Prefactor     .95225        .14875        .20142E-03   -.94339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.75522e-09
Minuit parameter uncertainties:
  1  12.0003
  2  34.9051
  3  13.8805
  4  2.53884e-05
  5  7.95716e-06
  6  5.60013e-06
  7  2.4358e-08
  8  1.17028e-06
  9  25.9825
  10  2.87649e-05
  11  8.0005e-06
  12  7.27612
  13  1.06288
  14  1.49051e-06
  15  1.6404e-05
  16  27.1953
  17  6.98992
  18  5.91642
  19  2.37972e-05
  20  0.000157281
  21  1.72493e-05
  22  5.31791e-06
  23  21.8752
  24  1.01219e-06
  25  0.687922
  26  44.7936
  27  5.65141e-05
  28  2.73167e-05
  29  0.223025
  30  0.148811
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  7.416e+01  4.479e+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:  9.522e-01  1.488e-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.645e-01  2.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.81
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 8.98e-08 +/- 5.42e-08
Energy Flux (Fixed Index): 2.47e-05 +/- 1.49e-05

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

Saving results to:
/scratch/kocevski/71722/likelihoodResults_369705601_369964801_4FGL_J2339.6+0242_daily_bin503.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) = 6862.12094067
delta logL = 1.89193055043

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6862.03379693
delta logL = 1.97907429639

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3426       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6294       1.0000          .0000       10.000    
     3 'Normalizat'    .75204       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0171       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=   6862.034     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      273 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3256        28.798        .48324E-02   -.56015E-04
   2  Index         4.6315        2.5382        .85408E-01    .10737E-03
   3  Normalizat    .75204        .75036E-01    .71278E-01   -.26551E-03
   4  Prefactor     1.0171        .52917E-01    .42447E-01   -.50014E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.3256
  Index      = 4.6315
  Normalizat = 0.752041
  Prefactor  = 1.01709
 **********
 **   18 **HESSE 
 **********

 FCN=   6862.034     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      304 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3256        40.212        .71368E-04   -1.5292    
   2  Index         4.6315        3.1064        .35448E-02   -.73768E-01
   3  Normalizat    .75204        .19977        .31544E-03   -1.0187    
   4  Prefactor     1.0171        .14049        .19570E-03   -.92162    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.88604e-10
Minuit parameter uncertainties:
  1  26.4006
  2  3.35358
  3  0.199961
  4  0.140539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71722': 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) = 6862.03379551
delta logL = 1.97907571353

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  4.326e+00  2.640e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  4.631e+00  3.354e+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.017e+00  1.405e-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:  7.520e-01  2.000e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.40
Ra Dec: 354.904 2.710
Photon Index (Free Index): 4.63 +/- 3.35
Photon Flux (Free Index): 1.61e-07 +/- 7.40e-08
Energy Flux (Free Index): 2.22e-05 +/- 1.44e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/71722/cmap_HighResolution_369705601_369964801_4FGL_J2339.6+0242_daily_bin503.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.49e-02', comment='SUCCESS', photon_flux='8.98e-08', energy_flux2='2.22e-05', photon_flux_error='5.42e-08', dlogl='1.98e+00', energy_flux='2.47e-05', photon_flux2='1.61e-07', job_status='DONE', time_completed='2021-09-30 02:52:02.283802', photon_index_error2='3.35', photon_index2='4.63', ts='3.81', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.91e-07', energy_flux_error2='1.44e-05', EG='0.86', time_epoch_completed='1632995522.28', return_code='0', job_id='71722', GAL2='1.02', EG2='0.75', return_code2='102', energy_flux_error='1.49e-05', photon_flux_error2='7.40e-08', ts2='8.40', photon_index='2.55' WHERE bin_id='503' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:52:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 71722: <4FGL_J2339.6+0242_daily_bin503> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin503 354.904 2.7102 369705601 369964801 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 :                                   835.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            986 sec.

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

