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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin370
RA = 354.904, Dec = 2.7102
tmin = 335232001, tmax = 335491201
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='70233', job_status='RUN', time_executed='2021-09-30 02:34:06.933503', time_epoch_executed='1632994446.93' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='370'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70233

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70233/ft1_4FGL_J2339.6+0242_daily_bin370.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70233/ft2_4FGL_J2339.6+0242_daily_bin370.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70233/ft1_4FGL_J2339.6+0242_daily_bin370.fits outfile=/scratch/kocevski/70233/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin370.fits ra=354.904 dec=2.7102 rad=12.0 tmin=335232001.0 tmax=335491201.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.73
user 3.50
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/70233/ft1_filtered_4FGL_J2339.6+0242_daily_bin370.fits" evtable="EVENTS" scfile=/scratch/kocevski/70233/ft2_4FGL_J2339.6+0242_daily_bin370.fits sctable="SC_DATA" outfile=/scratch/kocevski/70233/ltcube_335232001_335491201_4FGL_J2339.6+0242_daily_bin370.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/70233/ft2_4FGL_J2339.6+0242_daily_bin370.fits
.....................!
real 11.48
user 11.11
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70233/ft1_filtered_4FGL_J2339.6+0242_daily_bin370.fits evtable="EVENTS" scfile=/scratch/kocevski/70233/ft2_4FGL_J2339.6+0242_daily_bin370.fits sctable="SC_DATA" expcube=/scratch/kocevski/70233/ltcube_335232001_335491201_4FGL_J2339.6+0242_daily_bin370.fits outfile=/scratch/kocevski/70233/expmap_335232001_335491201_4FGL_J2339.6+0242_daily_bin370.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/70233/ltcube_335232001_335491201_4FGL_J2339.6+0242_daily_bin370.fits
.....................!
real 189.89
user 184.61
sys 4.98

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/70233/ft1_filtered_4FGL_J2339.6+0242_daily_bin370.fits scfile=/scratch/kocevski/70233/ft2_4FGL_J2339.6+0242_daily_bin370.fits outfile=/scratch/kocevski/70233/cmap_335232001_335491201_4FGL_J2339.6+0242_daily_bin370.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.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70233/ft1_filtered_4FGL_J2339.6+0242_daily_bin370.fits scfile=/scratch/kocevski/70233/ft2_4FGL_J2339.6+0242_daily_bin370.fits outfile=/scratch/kocevski/70233/cmap_HighResolution_335232001_335491201_4FGL_J2339.6+0242_daily_bin370.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.53
user 0.35
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.4844       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1753       1.0000         .10000E-03   10000.    
     5 'norm      '    3.4164       1.0000         .10000E-03   10000.    
     6 'norm      '    4.1243       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18155E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .11193E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9572       1.0000         .10000E-03   10000.    
    13 'norm      '    6.5441       1.0000         .10000E-03   10000.    
    14 'norm      '    .12267E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6839       1.0000         .10000E-03   10000.    
    16 'Prefactor '    65.503       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.0245       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.2460       1.0000         .10000E-03   10000.    
    21 'Prefactor '    37.936       1.0000         .10000E-03   10000.    
    22 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .15603       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10692E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    21.669       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.9994       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2676       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .61240       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=   5492.189     FROM MIGRAD    STATUS=CONVERGED    807 CALLS     4036 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.471        .93303E-07** at limit **
   2  Prefactor     .10000E-03    37.878        .17605E-05** at limit **
   3  Prefactor     5.4892        18.354       -.25775E-06    .10209E-03
   4  Prefactor     4.1779        9.9644       -.61498E-06    .18226E-03
   5  norm          3.4154        3.6231       -.23317E-06    .66013E-03
   6  norm          4.1213        4.8622       -.23908E-06    .47771E-03
   7  Prefactor     .10001E-03    53.983        .11794E-04** at limit **
   8  norm          .10000E-03    25.689        .11646E-05** at limit **
   9  Prefactor     .10000E-03    9.6156        .22461E-07** at limit **
  10  Prefactor     .10000E-03    3.3864        .12626E-07** at limit **
  11  Prefactor     .10000E-03    8.0821        .12849E-07** at limit **
  12  Prefactor     2.9573        7.4341       -.10141E-05    .38531E-03
  13  norm          6.5440        1.6824       -.43536E-07    .82230E-03
  14  norm          .10000E-03    6.6283        .20050E-05** at limit **
  15  Prefactor     2.6885        15.413       -.28952E-05    .37145E-03
  16  Prefactor     65.453        53.497        .50008E-06    .16585E-04
  17  norm          .10000E-03    5.2355        .81010E-07** at limit **
  18  Prefactor     7.0257        8.4088       -.22759E-06    .22006E-03
  19  Prefactor     .10000E-03    127.06       -.53052E-05** at limit **
  20  Prefactor     6.3063        14.312        .42458E-05    .62111E-03
  21  Prefactor     37.897        30.432       -.11616E-06    .11983E-04
  22  norm          .10000E-03    16.916        .54180E-07** at limit **
  23  norm          .10039E-03    38.125       -.10253E-04** at limit **
  24  Prefactor     .10001E-03    88.383        .47860E-05** at limit **
  25  Prefactor     21.677        7.8179        .73684E-06    .13728E-02
  26  Prefactor     .10000E-03    14.081       -.12986E-06** at limit **
  27  Prefactor     .10000E-03    10.972       -.12444E-06** at limit **
  28  Prefactor     9.9972        13.940       -.24503E-06    .55817E-04
  29  Normalizat    1.2674        .22202        .88665E-06    .28052E-04
  30  Prefactor     .61250        .13686        .54216E-06    .23418E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.48918
  Prefactor  = 4.17786
  norm       = 3.41539
  norm       = 4.12128
  Prefactor  = 0.000100008
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.95731
  norm       = 6.544
  norm       = 0.000100002
  Prefactor  = 2.68848
  Prefactor  = 65.4525
  norm       = 0.0001
  Prefactor  = 7.02571
  Prefactor  = 0.000100002
  Prefactor  = 6.30627
  Prefactor  = 37.8971
  norm       = 0.0001
  norm       = 0.00010039
  Prefactor  = 0.000100006
  Prefactor  = 21.6769
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.99717
  Normalizat = 1.26742
  Prefactor  = 0.612504
 **********
 **   18 **HESSE 
 **********

 FCN=   5492.189     FROM HESSE     STATUS=OK           594 CALLS     4630 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    37.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.4892        18.187        .17157E-03   -1.5239    
   4  Prefactor     4.1779        9.9713        .19724E-03   -1.5299    
   5  norm          3.4154        3.5939        .12313E-03   -1.5338    
   6  norm          4.1213        4.7739        .16720E-03   -1.5302    
   7  Prefactor     .10001E-03    56.215        .42668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    26.664        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.6225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.3882        .13319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.1008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.9573        7.1692        .23615E-03   -1.5364    
  13  norm          6.5440        1.6718        .45715E-04   -1.5196    
  14  norm          .10000E-03    25.866        .31899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.6885        15.069        .24872E-03   -1.5380    
  16  Prefactor     65.453        53.514        .49587E-04   -1.4088    
  17  norm          .10000E-03    5.2647        .16509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.0257        8.3866        .15136E-03   -1.5178    
  19  Prefactor     .10000E-03    126.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.3063        16.728        .16062E-03   -1.5206    
  21  Prefactor     37.897        30.355        .65073E-04   -1.4476    
  22  norm          .10000E-03    16.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10039E-03    55.544        .10829       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    88.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     21.677        8.0809        .86046E-04   -1.4776    
  26  Prefactor     .10000E-03    14.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    11.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     9.9972        13.937        .12672E-03   -1.5075    
  29  Normalizat    1.2674        .25686        .26073E-03   -.84544    
  30  Prefactor     .61250        .15812        .24047E-03   -1.0706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55997e-09
