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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin91
RA = 354.904, Dec = 2.7102
tmin = 262915201, tmax = 263174401
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='69739', job_status='RUN', time_executed='2021-09-30 02:30:41.112467', time_epoch_executed='1632994241.11' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='91'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69739

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69739/ft1_4FGL_J2339.6+0242_daily_bin91.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69739/ft2_4FGL_J2339.6+0242_daily_bin91.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69739/ft1_4FGL_J2339.6+0242_daily_bin91.fits outfile=/scratch/kocevski/69739/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin91.fits ra=354.904 dec=2.7102 rad=12.0 tmin=262915201.0 tmax=263174401.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 1.31
user 1.10
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/69739/ft1_filtered_4FGL_J2339.6+0242_daily_bin91.fits" evtable="EVENTS" scfile=/scratch/kocevski/69739/ft2_4FGL_J2339.6+0242_daily_bin91.fits sctable="SC_DATA" outfile=/scratch/kocevski/69739/ltcube_262915201_263174401_4FGL_J2339.6+0242_daily_bin91.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/69739/ft2_4FGL_J2339.6+0242_daily_bin91.fits
.....................!
real 10.76
user 10.33
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69739/ft1_filtered_4FGL_J2339.6+0242_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/69739/ft2_4FGL_J2339.6+0242_daily_bin91.fits sctable="SC_DATA" expcube=/scratch/kocevski/69739/ltcube_262915201_263174401_4FGL_J2339.6+0242_daily_bin91.fits outfile=/scratch/kocevski/69739/expmap_262915201_263174401_4FGL_J2339.6+0242_daily_bin91.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/69739/ltcube_262915201_263174401_4FGL_J2339.6+0242_daily_bin91.fits
.....................!
real 190.23
user 184.93
sys 4.94

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69739/ft1_filtered_4FGL_J2339.6+0242_daily_bin91.fits scfile=/scratch/kocevski/69739/ft2_4FGL_J2339.6+0242_daily_bin91.fits outfile=/scratch/kocevski/69739/cmap_HighResolution_262915201_263174401_4FGL_J2339.6+0242_daily_bin91.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/69739/ft1_filtered_4FGL_J2339.6+0242_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/69739/ft2_4FGL_J2339.6+0242_daily_bin91.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/69739/Model_4FGL_J2339.6+0242_daily_bin91.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/69739/ft1_filtered_4FGL_J2339.6+0242_daily_bin91.fits.....................!
real 79.74
user 78.33
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8537       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.0708       1.0000         .10000E-03   10000.    
     6 'norm      '    2.1064       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5280       1.0000         .10000E-03   10000.    
     8 'norm      '    4.3854       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 '    10.309       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .36232       1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .91459       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.055       1.0000         .10000E-03   10000.    
    17 'norm      '    19.028       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.7907       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .50232E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.606       1.0000         .10000E-03   10000.    
    22 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.960       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .83575E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .61522E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .85078       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0387       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=   8167.490     FROM MIGRAD    STATUS=CONVERGED   1372 CALLS     4008 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8534        7.9786        .15325E-03    .21928E-03
   2  Prefactor     .10000E-03    62.195        .18142E-02** at limit **
   3  Prefactor     .10000E-03    9.3627        .18142E-02** at limit **
   4  Prefactor     .10000E-03    4.4073        .36285E-03** at limit **
   5  norm          2.0707        2.4606        .14358E-03    .10063E-03
   6  norm          2.1055        3.1711        .19041E-03    .12724E-03
   7  Prefactor     1.5303        14.716        .17269E-02    .14420E-02
   8  norm          4.3851        6.3971        .19232E-03    .22817E-04
   9  Prefactor     .10000E-03    7.1883        .18142E-02** at limit **
  10  Prefactor     .10000E-03    4.2656        .18142E-02** at limit **
  11  Prefactor     10.309        13.217        .12480E-03    .11205E-04
  12  Prefactor     .10000E-03    3.6874        .16873E-02** at limit **
  13  norm          .36200        .44700        .77899E-03   -.54343E-03
  14  norm          .10000E-03    2.3307        .13354E-02** at limit **
  15  Prefactor     .90410        14.413        .51442E-02    .22962E-03
  16  Prefactor     14.067        21.366        .10684E-03    .64911E-05
  17  norm          19.031        9.7076        .91817E-04   -.45144E-03
  18  Prefactor     7.7915        6.8526        .14366E-03   -.16602E-03
  19  Prefactor     .10000E-03    47.419        .18142E-02** at limit **
  20  Prefactor     .10010E-03    88.265        .35605E-02** at limit **
  21  Prefactor     16.611        20.088        .98285E-04   -.91611E-04
  22  norm          .10000E-03    15.464        .18142E-02** at limit **
  23  norm          .10000E-03    14.019        .18142E-02** at limit **
  24  Prefactor     .10000E-03    10.381        .18142E-02** at limit **
  25  Prefactor     10.968        4.6928        .11827E-03    .13321E-02
  26  Prefactor     .10000E-03    8.8504        .18142E-02** at limit **
  27  Prefactor     .10000E-03    61.692        .59844E-02** at limit **
  28  Prefactor     .10093E-03    16.649        .81552E-01** at limit **
  29  Normalizat    .85063        .21129        .30222E-03    .30214E-03
  30  Prefactor     1.0388        .14067        .19769E-03    .11772E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.85339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.0707
  norm       = 2.10547
  Prefactor  = 1.53033
  norm       = 4.38509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3091
  Prefactor  = 0.0001
  norm       = 0.361996
  norm       = 0.0001
  Prefactor  = 0.904098
  Prefactor  = 14.0671
  norm       = 19.031
  Prefactor  = 7.79152
  Prefactor  = 0.0001
  Prefactor  = 0.000100103
  Prefactor  = 16.6107
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.968
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100927
  Normalizat = 0.850632
  Prefactor  = 1.0388
 **********
 **   18 **HESSE 
 **********

 FCN=   8167.490     FROM HESSE     STATUS=OK           570 CALLS     4578 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8534        7.9784        .61302E-05   -1.5184    
   2  Prefactor     .10000E-03    62.218        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.3647        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.4075        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.0707        2.4599        .57434E-05   -1.5420    
   6  norm          2.1055        3.1691        .76164E-05   -1.5418    
   7  Prefactor     1.5303        14.660        .69074E-04   -1.5461    
   8  norm          4.3851        6.3969        .76930E-05   -1.5289    
   9  Prefactor     .10000E-03    7.1885        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.2664        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.309        13.216        .49918E-05   -1.5066    
  12  Prefactor     .10000E-03    3.6885        .33746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .36200        .44668        .31160E-04   -1.5588    
  14  norm          .10000E-03    2.3316        .26707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .90410        14.216        .20577E-03   -1.5518    
  16  Prefactor     14.067        21.363        .42735E-05   -1.4958    
  17  norm          19.031        9.6554        .36727E-05   -1.4835    
  18  Prefactor     7.7915        6.8510        .57465E-05   -1.5150    
  19  Prefactor     .10000E-03    47.419        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10010E-03    91.327        .14242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.611        20.066        .39314E-05   -1.4893    
  22  norm          .10000E-03    15.475        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    14.022        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.381        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     10.968        4.6644        .47308E-05   -1.5045    
  26  Prefactor     .10000E-03    8.8510        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    62.720        .11969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10093E-03    14.470        .89140E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .85063        .21120        .12089E-04   -.98217    
  30  Prefactor     1.0388        .14070        .39538E-04   -.91447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34766e-08
