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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin1113
RA = 354.904, Dec = 2.7102
tmin = 527817601, tmax = 528076801
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='74760', job_status='RUN', time_executed='2021-09-30 02:45:49.014641', time_epoch_executed='1632995149.01' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='1113'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74760

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74760/ft1_4FGL_J2339.6+0242_daily_bin1113.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74760/ft2_4FGL_J2339.6+0242_daily_bin1113.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74760/ft1_4FGL_J2339.6+0242_daily_bin1113.fits outfile=/scratch/kocevski/74760/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin1113.fits ra=354.904 dec=2.7102 rad=12.0 tmin=527817601.0 tmax=528076801.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.48
user 3.26
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/74760/ft2_4FGL_J2339.6+0242_daily_bin1113.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/74760/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin1113.fits evtable="EVENTS" outfile="/scratch/kocevski/74760/ft1_filtered_4FGL_J2339.6+0242_daily_bin1113.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74760/ft1_filtered_4FGL_J2339.6+0242_daily_bin1113.fits evtable="EVENTS" scfile=/scratch/kocevski/74760/ft2_4FGL_J2339.6+0242_daily_bin1113.fits sctable="SC_DATA" expcube=/scratch/kocevski/74760/ltcube_527817601_528076801_4FGL_J2339.6+0242_daily_bin1113.fits outfile=/scratch/kocevski/74760/expmap_527817601_528076801_4FGL_J2339.6+0242_daily_bin1113.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/74760/ltcube_527817601_528076801_4FGL_J2339.6+0242_daily_bin1113.fits
.....................!
real 190.29
user 184.60
sys 5.37

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/74760/ft1_filtered_4FGL_J2339.6+0242_daily_bin1113.fits scfile=/scratch/kocevski/74760/ft2_4FGL_J2339.6+0242_daily_bin1113.fits outfile=/scratch/kocevski/74760/cmap_527817601_528076801_4FGL_J2339.6+0242_daily_bin1113.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.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.785       1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.675       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .23412       1.0000         .10000E-03   10000.    
     5 'norm      '    .59376       1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.261       1.0000         .10000E-03   10000.    
     8 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.403       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.707       1.0000         .10000E-03   10000.    
    13 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.5315       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5581       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.6946       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .86285       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21928E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.358       1.0000         .10000E-03   10000.    
    22 'norm      '    10.499       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    34.551       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .87368       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .91944       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=   5111.421     FROM MIGRAD    STATUS=CONVERGED    772 CALLS     3950 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.784        14.816        .18253E-05    .18137E-05
   2  Prefactor     46.670        52.218       -.24087E-05   -.16805E-04
   3  Prefactor     .10000E-03    6.7948        .32429E-06** at limit **
   4  Prefactor     .25387        6.0000        .33365E-06   -.28450E-03
   5  norm          .59345        2.1645       -.19844E-06   -.24197E-03
   6  norm          .10000E-03    6.6205        .33052E-06** at limit **
   7  Prefactor     14.267        14.449       -.54173E-05   -.49644E-04
   8  norm          .10000E-03    11.223       -.21453E-05** at limit **
   9  Prefactor     .10000E-03    7.2832       -.70062E-06** at limit **
  10  Prefactor     .10000E-03    4.2277       -.98075E-07** at limit **
  11  Prefactor     18.404        21.187       -.19130E-05    .27293E-04
  12  Prefactor     11.706        15.094       -.79536E-06    .15571E-05
  13  norm          .10000E-03    .37108       -.84185E-07** at limit **
  14  norm          7.5306        7.0503        .19465E-06    .24607E-04
  15  Prefactor     1.5549        3.3924        .76598E-06   -.10343E-02
  16  Prefactor     .10000E-03    25.924       -.16885E-04** at limit **
  17  norm          6.6968        12.732       -.32268E-05   -.54399E-04
  18  Prefactor     .86250        10.657        .29694E-06    .46776E-03
  19  Prefactor     .10000E-03    339.45       -.11206E-04** at limit **
  20  Prefactor     .10000E-03    3.9915       -.12560E-06** at limit **
  21  Prefactor     33.363        29.043       -.33378E-05   -.15691E-05
  22  norm          10.499        13.410       -.58252E-06   -.80092E-06
  23  norm          .10000E-03    10.086        .15639E-05** at limit **
  24  Prefactor     .10000E-03    20.632        .57599E-05** at limit **
  25  Prefactor     .10000E-03    3.3510       -.13054E-06** at limit **
  26  Prefactor     .10000E-03    10.253        .27500E-06** at limit **
  27  Prefactor     34.552        24.206       -.20276E-05   -.59748E-05
  28  Prefactor     .10000E-03    28.069        .12040E-04** at limit **
  29  Normalizat    .87364        .20754        .26597E-05   -.66327E-04
  30  Prefactor     .91946        .13930        .40256E-06    .39034E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.7842
  Prefactor  = 46.6703
  Prefactor  = 0.0001
  Prefactor  = 0.253867
  norm       = 0.593446
  norm       = 0.0001
  Prefactor  = 14.2669
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.404
  Prefactor  = 11.7064
  norm       = 0.0001
  norm       = 7.53062
  Prefactor  = 1.5549
  Prefactor  = 0.0001
  norm       = 6.69678
  Prefactor  = 0.862495
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.3627
  norm       = 10.4994
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.5522
  Prefactor  = 0.0001
  Normalizat = 0.873644
  Prefactor  = 0.919456
 **********
 **   18 **HESSE 
 **********

 FCN=   5111.421     FROM HESSE     STATUS=OK           592 CALLS     4542 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.784        14.816        .78890E-04   -1.4692    
   2  Prefactor     46.670        52.162        .58689E-04   -1.4341    
   3  Prefactor     .10000E-03    6.8034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .25387        29.600        .33559E-02   -1.5607    
   5  norm          .59345        2.1184        .19030E-03   -1.5554    
   6  norm          .10000E-03    6.8818        .35882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.267        14.401        .10606E-03   -1.4952    
   8  norm          .10000E-03    11.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.2844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.2318        .14357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.404        21.173        .93363E-04   -1.4850    
  12  Prefactor     11.706        15.090        .11708E-03   -1.5024    
  13  norm          .10000E-03    .56912        .84353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.5306        7.0286        .14613E-03   -1.5159    
  15  Prefactor     1.5549        28.237        .17049E-02   -1.5459    
  16  Prefactor     .10000E-03    25.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.6968        13.401        .15508E-03   -1.5190    
  18  Prefactor     .86250        18.974        .31701E-02   -1.5522    
  19  Prefactor     .10000E-03    339.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.0016        .13948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     33.363        29.237        .69380E-04   -1.4552    
  22  norm          10.499        13.399        .12365E-03   -1.5060    
  23  norm          .10000E-03    10.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    20.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.4376        .25540E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    10.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     34.552        24.220        .68175E-04   -1.4532    
  28  Prefactor     .10000E-03    28.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .87364        .23912        .28568E-03   -.97393    
  30  Prefactor     .91946        .16297        .19747E-03   -.95465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2613e-08