Minuit parameter uncertainties:
  1  4.74526e-05
  2  0.000266741
  3  18.2052
  4  9.9753
  5  3.59414
  6  4.77431
  7  0.00134869
  8  0.000475638
  9  9.08315e-06
  10  2.06414e-06
  11  2.17319e-05
  12  7.1713
  13  1.67178
  14  0.000483667
  15  12.7347
  16  53.5533
  17  3.98863e-05
  18  8.38796
  19  0.000874335
  20  16.7406
  21  30.3672
  22  2.015e-05
  23  0.00932045
  24  0.00144799
  25  8.08132
  26  1.04855e-05
  27  6.76937e-06
  28  13.9419
  29  0.25712
  30  0.158232
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  1.049e-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:  6.125e-01  1.582e-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.267e+00  2.571e-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: 7.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/70233/likelihoodResults_335232001_335491201_4FGL_J2339.6+0242_daily_bin370.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) = 5492.18967564
delta logL = -0.000337616580509

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5492.18933812
delta logL = -9.38380253501e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5474       1.0000          .0000       10.000    
     3 'Normalizat'    1.2674       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61255       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=   5492.189     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.638        .90712E-02** at limit **
   2  Index         2.5458        6.2713        .50000        .99808E-06
   3  Normalizat    1.2674        .20225        .58955E-01    .44556E-03
   4  Prefactor     .61250        .13500        .41225E-01   -.40564E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.5458
  Normalizat = 1.26743
  Prefactor  = 0.612499
 **********
 **   18 **HESSE 
 **********

 FCN=   5492.189     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5458        6.2703        .50000       -.51305    
   3  Normalizat    1.2674        .23183        .26073E-03   -.84544    
   4  Prefactor     .61250        .15478        .24047E-03   -1.0706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20156e-09
Minuit parameter uncertainties:
  1  0.000369755
  2  4.40975
  3  0.232023
  4  0.154892
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70233': 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) = 5492.18933802
delta logL = 1.50066625793e-10

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  3.698e-04  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.546e+00  4.410e+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:  6.125e-01  1.549e-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.267e+00  2.320e-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/70233/cmap_HighResolution_335232001_335491201_4FGL_J2339.6+0242_daily_bin370.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.84e-03', job_status='DONE', photon_flux_upper_limit='7.48e-08', time_completed='2021-09-30 02:46:34.260492', job_id='70233', GAL2='0.61', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1632995194.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='1.50e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='370' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:46:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 70233: <4FGL_J2339.6+0242_daily_bin370> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin370 354.904 2.7102 335232001 335491201 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 :                                   746.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             272.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            939 sec.

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

