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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin46
RA = 354.904, Dec = 2.7102
tmin = 251251201, tmax = 251510401
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='69672', job_status='RUN', time_executed='2021-09-30 02:33:07.480965', time_epoch_executed='1632994387.48' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='46'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69672

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69672/ft1_4FGL_J2339.6+0242_daily_bin46.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69672/ft2_4FGL_J2339.6+0242_daily_bin46.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69672/ft1_4FGL_J2339.6+0242_daily_bin46.fits outfile=/scratch/kocevski/69672/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin46.fits ra=354.904 dec=2.7102 rad=12.0 tmin=251251201.0 tmax=251510401.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.46
user 1.28
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69672/ft1_filtered_4FGL_J2339.6+0242_daily_bin46.fits evtable="EVENTS" scfile=/scratch/kocevski/69672/ft2_4FGL_J2339.6+0242_daily_bin46.fits sctable="SC_DATA" expcube=/scratch/kocevski/69672/ltcube_251251201_251510401_4FGL_J2339.6+0242_daily_bin46.fits outfile=/scratch/kocevski/69672/expmap_251251201_251510401_4FGL_J2339.6+0242_daily_bin46.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/69672/ltcube_251251201_251510401_4FGL_J2339.6+0242_daily_bin46.fits
.....................!
real 191.28
user 185.40
sys 5.50

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/69672/ft1_filtered_4FGL_J2339.6+0242_daily_bin46.fits scfile=/scratch/kocevski/69672/ft2_4FGL_J2339.6+0242_daily_bin46.fits outfile=/scratch/kocevski/69672/cmap_251251201_251510401_4FGL_J2339.6+0242_daily_bin46.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69672/ft1_filtered_4FGL_J2339.6+0242_daily_bin46.fits scfile=/scratch/kocevski/69672/ft2_4FGL_J2339.6+0242_daily_bin46.fits outfile=/scratch/kocevski/69672/cmap_HighResolution_251251201_251510401_4FGL_J2339.6+0242_daily_bin46.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/69672/ft1_filtered_4FGL_J2339.6+0242_daily_bin46.fits evtable="EVENTS" scfile=/scratch/kocevski/69672/ft2_4FGL_J2339.6+0242_daily_bin46.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/69672/Model_4FGL_J2339.6+0242_daily_bin46.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/69672/ft1_filtered_4FGL_J2339.6+0242_daily_bin46.fits.....................!
real 69.74
user 68.24
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8666       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0481       1.0000         .10000E-03   10000.    
     5 'norm      '    2.8325       1.0000         .10000E-03   10000.    
     6 'norm      '    2.0741       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3999       1.0000         .10000E-03   10000.    
     8 'norm      '    .25863E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    85.300       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .82998       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.4324       1.0000         .10000E-03   10000.    
    17 'norm      '    8.1184       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    112.61       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.179       1.0000         .10000E-03   10000.    
    22 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10420E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.2090       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    31.741       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.1079       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1015       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .84770       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=   6738.567     FROM MIGRAD    STATUS=CONVERGED    765 CALLS     3921 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8627        10.621       -.55187E-06    .48405E-05
   2  Prefactor     .10000E-03    37.940        .17073E-05** at limit **
   3  Prefactor     .10000E-03    13.049       -.68933E-06** at limit **
   4  Prefactor     1.0506        12.018        .38881E-04    .10753E-03
   5  norm          2.8321        2.3481       -.10380E-06    .83351E-04
   6  norm          2.0735        3.4019        .70501E-07    .28746E-05
   7  Prefactor     4.3993        10.422        .26249E-05    .14039E-04
   8  norm          .10277E-03    6.1357       -.26396E-05** at limit **
   9  Prefactor     85.296        38.298        .83280E-06    .35346E-04
  10  Prefactor     .10000E-03    4.8101       -.64810E-07** at limit **
  11  Prefactor     .10000E-03    7.3158       -.56428E-06** at limit **
  12  Prefactor     .10000E-03    3.9527       -.15454E-06** at limit **
  13  norm          .83052        .62398       -.42738E-06   -.12561E-02
  14  norm          .10000E-03    1.1152       -.96664E-07** at limit **
  15  Prefactor     .10000E-03    3.3738       -.75212E-07** at limit **
  16  Prefactor     4.4260        51.917        .32208E-05    .23706E-04
  17  norm          8.1186        6.3061        .25295E-06    .37398E-04
  18  Prefactor     .10000E-03    2.7157       -.56988E-07** at limit **
  19  Prefactor     112.01        166.46        .63159E-04   -.80606E-04
  20  Prefactor     .10000E-03    3.2451       -.48364E-06** at limit **
  21  Prefactor     15.178        20.289        .62997E-06    .22423E-04
  22  norm          .10000E-03    10.039        .20651E-06** at limit **
  23  norm          .10000E-03    6.8385        .29180E-06** at limit **
  24  Prefactor     .10000E-03    90.878       -.75734E-05** at limit **
  25  Prefactor     1.2151        3.6474       -.48590E-05   -.10394E-02
  26  Prefactor     .10000E-03    10.919        .17229E-07** at limit **
  27  Prefactor     31.735        24.273        .97575E-06    .33620E-04
  28  Prefactor     7.1038        14.216        .68817E-06    .10582E-03
  29  Normalizat    1.1013        .19646       -.64064E-05    .74258E-03
  30  Prefactor     .84795        .12800        .31313E-05    .75759E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.86266
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.05065
  norm       = 2.83211
  norm       = 2.07351
  Prefactor  = 4.39927
  norm       = 0.000102769
  Prefactor  = 85.2958
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.830518
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.42605
  norm       = 8.11858
  Prefactor  = 0.0001
  Prefactor  = 112.015
  Prefactor  = 0.0001
  Prefactor  = 15.1777
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.21507
  Prefactor  = 0.0001
  Prefactor  = 31.7347
  Prefactor  = 7.10375
  Normalizat = 1.10128
  Prefactor  = 0.847952
 **********
 **   18 **HESSE 
 **********

 FCN=   6738.567     FROM HESSE     STATUS=OK           590 CALLS     4511 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8627        10.617        .20521E-03   -1.5315    
   2  Prefactor     .10000E-03    38.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0506        12.042        .24241E-02   -1.5503    
   5  norm          2.8321        2.3480        .10901E-03   -1.5371    
   6  norm          2.0735        3.3763        .18699E-03   -1.5420    
   7  Prefactor     4.3993        10.410        .96000E-03   -1.5288    
   8  norm          .10277E-03    9.3639        .65915E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     85.296        38.327        .43496E-04   -1.3858    
  10  Prefactor     .10000E-03    4.8221        .17583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.3416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.9742        .15937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .83052        .61895        .53738E-04   -1.5526    
  14  norm          .10000E-03    1.1166        .84655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.3822        .14720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.4260        51.986        .19127E-03   -1.5287    
  17  norm          8.1186        6.3011        .14071E-03   -1.5138    
  18  Prefactor     .10000E-03    2.7356        .13202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     112.01        166.35        .18954E-03   -1.3587    
  20  Prefactor     .10000E-03    3.2494        .14427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.178        20.280        .10280E-03   -1.4929    
  22  norm          .10000E-03    10.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.8409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    91.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.2151        3.6411        .24793E-03   -1.5488    
  26  Prefactor     .10000E-03    10.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     31.735        24.307        .71121E-04   -1.4581    
  28  Prefactor     7.1038        14.272        .15046E-03   -1.5175    
  29  Normalizat    1.1013        .22987        .27107E-03   -.89711    
  30  Prefactor     .84795        .15006        .21357E-03   -.97984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09537e-09
