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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin443
RA = 354.904, Dec = 2.7102
tmin = 354153601, tmax = 354412801
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='71613', job_status='RUN', time_executed='2021-09-30 02:37:38.403631', time_epoch_executed='1632994658.4' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='443'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71613

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71613/ft1_4FGL_J2339.6+0242_daily_bin443.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71613/ft2_4FGL_J2339.6+0242_daily_bin443.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71613/ft1_4FGL_J2339.6+0242_daily_bin443.fits outfile=/scratch/kocevski/71613/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin443.fits ra=354.904 dec=2.7102 rad=12.0 tmin=354153601.0 tmax=354412801.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.96
user 3.74
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71613/ft1_filtered_4FGL_J2339.6+0242_daily_bin443.fits" evtable="EVENTS" scfile=/scratch/kocevski/71613/ft2_4FGL_J2339.6+0242_daily_bin443.fits sctable="SC_DATA" outfile=/scratch/kocevski/71613/ltcube_354153601_354412801_4FGL_J2339.6+0242_daily_bin443.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/71613/ft2_4FGL_J2339.6+0242_daily_bin443.fits
.....................!
real 11.71
user 11.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71613/ft1_filtered_4FGL_J2339.6+0242_daily_bin443.fits evtable="EVENTS" scfile=/scratch/kocevski/71613/ft2_4FGL_J2339.6+0242_daily_bin443.fits sctable="SC_DATA" expcube=/scratch/kocevski/71613/ltcube_354153601_354412801_4FGL_J2339.6+0242_daily_bin443.fits outfile=/scratch/kocevski/71613/expmap_354153601_354412801_4FGL_J2339.6+0242_daily_bin443.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/71613/ltcube_354153601_354412801_4FGL_J2339.6+0242_daily_bin443.fits
.....................!
real 191.68
user 185.65
sys 5.67

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/71613/ft1_filtered_4FGL_J2339.6+0242_daily_bin443.fits scfile=/scratch/kocevski/71613/ft2_4FGL_J2339.6+0242_daily_bin443.fits outfile=/scratch/kocevski/71613/cmap_354153601_354412801_4FGL_J2339.6+0242_daily_bin443.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.59
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8406       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    96.453       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2062       1.0000         .10000E-03   10000.    
     5 'norm      '    3.4503       1.0000         .10000E-03   10000.    
     6 'norm      '    5.0373       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.264       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6687       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2021       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .32809       1.0000         .10000E-03   10000.    
    14 'norm      '    .88373       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.9887       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .11476E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    20.894       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2904       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0060       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=   6814.849     FROM MIGRAD    STATUS=CONVERGED    755 CALLS     3339 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8405        7.5161       -.20782E-06    .13450E-04
   2  Prefactor     .10000E-03    29.225       -.13542E-04** at limit **
   3  Prefactor     96.449        34.040       -.13615E-05   -.50909E-04
   4  Prefactor     1.2144        15.402       -.72545E-06    .30426E-05
   5  norm          3.4487        4.1244        .43424E-06   -.86753E-05
   6  norm          5.0383        4.9673        .14063E-05   -.12269E-04
   7  Prefactor     21.268        16.610        .91530E-07   -.22261E-04
   8  norm          1.6735        26.454       -.55892E-07   -.12300E-03
   9  Prefactor     .10000E-03    16.113       -.12384E-04** at limit **
  10  Prefactor     .10000E-03    7.3799       -.16265E-06** at limit **
  11  Prefactor     4.2023        14.204        .36947E-07   -.12744E-05
  12  Prefactor     .10000E-03    6.5180        .54834E-08** at limit **
  13  norm          .32806        .88005        .11214E-07   -.11890E-03
  14  norm          .88515        1.4207        .88650E-07   -.10186E-02
  15  Prefactor     .10000E-03    4.9897        .27836E-07** at limit **
  16  Prefactor     .10000E-03    40.993       -.81058E-05** at limit **
  17  norm          .10000E-03    4.2180        .46402E-07** at limit **
  18  Prefactor     .10000E-03    2.5592        .27612E-07** at limit **
  19  Prefactor     .10000E-03    85.429        .32848E-05** at limit **
  20  Prefactor     4.9831        13.146       -.17487E-05   -.42312E-03
  21  Prefactor     .10000E-03    17.693        .33799E-05** at limit **
  22  norm          .10000E-03    90.857       -.26588E-04** at limit **
  23  norm          .10000E-03    52.833        .30605E-04** at limit **
  24  Prefactor     .10000E-03    17.320       -.67356E-06** at limit **
  25  Prefactor     .10000E-03    1.8148        .60109E-07** at limit **
  26  Prefactor     20.901        34.318        .55418E-05   -.40480E-04
  27  Prefactor     .10000E-03    19.499        .14620E-04** at limit **
  28  Prefactor     .10000E-03    12.607        .22330E-05** at limit **
  29  Normalizat    1.2907        .22314       -.11038E-06   -.10789E-03
  30  Prefactor     1.0058        .14490       -.24718E-06   -.10239E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.84052
  Prefactor  = 0.0001
  Prefactor  = 96.4493
  Prefactor  = 1.21437
  norm       = 3.44866
  norm       = 5.03828
  Prefactor  = 21.2682
  norm       = 1.67351
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.20228
  Prefactor  = 0.0001
  norm       = 0.328061
  norm       = 0.885146
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.98306
  Prefactor  = 0.0001
  norm       = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.901
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.29065
  Prefactor  = 1.0058
 **********
 **   18 **HESSE 
 **********

 FCN=   6814.849     FROM HESSE     STATUS=OK           584 CALLS     3923 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8405        7.5117        .16618E-03   -1.5225    
   2  Prefactor     .10000E-03    29.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     96.449        33.893        .40927E-04   -1.3741    
   4  Prefactor     1.2144        15.722        .41256E-03   -1.5488    
   5  norm          3.4487        4.0828        .15533E-03   -1.5337    
   6  norm          5.0383        4.9625        .17549E-03   -1.5259    
   7  Prefactor     21.268        16.610        .86859E-04   -1.4785    
   8  norm          1.6735        28.109        .16320E-02   -1.5449    
   9  Prefactor     .10000E-03    16.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.4242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2023        14.196        .19659E-03   -1.5298    
  12  Prefactor     .10000E-03    6.5659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .32806        1.1439        .11304E-02   -1.5593    
  14  norm          .88515        9.3795        .23240E-02   -1.5520    
  15  Prefactor     .10000E-03    5.0125        .18007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    41.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.2543        .16553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.5665        .12895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    85.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.9831        12.931        .18005E-03   -1.5261    
  21  Prefactor     .10000E-03    17.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    93.560        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    53.733        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    17.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.8237        .10836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     20.901        34.343        .87626E-04   -1.4793    
  27  Prefactor     .10000E-03    19.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    12.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2907        .26242        .29949E-03   -.83846    
  30  Prefactor     1.0058        .17040        .22747E-03   -.92536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02502e-08