Minuit parameter uncertainties:
  1  7.97968
  2  0.000192728
  3  1.98046e-07
  4  1.14156e-05
  5  2.46006
  6  3.16936
  7  9.47583
  8  6.39786
  9  2.64358e-06
  10  1.05947e-05
  11  13.2198
  12  1.8004e-06
  13  0.446687
  14  2.10664e-06
  15  7.17177
  16  21.3743
  17  9.65615
  18  6.85167
  19  0.000237796
  20  0.00613835
  21  20.0744
  22  8.87612e-05
  23  0.000108268
  24  4.644e-05
  25  4.66459
  26  4.17387e-05
  27  0.000896075
  28  0.00732649
  29  0.21141
  30  0.140746
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  4.174e-05  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.039e+00  1.407e-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.506e-01  2.114e-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: 4.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/69739/likelihoodResults_262915201_263174401_4FGL_J2339.6+0242_daily_bin91.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) = 8167.49065503
delta logL = -0.000538216832865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8167.49011676
delta logL = 5.5467353377e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5334       1.0000          .0000       10.000    
     3 'Normalizat'    .85063       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0388       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=   8167.490     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10171E-03    129.49        .18142E-02** at limit **
   2  Index         2.4552        7.6580        .50000        .12184E-04
   3  Normalizat    .85063        .16026E-01    .30222E-03   -.24640E-04
   4  Prefactor     1.0388        .11550E-01    .19769E-03    .15642E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101708
  Index      = 2.45517
  Normalizat = 0.850628
  Prefactor  = 1.0388
 **********
 **   18 **HESSE 
 **********

 FCN=   8167.490     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10171E-03    524.08        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4552        8.0034        .50000       -.53398    
   3  Normalizat    .85063        .34200E-01    .12089E-04   -.98217    
   4  Prefactor     1.0388        .24649E-01    .79077E-05   -.91447    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.55002e-08
Minuit parameter uncertainties:
  1  0.0603716
  2  1123.25
  3  0.0342013
  4  0.0246489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69739': 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) = 8167.4901166
delta logL = 2.08752680919e-07

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.017e-04  6.037e-02  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.455e+00  1.123e+03  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.039e+00  2.465e-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.506e-01  3.420e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/69739/cmap_HighResolution_262915201_263174401_4FGL_J2339.6+0242_daily_bin91.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.62e-03', job_status='DONE', photon_flux_upper_limit='4.64e-08', time_completed='2021-09-30 02:46:17.035706', job_id='69739', GAL2='1.04', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1632995177.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='91' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:46:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 69739: <4FGL_J2339.6+0242_daily_bin91> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin91 354.904 2.7102 262915201 263174401 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 :                                   932.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             352.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            958 sec.

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

