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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin894
RA = 354.904, Dec = 2.7102
tmin = 471052801, tmax = 471312001
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='73340', job_status='RUN', time_executed='2021-09-30 02:40:58.771573', time_epoch_executed='1632994858.77' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='894'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73340

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73340/ft1_4FGL_J2339.6+0242_daily_bin894.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73340/ft2_4FGL_J2339.6+0242_daily_bin894.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73340/ft1_4FGL_J2339.6+0242_daily_bin894.fits outfile=/scratch/kocevski/73340/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin894.fits ra=354.904 dec=2.7102 rad=12.0 tmin=471052801.0 tmax=471312001.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.12
user 2.86
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/73340/ft2_4FGL_J2339.6+0242_daily_bin894.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/73340/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin894.fits evtable="EVENTS" outfile="/scratch/kocevski/73340/ft1_filtered_4FGL_J2339.6+0242_daily_bin894.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.43
user 0.26
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73340/ft1_filtered_4FGL_J2339.6+0242_daily_bin894.fits" evtable="EVENTS" scfile=/scratch/kocevski/73340/ft2_4FGL_J2339.6+0242_daily_bin894.fits sctable="SC_DATA" outfile=/scratch/kocevski/73340/ltcube_471052801_471312001_4FGL_J2339.6+0242_daily_bin894.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/73340/ft2_4FGL_J2339.6+0242_daily_bin894.fits
.....................!
real 8.81
user 8.50
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73340/ft1_filtered_4FGL_J2339.6+0242_daily_bin894.fits evtable="EVENTS" scfile=/scratch/kocevski/73340/ft2_4FGL_J2339.6+0242_daily_bin894.fits sctable="SC_DATA" expcube=/scratch/kocevski/73340/ltcube_471052801_471312001_4FGL_J2339.6+0242_daily_bin894.fits outfile=/scratch/kocevski/73340/expmap_471052801_471312001_4FGL_J2339.6+0242_daily_bin894.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/73340/ltcube_471052801_471312001_4FGL_J2339.6+0242_daily_bin894.fits
.....................!
real 143.75
user 139.72
sys 3.80

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/73340/ft1_filtered_4FGL_J2339.6+0242_daily_bin894.fits scfile=/scratch/kocevski/73340/ft2_4FGL_J2339.6+0242_daily_bin894.fits outfile=/scratch/kocevski/73340/cmap_471052801_471312001_4FGL_J2339.6+0242_daily_bin894.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.44
user 0.28
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73340/ft1_filtered_4FGL_J2339.6+0242_daily_bin894.fits scfile=/scratch/kocevski/73340/ft2_4FGL_J2339.6+0242_daily_bin894.fits outfile=/scratch/kocevski/73340/cmap_HighResolution_471052801_471312001_4FGL_J2339.6+0242_daily_bin894.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.44
user 0.29
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.243       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.5205       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.547       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.3204       1.0000         .10000E-03   10000.    
     8 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .44724E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0576       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4550       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8008       1.0000         .10000E-03   10000.    
    13 'norm      '    4.5394       1.0000         .10000E-03   10000.    
    14 'norm      '    3.6040       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.514       1.0000         .10000E-03   10000.    
    17 'norm      '    23.750       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    219.02       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.4920       1.0000         .10000E-03   10000.    
    21 'Prefactor '    38.009       1.0000         .10000E-03   10000.    
    22 'norm      '    .31740E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .10349E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.650       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .75506       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1028       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=   6505.680     FROM MIGRAD    STATUS=CONVERGED    755 CALLS     3941 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.243        15.756       -.48869E-06    .67851E-04
   2  Prefactor     8.5212        33.544       -.15974E-05    .12082E-04
   3  Prefactor     18.549        18.784       -.89747E-06    .54813E-04
   4  Prefactor     .10000E-03    3.0363       -.55640E-07** at limit **
   5  norm          .10000E-03    2.2797        .11452E-06** at limit **
   6  norm          .10000E-03    2.5337        .36479E-08** at limit **
   7  Prefactor     8.3215        15.902       -.17775E-05    .60112E-04
   8  norm          .10000E-03    23.320       -.30106E-05** at limit **
   9  Prefactor     .10003E-03    190.75        .22055E-04** at limit **
  10  Prefactor     4.0579        8.8630       -.15219E-05    .64995E-04
  11  Prefactor     3.4562        19.375       -.41831E-05    .44244E-04
  12  Prefactor     5.8010        6.2574       -.49066E-06    .61147E-04
  13  norm          4.5391        1.3849        .18583E-06    .12979E-02
  14  norm          3.6040        3.7644       -.38732E-06   -.20795E-03
  15  Prefactor     .10000E-03    8.6963       -.42124E-06** at limit **
  16  Prefactor     24.520        67.320        .54969E-05   -.41895E-05
  17  norm          23.751        12.078       -.79808E-07   -.73906E-04
  18  Prefactor     .10000E-03    2.9066       -.17919E-06** at limit **
  19  Prefactor     219.02        172.37        .61184E-05    .38356E-05
  20  Prefactor     1.4958        17.959       -.16858E-04    .67762E-04
  21  Prefactor     38.010        36.324       -.63050E-06   -.26319E-04
  22  norm          .10000E-03    163.50       -.47345E-04** at limit **
  23  norm          .10002E-03    32.099        .10362E-04** at limit **
  24  Prefactor     .10001E-03    78.143       -.11093E-04** at limit **
  25  Prefactor     .10000E-03    1.8155        .94944E-06** at limit **
  26  Prefactor     .10000E-03    12.137        .12520E-06** at limit **
  27  Prefactor     17.651        18.586       -.45651E-06    .22746E-04
  28  Prefactor     .10000E-03    11.439       -.41955E-06** at limit **
  29  Normalizat    .75505        .21870        .36012E-05   -.14425E-04
  30  Prefactor     1.1028        .14526        .11153E-05   -.88735E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.2433
  Prefactor  = 8.52122
  Prefactor  = 18.5494
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.3215
  norm       = 0.0001
  Prefactor  = 0.000100032
  Prefactor  = 4.05791
  Prefactor  = 3.45619
  Prefactor  = 5.801
  norm       = 4.53913
  norm       = 3.60404
  Prefactor  = 0.0001
  Prefactor  = 24.5203
  norm       = 23.7507
  Prefactor  = 0.0001
  Prefactor  = 219.024
  Prefactor  = 1.49577
  Prefactor  = 38.0105
  norm       = 0.000100002
  norm       = 0.000100015
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.6508
  Prefactor  = 0.0001
  Normalizat = 0.755052
  Prefactor  = 1.10277
 **********
 **   18 **HESSE 
 **********

 FCN=   6505.680     FROM HESSE     STATUS=OK           594 CALLS     4535 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.243        15.756        .83085E-04   -1.4743    
   2  Prefactor     8.5212        33.518        .13733E-03   -1.5124    
   3  Prefactor     18.549        18.750        .93001E-04   -1.4846    
   4  Prefactor     .10000E-03    3.0440        .13724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.3206        .23662E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.5495        .12531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.3215        15.906        .13898E-03   -1.5131    
   8  norm          .10000E-03    24.064        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10003E-03    194.35        .42423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.0579        8.8450        .20017E-03   -1.5305    
  11  Prefactor     3.4562        19.331        .21758E-03   -1.5336    
  12  Prefactor     5.8010        6.2510        .16675E-03   -1.5226    
  13  norm          4.5391        1.3846        .48764E-04   -1.5282    
  14  norm          3.6040        3.7645        .15422E-03   -1.5328    
  15  Prefactor     .10000E-03    8.7272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.520        67.354        .80906E-04   -1.4717    
  17  norm          23.751        12.057        .82194E-04   -1.4733    
  18  Prefactor     .10000E-03    2.9147        .13421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     219.02        172.31        .13665E-03   -1.2737    
  20  Prefactor     1.4958        18.610        .35092E-03   -1.5463    
  21  Prefactor     38.010        36.294        .65010E-04   -1.4474    
  22  norm          .10000E-03    11.012        .97117E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10002E-03    33.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    79.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.8377        .10629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    12.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     17.651        18.584        .95335E-04   -1.4867    
  28  Prefactor     .10000E-03    11.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .75505        .24679        .34625E-03   -1.0176    
  30  Prefactor     1.1028        .16521        .20442E-03   -.89378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08291e-09
