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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin595
RA = 354.904, Dec = 2.7102
tmin = 393552001, tmax = 393811201
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='71883', job_status='RUN', time_executed='2021-09-30 02:38:46.434349', time_epoch_executed='1632994726.43' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71883

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71883/ft1_4FGL_J2339.6+0242_daily_bin595.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71883/ft2_4FGL_J2339.6+0242_daily_bin595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71883/ft1_4FGL_J2339.6+0242_daily_bin595.fits outfile=/scratch/kocevski/71883/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin595.fits ra=354.904 dec=2.7102 rad=12.0 tmin=393552001.0 tmax=393811201.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.28
sys 0.24

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71883/ft1_filtered_4FGL_J2339.6+0242_daily_bin595.fits evtable="EVENTS" scfile=/scratch/kocevski/71883/ft2_4FGL_J2339.6+0242_daily_bin595.fits sctable="SC_DATA" expcube=/scratch/kocevski/71883/ltcube_393552001_393811201_4FGL_J2339.6+0242_daily_bin595.fits outfile=/scratch/kocevski/71883/expmap_393552001_393811201_4FGL_J2339.6+0242_daily_bin595.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/71883/ltcube_393552001_393811201_4FGL_J2339.6+0242_daily_bin595.fits
.....................!
real 191.26
user 186.45
sys 4.49

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/71883/ft1_filtered_4FGL_J2339.6+0242_daily_bin595.fits scfile=/scratch/kocevski/71883/ft2_4FGL_J2339.6+0242_daily_bin595.fits outfile=/scratch/kocevski/71883/cmap_393552001_393811201_4FGL_J2339.6+0242_daily_bin595.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71883/ft1_filtered_4FGL_J2339.6+0242_daily_bin595.fits scfile=/scratch/kocevski/71883/ft2_4FGL_J2339.6+0242_daily_bin595.fits outfile=/scratch/kocevski/71883/cmap_HighResolution_393552001_393811201_4FGL_J2339.6+0242_daily_bin595.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1745       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1036       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3330       1.0000         .10000E-03   10000.    
     5 'norm      '    1.9698       1.0000         .10000E-03   10000.    
     6 'norm      '    6.9204       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.3337       1.0000         .10000E-03   10000.    
     9 'Prefactor '    61.886       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .14536       1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.299       1.0000         .10000E-03   10000.    
    16 'Prefactor '    114.64       1.0000         .10000E-03   10000.    
    17 'norm      '    14.917       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.9101       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5542       1.0000         .10000E-03   10000.    
    22 'norm      '    26.088       1.0000         .10000E-03   10000.    
    23 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    84.499       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.741       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.0744       1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.490       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .92284       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .78889       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=   5370.034     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     3983 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1716        36.670        .30143E-04   -.15765E-04
   2  Prefactor     .10000E-03    25.045        .27491E-06** at limit **
   3  Prefactor     1.0844        18.263        .58998E-06   -.28752E-04
   4  Prefactor     6.3323        7.1115       -.59415E-06    .80315E-04
   5  norm          1.9713        3.2440       -.12361E-06   -.55235E-03
   6  norm          6.9203        4.3738       -.14929E-07    .11520E-03
   7  Prefactor     .10000E-03    4.3324        .15341E-06** at limit **
   8  norm          2.3333        7.2861        .59008E-05    .10350E-04
   9  Prefactor     61.879        46.460        .10133E-05   -.61831E-04
  10  Prefactor     .10000E-03    18.205        .40261E-06** at limit **
  11  Prefactor     .10000E-03    37.560       -.14431E-05** at limit **
  12  Prefactor     .10000E-03    2.7251       -.21091E-06** at limit **
  13  norm          .14502        .57415       -.19249E-06   -.64327E-03
  14  norm          .10000E-03    1.8435       -.23754E-06** at limit **
  15  Prefactor     10.299        15.551        .38297E-06   -.44734E-04
  16  Prefactor     114.58        88.286        .16543E-05   -.27621E-03
  17  norm          14.916        12.275        .20802E-06   -.73440E-04
  18  Prefactor     .10000E-03    3.5876        .13328E-06** at limit **
  19  Prefactor     .10000E-03    111.94        .59489E-07** at limit **
  20  Prefactor     4.9061        14.144        .17721E-05   -.17397E-03
  21  Prefactor     2.5557        57.114        .97332E-06   -.16650E-04
  22  norm          26.090        19.572        .29813E-06   -.25653E-04
  23  norm          .10000E-03    17.159        .31727E-06** at limit **
  24  Prefactor     84.439        76.447        .15132E-05   -.36198E-03
  25  Prefactor     .10000E-03    2.9042       -.20133E-07** at limit **
  26  Prefactor     13.741        33.773       -.50743E-06   -.57252E-04
  27  Prefactor     2.0633        67.295        .31589E-05    .22293E-05
  28  Prefactor     11.489        17.942       -.63208E-07   -.14214E-03
  29  Normalizat    .92329        .23459        .85482E-06   -.51158E-04
  30  Prefactor     .78868        .13820       -.33706E-05   -.48168E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.1716
  Prefactor  = 0.0001
  Prefactor  = 1.08439
  Prefactor  = 6.33233
  norm       = 1.97131
  norm       = 6.92031
  Prefactor  = 0.0001
  norm       = 2.33331
  Prefactor  = 61.8793
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.145021
  norm       = 0.0001
  Prefactor  = 10.2991
  Prefactor  = 114.583
  norm       = 14.9157
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.90611
  Prefactor  = 2.55568
  norm       = 26.0905
  norm       = 0.0001
  Prefactor  = 84.4385
  Prefactor  = 0.0001
  Prefactor  = 13.7408
  Prefactor  = 2.06331
  Prefactor  = 11.4888
  Normalizat = 0.923286
  Prefactor  = 0.788677
 **********
 **   18 **HESSE 
 **********

 FCN=   5370.034     FROM HESSE     STATUS=OK           590 CALLS     4573 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1716        37.077        .21141E-02   -1.5491    
   2  Prefactor     .10000E-03    25.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0844        107.22        .51469E-02   -1.5500    
   4  Prefactor     6.3323        7.1104        .15950E-03   -1.5205    
   5  norm          1.9713        3.2202        .14416E-03   -1.5427    
   6  norm          6.9203        4.3758        .11833E-03   -1.5182    
   7  Prefactor     .10000E-03    4.3383        .14896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.3333        7.2971        .13422E-02   -1.5402    
   9  Prefactor     61.879        46.572        .51007E-04   -1.4133    
  10  Prefactor     .10000E-03    18.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    38.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.7279        .11816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .14502        .85277        .10212E-02   -1.5632    
  14  norm          .10000E-03    1.8512        .97176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.299        15.435        .12485E-03   -1.5066    
  16  Prefactor     114.58        88.903        .18788E-03   -1.3563    
  17  norm          14.916        12.218        .10370E-03   -1.4935    
  18  Prefactor     .10000E-03    3.6042        .13538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    111.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.9061        14.007        .90758E-03   -1.5265    
  21  Prefactor     2.5557        55.678        .25547E-03   -1.5388    
  22  norm          26.090        19.575        .39216E-03   -1.4686    
  23  norm          .10000E-03    17.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     84.439        77.416        .21850E-03   -1.3868    
  25  Prefactor     .10000E-03    2.9302        .12159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     13.741        33.733        .10805E-03   -1.4966    
  27  Prefactor     2.0633        66.860        .28678E-03   -1.5421    
  28  Prefactor     11.489        17.977        .59092E-03   -1.5030    
  29  Normalizat    .92329        .27701        .28356E-03   -.95647    
  30  Prefactor     .78868        .16125        .20708E-03   -1.0015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04065e-08