Minuit parameter uncertainties:
  1  14.8184
  2  52.2131
  3  3.82904e-06
  4  5.48421
  5  2.11868
  6  7.9155e-05
  7  14.405
  8  2.46589e-05
  9  2.47057e-06
  10  1.5907e-07
  11  21.1813
  12  15.0948
  13  4.8443e-06
  14  7.02937
  15  13.2591
  16  8.79013e-05
  17  13.4072
  18  8.09325
  19  0.000469288
  20  6.48158e-06
  21  29.2492
  22  13.4026
  23  5.56383e-06
  24  1.74292e-05
  25  1.80133e-05
  26  1.94214e-06
  27  24.2273
  28  0.000123625
  29  0.239412
  30  0.163054
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  1.942e-06  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.195e-01  1.631e-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.736e-01  2.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 354.904 2.710
Photon Flux Upper Limit: 6.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/74760/likelihoodResults_527817601_528076801_4FGL_J2339.6+0242_daily_bin1113.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) = 5111.42177019
delta logL = -0.0004639288627

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5111.4213087
delta logL = -2.43820795731e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13487E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5253       1.0000          .0000       10.000    
     3 'Normalizat'    .87394       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91926       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=   5111.421     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      257 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.713        .18142E-01** at limit **
   2  Index         1.9110        5.5679        .50000        .43729E-06
   3  Normalizat    .87365        .93601E-02    .28568E-03   -.14358E-03
   4  Prefactor     .91945        .66660E-02    .19747E-03   -.19891E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.91101
  Normalizat = 0.873646
  Prefactor  = 0.919455
 **********
 **   18 **HESSE 
 **********

 FCN=   5111.421     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    322.22        .26514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9110        5.4449        .50000       -.66594    
   3  Normalizat    .87365        .24937E-01    .11427E-04   -.97392    
   4  Prefactor     .91945        .17760E-01    .39494E-04   -.95465    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.47129e-08
Minuit parameter uncertainties:
  1  0.000404983
  2  964.436
  3  0.0249373
  4  0.0177596
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74760': 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) = 5111.42130485
delta logL = 1.40818156069e-06

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  4.050e-04  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  1.911e+00  9.644e+02  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:  9.195e-01  1.776e-02  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.736e-01  2.494e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 354.904 2.710

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/74760/cmap_HighResolution_527817601_528076801_4FGL_J2339.6+0242_daily_bin1113.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.05e-03', job_status='DONE', photon_flux_upper_limit='6.47e-08', time_completed='2021-09-30 03:01:05.235530', job_id='74760', GAL2='0.92', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632996065.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.41e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1113' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 03:01:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 74760: <4FGL_J2339.6+0242_daily_bin1113> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin1113 354.904 2.7102 527817601 528076801 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 :                                   702.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            934 sec.

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