Minuit parameter uncertainties:
  1  15.7588
  2  33.5926
  3  18.756
  4  7.69942e-06
  5  1.85951e-05
  6  8.42092e-06
  7  15.9138
  8  0.000212379
  9  0.0050248
  10  8.84789
  11  16.3556
  12  6.25168
  13  1.38462
  14  3.76476
  15  3.23579e-05
  16  67.5635
  17  12.0583
  18  1.11206e-05
  19  172.714
  20  10.5558
  21  36.315
  22  0.000290224
  23  0.00142033
  24  0.00185209
  25  3.37053e-05
  26  3.83094e-05
  27  18.5903
  28  7.33989e-05
  29  0.247152
  30  0.165283
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  3.831e-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:  1.103e+00  1.653e-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:  7.551e-01  2.472e-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: 6.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/73340/likelihoodResults_471052801_471312001_4FGL_J2339.6+0242_daily_bin894.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) = 6505.68017843
delta logL = -0.000391714476791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6505.67978673
delta logL = -1.2409145711e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5365       1.0000          .0000       10.000    
     3 'Normalizat'    .75508       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1028       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=   6505.680     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      244 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10117E-03    187.29        .18142E-02** at limit **
   2  Index         2.4701        5.3903        .50000        .71411E-05
   3  Normalizat    .75505        .20195E-01    .34625E-03   -.98502E-06
   4  Prefactor     1.1028        .14261E-01    .20442E-03   -.26139E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101168
  Index      = 2.47014
  Normalizat = 0.755052
  Prefactor  = 1.10277
 **********
 **   18 **HESSE 
 **********

 FCN=   6505.680     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10117E-03    759.61        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4701        5.8271        .50000       -.53051    
   3  Normalizat    .75505        .43520E-01    .13850E-04   -1.0176    
   4  Prefactor     1.1028        .30734E-01    .81769E-05   -.89378    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.32889e-08
Minuit parameter uncertainties:
  1  0.0603487
  2  1434.66
  3  0.0435222
  4  0.030734
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73340': 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) = 6505.67978661
delta logL = 1.00721990748e-07

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.012e-04  6.035e-02  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.470e+00  1.435e+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:  1.103e+00  3.073e-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:  7.551e-01  4.352e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/73340/cmap_HighResolution_471052801_471312001_4FGL_J2339.6+0242_daily_bin894.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.28e-03', job_status='DONE', photon_flux_upper_limit='6.76e-08', time_completed='2021-09-30 02:50:58.910977', job_id='73340', GAL2='1.10', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1632995458.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='894' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:50:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 73340: <4FGL_J2339.6+0242_daily_bin894> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin894 354.904 2.7102 471052801 471312001 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 :                                   593.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   613 sec.
    Turnaround time :                            616 sec.

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