Minuit parameter uncertainties:
  1  7.51295
  2  1.40086e-05
  3  33.8998
  4  8.74138
  5  4.08314
  6  4.96287
  7  16.6137
  8  13.7244
  9  5.38811e-06
  10  2.45728e-06
  11  14.2073
  12  2.43804e-06
  13  1.14396
  14  5.76355
  15  7.28698e-07
  16  6.48461e-06
  17  1.43442e-07
  18  1.16488e-06
  19  1.13634e-05
  20  12.9382
  21  1.59714e-05
  22  0.00111188
  23  0.000285641
  24  1.51202e-06
  25  1.13098e-06
  26  34.3758
  27  4.83945e-05
  28  5.64747e-06
  29  0.262693
  30  0.170492
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  2.090e+01  3.438e+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.006e+00  1.705e-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.291e+00  2.627e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/71613/likelihoodResults_354153601_354412801_4FGL_J2339.6+0242_daily_bin443.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) = 6814.8476067
delta logL = 0.00147037956685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6814.8469425
delta logL = 0.00213458636063

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.268       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4563       1.0000          .0000       10.000    
     3 'Normalizat'    1.2933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0049       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=   6814.847     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      246 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.327        923.48        .21221E-02    .11012E-03
   2  Index         2.4528        6.2264        .35476        .17231E-04
   3  Normalizat    1.2932        .52585E-01    .67639E-01   -.62505E-05
   4  Prefactor     1.0045        .33508E-01    .44219E-01   -.64489E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.3266
  Index      = 2.45281
  Normalizat = 1.2932
  Prefactor  = 1.00451
 **********
 **   18 **HESSE 
 **********

 FCN=   6814.847     FROM HESSE     STATUS=OK            33 CALLS      279 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.327        42.628        .42441E-03   -1.4763    
   2  Index         2.4528        1.4488        .10266E-01   -.53453    
   3  Normalizat    1.2932        .24974        .29924E-03   -.83770    
   4  Prefactor     1.0045        .16939        .22760E-03   -.92579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19371e-11
Minuit parameter uncertainties:
  1  42.6863
  2  1.47767
  3  0.249978
  4  0.169475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71613': 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) = 6814.84692559
delta logL = 0.00215149490487

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  2.233e+01  4.269e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.453e+00  1.478e+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.005e+00  1.695e-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.293e+00  2.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.46
Ra Dec: 354.904 2.710

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/71613/cmap_HighResolution_354153601_354412801_4FGL_J2339.6+0242_daily_bin443.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.50e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-09-30 02:50:51.677575', job_id='71613', GAL2='1.00', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1632995451.68', return_code2='0', ts='0.46', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.15e-03', ts2='0.46', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='443' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:50:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 71613: <4FGL_J2339.6+0242_daily_bin443> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin443 354.904 2.7102 354153601 354412801 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 :                                   792.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            927 sec.

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

