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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin491
RA = 354.904, Dec = 2.7102
tmin = 366595201, tmax = 366854401
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='71703', job_status='RUN', time_executed='2021-09-30 02:38:21.827185', time_epoch_executed='1632994701.83' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='491'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71703

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71703/ft1_4FGL_J2339.6+0242_daily_bin491.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71703/ft2_4FGL_J2339.6+0242_daily_bin491.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71703/ft1_4FGL_J2339.6+0242_daily_bin491.fits outfile=/scratch/kocevski/71703/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin491.fits ra=354.904 dec=2.7102 rad=12.0 tmin=366595201.0 tmax=366854401.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 5.20
user 4.96
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71703/ft1_filtered_4FGL_J2339.6+0242_daily_bin491.fits" evtable="EVENTS" scfile=/scratch/kocevski/71703/ft2_4FGL_J2339.6+0242_daily_bin491.fits sctable="SC_DATA" outfile=/scratch/kocevski/71703/ltcube_366595201_366854401_4FGL_J2339.6+0242_daily_bin491.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/71703/ft2_4FGL_J2339.6+0242_daily_bin491.fits
.....................!
real 11.57
user 11.22
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71703/ft1_filtered_4FGL_J2339.6+0242_daily_bin491.fits evtable="EVENTS" scfile=/scratch/kocevski/71703/ft2_4FGL_J2339.6+0242_daily_bin491.fits sctable="SC_DATA" expcube=/scratch/kocevski/71703/ltcube_366595201_366854401_4FGL_J2339.6+0242_daily_bin491.fits outfile=/scratch/kocevski/71703/expmap_366595201_366854401_4FGL_J2339.6+0242_daily_bin491.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/71703/ltcube_366595201_366854401_4FGL_J2339.6+0242_daily_bin491.fits
.....................!
real 190.06
user 185.34
sys 4.32

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/71703/ft1_filtered_4FGL_J2339.6+0242_daily_bin491.fits scfile=/scratch/kocevski/71703/ft2_4FGL_J2339.6+0242_daily_bin491.fits outfile=/scratch/kocevski/71703/cmap_366595201_366854401_4FGL_J2339.6+0242_daily_bin491.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.54
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71703/ft1_filtered_4FGL_J2339.6+0242_daily_bin491.fits scfile=/scratch/kocevski/71703/ft2_4FGL_J2339.6+0242_daily_bin491.fits outfile=/scratch/kocevski/71703/cmap_HighResolution_366595201_366854401_4FGL_J2339.6+0242_daily_bin491.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=354.904 yref=2.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    86.132       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.4839       1.0000         .10000E-03   10000.    
     5 'norm      '    9.7875       1.0000         .10000E-03   10000.    
     6 'norm      '    .53968       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.153       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.7903       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.774       1.0000         .10000E-03   10000.    
    13 'norm      '    1.7376       1.0000         .10000E-03   10000.    
    14 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.876       1.0000         .10000E-03   10000.    
    17 'norm      '    .13147E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6693       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .58086       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.0289       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.7454       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.0947       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .58131       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0622       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=   4885.363     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     3926 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5686       -.85598E-06** at limit **
   2  Prefactor     86.114        84.258       -.39414E-05   -.21262E-03
   3  Prefactor     .10000E-03    38.087        .29692E-07** at limit **
   4  Prefactor     8.4819        11.127        .89717E-06    .10631E-04
   5  norm          9.7887        4.0203        .53468E-07   -.14867E-03
   6  norm          .53958        4.7274        .19224E-05   -.18906E-03
   7  Prefactor     12.154        15.702       -.21144E-06   -.61987E-04
   8  norm          .10000E-03    6.0079       -.66295E-07** at limit **
   9  Prefactor     .10000E-03    11.915        .48991E-06** at limit **
  10  Prefactor     .10000E-03    6.7907        .54765E-07** at limit **
  11  Prefactor     7.7886        12.151        .14486E-05   -.17352E-03
  12  Prefactor     11.770        13.747        .12742E-05   -.20951E-03
  13  norm          1.7375        1.3969       -.11417E-06   -.17245E-02
  14  norm          .10000E-03    2.9711       -.94196E-07** at limit **
  15  Prefactor     .10000E-03    5.5134        .94023E-06** at limit **
  16  Prefactor     17.879        49.890        .75223E-06   -.35053E-04
  17  norm          .10000E-03    10.927       -.22414E-06** at limit **
  18  Prefactor     2.6620        8.2033        .11347E-05   -.98251E-04
  19  Prefactor     .10001E-03    158.49        .33434E-05** at limit **
  20  Prefactor     .61897        25.494        .37952E-05   -.44304E-03
  21  Prefactor     .10000E-03    18.216        .14864E-06** at limit **
  22  norm          .10000E-03    11.296       -.49595E-06** at limit **
  23  norm          .10000E-03    15.767       -.36886E-06** at limit **
  24  Prefactor     .10000E-03    96.690        .97784E-06** at limit **
  25  Prefactor     6.0294        6.0661       -.52195E-07   -.68221E-03
  26  Prefactor     1.6275        140.15       -.64213E-05   -.93090E-04
  27  Prefactor     .10000E-03    5.1924        .30159E-07** at limit **
  28  Prefactor     2.0912        28.090        .11596E-05   -.59039E-04
  29  Normalizat    .58157        .23704       -.20229E-05   -.32662E-03
  30  Prefactor     1.0621        .14726        .74811E-07   -.45417E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 86.1138
  Prefactor  = 0.0001
  Prefactor  = 8.48191
  norm       = 9.78873
  norm       = 0.539575
  Prefactor  = 12.1535
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.78861
  Prefactor  = 11.7703
  norm       = 1.73749
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.8793
  norm       = 0.0001
  Prefactor  = 2.66199
  Prefactor  = 0.000100005
  Prefactor  = 0.618969
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.02939
  Prefactor  = 1.62753
  Prefactor  = 0.0001
  Prefactor  = 2.09119
  Normalizat = 0.58157
  Prefactor  = 1.06213
 **********
 **   18 **HESSE 
 **********

 FCN=   4885.363     FROM HESSE     STATUS=OK           586 CALLS     4512 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6003        .16148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     86.114        87.209        .43288E-04   -1.3849    
   3  Prefactor     .10000E-03    38.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.4819        11.156        .13763E-03   -1.5125    
   5  norm          9.7887        4.0256        .82981E-04   -1.5082    
   6  norm          .53958        5.0603        .29922E-03   -1.5561    
   7  Prefactor     12.154        15.631        .11491E-03   -1.5011    
   8  norm          .10000E-03    6.0270        .16732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.8528        .17789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.7886        12.370        .71833E-03   -1.5150    
  12  Prefactor     11.770        13.967        .58373E-03   -1.5022    
  13  norm          1.7375        1.3686        .65047E-04   -1.5444    
  14  norm          .10000E-03    2.9755        .11754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.6220        .16138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.879        49.950        .94728E-04   -1.4862    
  17  norm          .10000E-03    11.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.6620        8.2307        .24945E-03   -1.5382    
  19  Prefactor     .10001E-03    159.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .61897        137.31        .46815E-02   -1.5551    
  21  Prefactor     .10000E-03    18.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    11.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    15.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    96.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.0294        6.1342        .13899E-03   -1.5217    
  26  Prefactor     1.6275        149.08        .31746E-03   -1.5453    
  27  Prefactor     .10000E-03    5.1960        .15556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.0912        28.117        .28520E-03   -1.5419    
  29  Normalizat    .58157        .26645        .33403E-03   -1.0877    
  30  Prefactor     1.0621        .16785        .18103E-03   -.90686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.43881e-09