Minuit parameter uncertainties:
  1  13.1902
  2  9.11592e-05
  3  21.6042
  4  7.11139
  5  3.22049
  6  4.37602
  7  2.0026e-05
  8  7.29988
  9  46.5998
  10  0.000285625
  11  0.000451152
  12  2.04183e-05
  13  0.703105
  14  1.78512e-05
  15  15.4413
  16  89.0068
  17  12.2196
  18  1.62764e-05
  19  3.73505e-05
  20  14.0162
  21  23.8824
  22  19.5802
  23  3.52144e-05
  24  77.5091
  25  2.73762e-06
  26  33.7802
  27  23.5188
  28  17.9856
  29  0.27744
  30  0.161344
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.374e+01  3.378e+01  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:  7.887e-01  1.613e-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.233e-01  2.774e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.23
Ra Dec: 354.904 2.710
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71883/likelihoodResults_393552001_393811201_4FGL_J2339.6+0242_daily_bin595.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): 1
logL (Free Index) = 5365.11583939
delta logL = 4.9178523434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5364.44726252
delta logL = 5.58642921296

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25299E-03   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    .64616       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92630       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=   5364.447     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      473 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25292E-03    .10136E-03    .56211E-06** at limit **
   2  Index        10.0000        1.2730        .19004E-01** at limit **
   3  Normalizat    .64621        .24406        .33162E-03    .65651E-04
   4  Prefactor     .92620        .16540        .19259E-03   -.39549E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000252919
  Index      = 10
  Normalizat = 0.646208
  Prefactor  = 0.926204
 **********
 **   18 **HESSE 
 **********

 FCN=   5364.447     FROM HESSE     STATUS=OK            25 CALLS      498 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25292E-03    .99946E-04    .74890E-07   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        1.2723        .76014E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .64621        .24426        .13265E-04   -1.0606    
   4  Prefactor     .92620        .16554        .77038E-05   -.95231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.19857e-10
Minuit parameter uncertainties:
  1  9.99459e-05
  2  7.55831e-05
  3  0.244674
  4  0.165632
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71883': 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) = 5364.44726
delta logL = 5.58643173588

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  9.262e-01  1.656e-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:  6.462e-01  2.447e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.81
Ra Dec: 354.904 2.710
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 2.39e-07 +/- 9.14e-08
Energy Flux (Free Index): 2.67e-05 +/- 1.03e-05

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/71883/cmap_HighResolution_393552001_393811201_4FGL_J2339.6+0242_daily_bin595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.86e-03', comment='SUCCESS', energy_flux2='2.67e-05', dlogl='5.59e+00', photon_flux2='2.39e-07', job_status='DONE', time_completed='2021-09-30 02:50:49.058609', photon_index_error2='0.00', photon_index2='10.00', ts='0.23', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='1.03e-05', EG='0.92', time_epoch_completed='1632995449.06', return_code='0', job_id='71883', GAL2='0.93', EG2='0.65', return_code2='0', photon_flux_error2='9.14e-08', ts2='12.81', photon_index='2.55' WHERE bin_id='595' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:50:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 71883: <4FGL_J2339.6+0242_daily_bin595> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin595 354.904 2.7102 393552001 393811201 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 :                                   721.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            897 sec.

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

