/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 136 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2339.6+0242_daily_bin562
RA = 354.904, Dec = 2.7102
tmin = 384998401, tmax = 385257601
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='71826', job_status='RUN', time_executed='2021-09-30 02:38:15.068166', time_epoch_executed='1632994695.07' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='562'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71826

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71826/ft1_4FGL_J2339.6+0242_daily_bin562.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71826/ft2_4FGL_J2339.6+0242_daily_bin562.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71826/ft1_4FGL_J2339.6+0242_daily_bin562.fits outfile=/scratch/kocevski/71826/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin562.fits ra=354.904 dec=2.7102 rad=12.0 tmin=384998401.0 tmax=385257601.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.54
user 3.31
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71826/ft1_filtered_4FGL_J2339.6+0242_daily_bin562.fits" evtable="EVENTS" scfile=/scratch/kocevski/71826/ft2_4FGL_J2339.6+0242_daily_bin562.fits sctable="SC_DATA" outfile=/scratch/kocevski/71826/ltcube_384998401_385257601_4FGL_J2339.6+0242_daily_bin562.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/71826/ft2_4FGL_J2339.6+0242_daily_bin562.fits
.....................!
real 13.10
user 12.66
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71826/ft1_filtered_4FGL_J2339.6+0242_daily_bin562.fits evtable="EVENTS" scfile=/scratch/kocevski/71826/ft2_4FGL_J2339.6+0242_daily_bin562.fits sctable="SC_DATA" expcube=/scratch/kocevski/71826/ltcube_384998401_385257601_4FGL_J2339.6+0242_daily_bin562.fits outfile=/scratch/kocevski/71826/expmap_384998401_385257601_4FGL_J2339.6+0242_daily_bin562.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/71826/ltcube_384998401_385257601_4FGL_J2339.6+0242_daily_bin562.fits
.....................!
real 192.49
user 186.93
sys 5.09

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/71826/ft1_filtered_4FGL_J2339.6+0242_daily_bin562.fits scfile=/scratch/kocevski/71826/ft2_4FGL_J2339.6+0242_daily_bin562.fits outfile=/scratch/kocevski/71826/cmap_384998401_385257601_4FGL_J2339.6+0242_daily_bin562.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71826/ft1_filtered_4FGL_J2339.6+0242_daily_bin562.fits scfile=/scratch/kocevski/71826/ft2_4FGL_J2339.6+0242_daily_bin562.fits outfile=/scratch/kocevski/71826/cmap_HighResolution_384998401_385257601_4FGL_J2339.6+0242_daily_bin562.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/71826/ft1_filtered_4FGL_J2339.6+0242_daily_bin562.fits evtable="EVENTS" scfile=/scratch/kocevski/71826/ft2_4FGL_J2339.6+0242_daily_bin562.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/71826/Model_4FGL_J2339.6+0242_daily_bin562.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/71826/ft1_filtered_4FGL_J2339.6+0242_daily_bin562.fits.....................!
real 63.82
user 62.32
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2626       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.900       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.7112       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6117       1.0000         .10000E-03   10000.    
     8 'norm      '    16.634       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.364       1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.356       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.454       1.0000         .10000E-03   10000.    
    13 'norm      '    4.3641       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10379E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10636E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.603       1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.291       1.0000         .10000E-03   10000.    
    22 'norm      '    7.8494       1.0000         .10000E-03   10000.    
    23 'norm      '    51.017       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.903       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    11.651       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.9442       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .92807       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1023       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=   6134.250     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     3867 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2697        15.271       -.10745E-05   -.13675E-03
   2  Prefactor     .10000E-03    63.777        .40249E-04** at limit **
   3  Prefactor     37.905        23.695        .87286E-06    .15686E-04
   4  Prefactor     .10000E-03    7.2571       -.80761E-07** at limit **
   5  norm          1.7113        3.6943       -.83559E-06   -.92479E-03
   6  norm          .10000E-03    1.8905        .14863E-07** at limit **
   7  Prefactor     4.6133        12.023       -.11608E-05   -.88580E-04
   8  norm          16.635        12.318       -.26642E-06   -.41081E-05
   9  Prefactor     .10000E-03    30.040        .78463E-05** at limit **
  10  Prefactor     15.362        14.152       -.38031E-06   -.22067E-04
  11  Prefactor     26.354        18.474       -.32178E-06    .20845E-04
  12  Prefactor     18.455        12.977       -.12631E-06    .31725E-04
  13  norm          4.3643        1.5216       -.25197E-06    .91642E-04
  14  norm          .10000E-03    3.0212        .40646E-07** at limit **
  15  Prefactor     .10000E-03    5.6023        .18041E-06** at limit **
  16  Prefactor     .10000E-03    93.260       -.72441E-04** at limit **
  17  norm          .10000E-03    4.3043       -.84268E-07** at limit **
  18  Prefactor     .10000E-03    3.5990       -.71214E-07** at limit **
  19  Prefactor     .10000E-03    78.628        .25759E-05** at limit **
  20  Prefactor     27.606        26.628        .81910E-05    .59938E-04
  21  Prefactor     26.272        25.802       -.57161E-05   -.32914E-04
  22  norm          7.8497        14.243       -.24860E-06   -.21998E-04
  23  norm          50.999        61.714       -.19179E-04    .30901E-04
  24  Prefactor     .10000E-03    40.457       -.33866E-04** at limit **
  25  Prefactor     15.904        8.9725        .41555E-05   -.48382E-04
  26  Prefactor     .10000E-03    59.831        .39838E-04** at limit **
  27  Prefactor     11.645        26.666       -.24978E-05   -.63442E-04
  28  Prefactor     6.9478        19.011       -.15424E-05   -.56219E-04
  29  Normalizat    .92798        .24719       -.97767E-06   -.13714E-04
  30  Prefactor     1.1023        .16234        .11844E-05   -.98900E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.26967
  Prefactor  = 0.0001
  Prefactor  = 37.9052
  Prefactor  = 0.0001
  norm       = 1.71127
  norm       = 0.0001
  Prefactor  = 4.61334
  norm       = 16.6348
  Prefactor  = 0.0001
  Prefactor  = 15.3623
  Prefactor  = 26.3537
  Prefactor  = 18.4551
  norm       = 4.36427
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.6064
  Prefactor  = 26.2722
  norm       = 7.84968
  norm       = 50.999
  Prefactor  = 0.0001
  Prefactor  = 15.9038
  Prefactor  = 0.0001
  Prefactor  = 11.6451
  Prefactor  = 6.94777
  Normalizat = 0.927979
  Prefactor  = 1.10228
 **********
 **   18 **HESSE 
 **********

 FCN=   6134.250     FROM HESSE     STATUS=OK           590 CALLS     4457 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2697        15.276        .14884E-03   -1.5169    
   2  Prefactor     .10000E-03    63.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     37.905        23.304        .65104E-04   -1.4476    
   4  Prefactor     .10000E-03    7.4972        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.7113        3.6210        .18307E-03   -1.5446    
   6  norm          .10000E-03    1.9022        .10513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.6133        12.019        .18743E-03   -1.5278    
   8  norm          16.635        12.319        .98201E-04   -1.4892    
   9  Prefactor     .10000E-03    30.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.362        14.153        .10218E-03   -1.4924    
  11  Prefactor     26.354        18.476        .78032E-04   -1.4681    
  12  Prefactor     18.455        12.968        .93234E-04   -1.4849    
  13  norm          4.3643        1.5201        .53872E-04   -1.5290    
  14  norm          .10000E-03    3.0320        .13283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.6259        .18098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    93.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.3369        .15858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.6461        .14501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    78.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     27.606        26.689        .76253E-04   -1.4657    
  21  Prefactor     26.272        25.820        .78129E-04   -1.4682    
  22  norm          7.8497        14.244        .14312E-03   -1.5148    
  23  norm          50.999        61.823        .56148E-04   -1.4278    
  24  Prefactor     .10000E-03    40.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     15.904        8.9649        .10043E-03   -1.4910    
  26  Prefactor     .10000E-03    60.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     11.645        26.727        .11737E-03   -1.5025    
  28  Prefactor     6.9478        19.009        .15224E-03   -1.5181    
  29  Normalizat    .92798        .28465        .33736E-03   -.95484    
  30  Prefactor     1.1023        .18734        .22034E-03   -.89394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.95453e-10