Minuit parameter uncertainties:
  1  7.80896e-05
  2  87.3385
  3  1.6545e-05
  4  11.1584
  5  4.02574
  6  3.30485
  7  15.6359
  8  8.59591e-06
  9  7.43335e-05
  10  5.33093e-06
  11  12.3744
  12  13.971
  13  1.36863
  14  7.82338e-06
  15  0.000100288
  16  50.0671
  17  1.82382e-05
  18  8.23417
  19  0.00181133
  20  18.4798
  21  4.09927e-05
  22  7.42068e-05
  23  0.000113849
  24  0.000393352
  25  6.13481
  26  31.2331
  27  6.39586e-06
  28  15.3444
  29  0.267042
  30  0.167932
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.628e+00  3.123e+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:  1.062e+00  1.679e-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:  5.816e-01  2.670e-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.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71703/likelihoodResults_366595201_366854401_4FGL_J2339.6+0242_daily_bin491.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) = 4885.35705644
delta logL = 0.00554453762925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4885.35628157
delta logL = 0.00631941428855

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6708       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3655       1.0000          .0000       10.000    
     3 'Normalizat'    .57553       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0643       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=   4885.356     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      240 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5756        193.50        .81534E-02    .25013E-03
   2  Index         3.3903        1.6042        .50000        .96989E-06
   3  Normalizat    .57535        .14974E-01    .75844E-01    .23922E-04
   4  Prefactor     1.0645        .10777E-01    .39137E-01   -.14458E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.57558
  Index      = 3.39034
  Normalizat = 0.575348
  Prefactor  = 1.06447
 **********
 **   18 **HESSE 
 **********

 FCN=   4885.356     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      273 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5756        6909.5        .32614E-03   -1.5457    
   2  Index         3.3903        6.6941        .80692E-02   -.32777    
   3  Normalizat    .57535        .23647        .33580E-03   -1.0904    
   4  Prefactor     1.0645        .17513        .18086E-03   -.90610    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.16251e-09
Minuit parameter uncertainties:
  1  170.41
  2  65.5091
  3  0.236888
  4  0.175223
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71703': 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) = 4885.35627458
delta logL = 0.00632639837204

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.576e+00  1.704e+02  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  3.390e+00  6.551e+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.064e+00  1.752e-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:  5.753e-01  2.369e-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/71703/cmap_HighResolution_366595201_366854401_4FGL_J2339.6+0242_daily_bin491.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.24e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-30 02:50:07.583266', job_id='71703', GAL2='1.06', fit_tolerance='1e-08', EG2='0.58', EG='0.58', time_epoch_completed='1632995407.58', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='6.33e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='491' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:50:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 71703: <4FGL_J2339.6+0242_daily_bin491> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin491 354.904 2.7102 366595201 366854401 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 :                                   703.03 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             251.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            873 sec.

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