Minuit parameter uncertainties:
  1  10.6222
  2  0.000157982
  3  8.99756e-05
  4  7.1155
  5  2.34808
  6  3.37664
  7  10.414
  8  0.0101848
  9  38.3385
  10  9.87945e-07
  11  6.21006e-06
  12  7.68873e-06
  13  0.618953
  14  3.17665e-06
  15  2.0156e-06
  16  30.3704
  17  6.30164
  18  2.06718e-06
  19  167.048
  20  2.5717e-05
  21  20.2887
  22  7.10273e-06
  23  2.73992e-06
  24  0.000588011
  25  3.64177
  26  5.85372e-06
  27  24.3144
  28  14.279
  29  0.230083
  30  0.150129
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  5.854e-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:  8.480e-01  1.501e-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.101e+00  2.301e-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: 5.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/69672/likelihoodResults_251251201_251510401_4FGL_J2339.6+0242_daily_bin46.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) = 6738.56760296
delta logL = -0.000435755899161

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6738.56716767
delta logL = -4.61550371256e-07

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10130E-03    261.21        .18142E-02** at limit **
   2  Index         2.4512        7.4674        .50000        .60836E-05
   3  Normalizat    1.1013        .23244E-01    .27107E-03    .46135E-06
   4  Prefactor     .84795        .16380E-01    .21357E-03    .74525E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101301
  Index      = 2.45118
  Normalizat = 1.10127
  Prefactor  = 0.847952
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10130E-03    1001.3        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4512        5.4070        .50000       -.53491    
   3  Normalizat    1.1013        .50704E-01    .10843E-04   -.89711    
   4  Prefactor     .84795        .35731E-01    .85427E-05   -.97984    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.40253e-08
Minuit parameter uncertainties:
  1  0.0734584
  2  2224.3
  3  0.0507067
  4  0.035732
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69672': 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) = 6738.5671671
delta logL = 1.01819750853e-07

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.013e-04  7.346e-02  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.451e+00  2.224e+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:  8.480e-01  3.573e-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:  1.101e+00  5.071e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/69672/cmap_HighResolution_251251201_251510401_4FGL_J2339.6+0242_daily_bin46.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.47e-03', job_status='DONE', photon_flux_upper_limit='5.73e-08', time_completed='2021-09-30 02:46:46.577266', job_id='69672', GAL2='0.85', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1632995206.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='46' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:46:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 69672: <4FGL_J2339.6+0242_daily_bin46> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin46 354.904 2.7102 251251201 251510401 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 :                                   818.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            993 sec.

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