Minuit parameter uncertainties:
  1  15.2842
  2  3.35783e-05
  3  23.3092
  4  5.93743e-06
  5  3.62145
  6  1.89271e-06
  7  12.0255
  8  12.3208
  9  1.55906e-05
  10  14.1565
  11  18.4805
  12  12.9698
  13  1.52008
  14  2.78155e-06
  15  3.26393e-05
  16  6.00384e-05
  17  3.17682e-05
  18  2.1137e-05
  19  9.37778e-05
  20  26.7003
  21  25.8312
  22  14.2501
  23  61.901
  24  3.55514e-05
  25  8.96567
  26  0.000226227
  27  26.7544
  28  19.0258
  29  0.285117
  30  0.187449
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  2.262e-04  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.102e+00  1.874e-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:  9.280e-01  2.851e-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: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71826/likelihoodResults_384998401_385257601_4FGL_J2339.6+0242_daily_bin562.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) = 6134.25043362
delta logL = -7.92603932496e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6134.25035446
delta logL = -9.29558154894e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4933       1.0000          .0000       10.000    
     3 'Normalizat'    .92799       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1023       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=   6134.250     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      238 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7355.9        .90712E-02** at limit **
   2  Index         2.5347        8.4881        .50000       -.69571E-05
   3  Normalizat    .92798        .65454E-01    .76229E-01   -.46505E-04
   4  Prefactor     1.1023        .46334E-01    .37501E-01   -.35028E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.53472
  Normalizat = 0.927977
  Prefactor  = 1.10228
 **********
 **   18 **HESSE 
 **********

 FCN=   6134.250     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      271 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9296.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5347        7.4121        .50000       -.51560    
   3  Normalizat    .92798        .22940        .33736E-03   -.95484    
   4  Prefactor     1.1023        .16295        .22034E-03   -.89394    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.48145e-08
Minuit parameter uncertainties:
  1  0.00569719
  2  68.2238
  3  0.229646
  4  0.163025
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71826': 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) = 6134.25035439
delta logL = -2.28073986364e-08

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  5.697e-03  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.535e+00  6.822e+01  0.000e+00  1.000e+01 (-1.000e+00)
465        Scale:  7.790e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.102e+00  1.630e-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:  9.280e-01  2.296e-01  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/71826/cmap_HighResolution_384998401_385257601_4FGL_J2339.6+0242_daily_bin562.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.43e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-30 02:51:47.370802', job_id='71826', GAL2='1.10', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1632995507.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='-2.28e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='562' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:51:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 71826: <4FGL_J2339.6+0242_daily_bin562> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin562 354.904 2.7102 384998401 385257601 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 :                                   806.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            962 sec.

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

