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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin703
RA = 354.904, Dec = 2.7102
tmin = 421545601, tmax = 421804801
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='73053', job_status='RUN', time_executed='2021-09-30 02:42:24.772357', time_epoch_executed='1632994944.77' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='703'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73053

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73053/ft1_4FGL_J2339.6+0242_daily_bin703.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73053/ft2_4FGL_J2339.6+0242_daily_bin703.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73053/ft1_4FGL_J2339.6+0242_daily_bin703.fits outfile=/scratch/kocevski/73053/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin703.fits ra=354.904 dec=2.7102 rad=12.0 tmin=421545601.0 tmax=421804801.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.60
user 3.37
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73053/ft1_filtered_4FGL_J2339.6+0242_daily_bin703.fits" evtable="EVENTS" scfile=/scratch/kocevski/73053/ft2_4FGL_J2339.6+0242_daily_bin703.fits sctable="SC_DATA" outfile=/scratch/kocevski/73053/ltcube_421545601_421804801_4FGL_J2339.6+0242_daily_bin703.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/73053/ft2_4FGL_J2339.6+0242_daily_bin703.fits
.....................!
real 11.75
user 11.42
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73053/ft1_filtered_4FGL_J2339.6+0242_daily_bin703.fits evtable="EVENTS" scfile=/scratch/kocevski/73053/ft2_4FGL_J2339.6+0242_daily_bin703.fits sctable="SC_DATA" expcube=/scratch/kocevski/73053/ltcube_421545601_421804801_4FGL_J2339.6+0242_daily_bin703.fits outfile=/scratch/kocevski/73053/expmap_421545601_421804801_4FGL_J2339.6+0242_daily_bin703.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/73053/ltcube_421545601_421804801_4FGL_J2339.6+0242_daily_bin703.fits
.....................!
real 189.94
user 185.41
sys 4.03

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/73053/ft1_filtered_4FGL_J2339.6+0242_daily_bin703.fits scfile=/scratch/kocevski/73053/ft2_4FGL_J2339.6+0242_daily_bin703.fits outfile=/scratch/kocevski/73053/cmap_421545601_421804801_4FGL_J2339.6+0242_daily_bin703.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/73053/ft1_filtered_4FGL_J2339.6+0242_daily_bin703.fits scfile=/scratch/kocevski/73053/ft2_4FGL_J2339.6+0242_daily_bin703.fits outfile=/scratch/kocevski/73053/cmap_HighResolution_421545601_421804801_4FGL_J2339.6+0242_daily_bin703.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/73053/ft1_filtered_4FGL_J2339.6+0242_daily_bin703.fits evtable="EVENTS" scfile=/scratch/kocevski/73053/ft2_4FGL_J2339.6+0242_daily_bin703.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/73053/Model_4FGL_J2339.6+0242_daily_bin703.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/73053/ft1_filtered_4FGL_J2339.6+0242_daily_bin703.fits.....................!
real 61.02
user 59.74
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.866       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.919       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.7813       1.0000         .10000E-03   10000.    
     5 'norm      '    3.3180       1.0000         .10000E-03   10000.    
     6 'norm      '    3.9678       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   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 '    18.576       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.134       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.861       1.0000         .10000E-03   10000.    
    13 'norm      '    1.3214       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7379       1.0000         .10000E-03   10000.    
    16 'Prefactor '    80.886       1.0000         .10000E-03   10000.    
    17 'norm      '    .10510E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.7608       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.2372       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    15.475       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .18098E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    35.062       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.8249       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .76593       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0291       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=   6030.883     FROM MIGRAD    STATUS=CONVERGED    789 CALLS     4020 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.868        15.301       -.13411E-06    .82330E-05
   2  Prefactor     12.907        41.087        .24420E-05   -.26184E-04
   3  Prefactor     .10000E-03    4.0467        .31679E-07** at limit **
   4  Prefactor     6.7821        6.5286        .10105E-05   -.16612E-03
   5  norm          3.3183        2.3254       -.22590E-07    .20926E-03
   6  norm          3.9682        3.5760       -.39939E-07    .14008E-03
   7  Prefactor     .10000E-03    4.4193        .35634E-07** at limit **
   8  norm          .10000E-03    4.1310        .49426E-08** at limit **
   9  Prefactor     .10000E-03    14.843       -.75037E-07** at limit **
  10  Prefactor     18.574        13.420       -.33659E-07   -.14079E-03
  11  Prefactor     15.136        15.888        .21252E-06   -.63024E-05
  12  Prefactor     18.862        12.944       -.16453E-06    .74235E-04
  13  norm          1.3217        .96717       -.36347E-07    .35550E-03
  14  norm          .10000E-03    2.2602        .50564E-07** at limit **
  15  Prefactor     2.7134        12.846       -.44719E-05   -.25287E-03
  16  Prefactor     80.898        54.792       -.78177E-06    .19526E-04
  17  norm          .10000E-03    52.809       -.19410E-04** at limit **
  18  Prefactor     .10000E-03    3.6869       -.21462E-06** at limit **
  19  Prefactor     .10000E-03    81.216       -.51342E-05** at limit **
  20  Prefactor     4.7513        14.453       -.38238E-05   -.16928E-03
  21  Prefactor     7.2334        15.597       -.43982E-07   -.12376E-03
  22  norm          .10000E-03    8.8242       -.23559E-07** at limit **
  23  norm          15.491        22.512        .17119E-05   -.17010E-03
  24  Prefactor     .10001E-03    82.444       -.61951E-05** at limit **
  25  Prefactor     .10400E-03    3.3741       -.18601E-05** at limit **
  26  Prefactor     35.062        35.531        .34763E-06   -.40813E-04
  27  Prefactor     6.8253        10.936       -.26188E-06    .39091E-04
  28  Prefactor     .10001E-03    39.421       -.45034E-05** at limit **
  29  Normalizat    .76569        .19744       -.17786E-05   -.15172E-03
  30  Prefactor     1.0292        .13362       -.18418E-06   -.66472E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.8682
  Prefactor  = 12.907
  Prefactor  = 0.0001
  Prefactor  = 6.78208
  norm       = 3.31832
  norm       = 3.96816
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.574
  Prefactor  = 15.1363
  Prefactor  = 18.8619
  norm       = 1.32168
  norm       = 0.0001
  Prefactor  = 2.71344
  Prefactor  = 80.8977
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 4.75127
  Prefactor  = 7.23344
  norm       = 0.0001
  norm       = 15.4908
  Prefactor  = 0.000100005
  Prefactor  = 0.000104001
  Prefactor  = 35.0616
  Prefactor  = 6.82533
  Prefactor  = 0.000100009
  Normalizat = 0.765695
  Prefactor  = 1.02918
 **********
 **   18 **HESSE 
 **********

 FCN=   6030.883     FROM HESSE     STATUS=OK           600 CALLS     4620 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.868        15.299        .89861E-04   -1.4816    
   2  Prefactor     12.907        41.084        .11144E-03   -1.4989    
   3  Prefactor     .10000E-03    4.0495        .15256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.7821        6.5547        .15408E-03   -1.5187    
   5  norm          3.3183        2.3260        .94985E-04   -1.5344    
   6  norm          3.9682        3.5700        .13542E-03   -1.5310    
   7  Prefactor     .10000E-03    4.4273        .15943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.1377        .15414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.574        13.409        .92928E-04   -1.4846    
  11  Prefactor     15.136        15.891        .10295E-03   -1.4930    
  12  Prefactor     18.862        12.930        .92223E-04   -1.4839    
  13  norm          1.3217        .94710        .61663E-04   -1.5478    
  14  norm          .10000E-03    2.2626        .11391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.7134        11.615        .24607E-03   -1.5379    
  16  Prefactor     80.898        54.810        .44657E-04   -1.3907    
  17  norm          .10000E-03    51.598        .36633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.7077        .14522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    81.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.7513        14.879        .18440E-03   -1.5272    
  21  Prefactor     7.2334        15.511        .14910E-03   -1.5170    
  22  norm          .10000E-03    8.8440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          15.491        22.299        .10181E-03   -1.4921    
  24  Prefactor     .10001E-03    82.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10400E-03    6.5083        .37039E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     35.062        35.531        .67679E-04   -1.4523    
  27  Prefactor     6.8253        10.924        .15358E-03   -1.5185    
  28  Prefactor     .10001E-03    39.832        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .76569        .22234        .31103E-03   -1.0135    
  30  Prefactor     1.0292        .15219        .19471E-03   -.91763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17983e-09
Minuit parameter uncertainties:
  1  15.3024
  2  41.1738
  3  9.06115e-06
  4  6.55538
  5  2.32606
  6  3.57016
  7  1.2659e-05
  8  1.43098e-05
  9  5.18129e-05
  10  13.4107
  11  15.8958
  12  12.9321
  13  0.947107
  14  1.56273e-05
  15  11.2312
  16  54.8446
  17  0.000266997
  18  1.41454e-05
  19  0.000851231
  20  14.8903
  21  15.5197
  22  1.00035e-05
  23  22.3106
  24  0.00131395
  25  0.0102074
  26  35.5523
  27  10.9272
  28  0.00117615
  29  0.222599
  30  0.152249
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.506e+01  3.555e+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.029e+00  1.522e-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.657e-01  2.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.26
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.24e-08 +/- 4.30e-08
Energy Flux (Fixed Index): 1.17e-05 +/- 1.19e-05

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

Saving results to:
/scratch/kocevski/73053/likelihoodResults_421545601_421804801_4FGL_J2339.6+0242_daily_bin703.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) = 6030.87362492
delta logL = 0.00894113425784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6030.86597175
delta logL = 0.0165943077063

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.890       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3950       1.0000          .0000       10.000    
     3 'Normalizat'    .77024       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0264       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=   6030.866     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      266 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.852        51.445        .62686E-04    .99130E-04
   2  Index         2.3952        .83680        .92585E-02    .24502E-03
   3  Normalizat    .77045        .21001        .31015E-03    .81558E-04
   4  Prefactor     1.0262        .15051        .19494E-03    .65375E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.8516
  Index      = 2.39519
  Normalizat = 0.770447
  Prefactor  = 1.02625
 **********
 **   18 **HESSE 
 **********

 FCN=   6030.866     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.852        49.241        .12537E-04   -1.4429    
   2  Index         2.3952        .80109        .18517E-02   -.54798    
   3  Normalizat    .77045        .21001        .12406E-04   -1.0117    
   4  Prefactor     1.0262        .15048        .38988E-04   -.91860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.00799e-11
Minuit parameter uncertainties:
  1  49.2896
  2  0.805866
  3  0.210229
  4  0.150538
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73053': 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) = 6030.86597097
delta logL = 0.0165950837463

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  4.085e+01  4.929e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.395e+00  8.059e-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.026e+00  1.505e-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.704e-01  2.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 354.904 2.710
Photon Index (Free Index): 2.40 +/- 0.81
Photon Flux (Free Index): 4.00e-08 +/- 4.31e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.59e-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/73053/cmap_HighResolution_421545601_421804801_4FGL_J2339.6+0242_daily_bin703.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', photon_flux='4.24e-08', energy_flux2='1.32e-05', photon_flux_error='4.30e-08', dlogl='1.66e-02', energy_flux='1.17e-05', photon_flux2='4.00e-08', job_status='DONE', time_completed='2021-09-30 02:55:42.326706', photon_index_error2='0.81', photon_index2='2.40', ts='1.26', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='1.59e-05', EG='0.77', time_epoch_completed='1632995742.33', return_code='0', job_id='73053', GAL2='1.03', EG2='0.77', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='4.31e-08', ts2='1.29', photon_index='2.55' WHERE bin_id='703' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:55:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 73053: <4FGL_J2339.6+0242_daily_bin703> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin703 354.904 2.7102 421545601 421804801 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 :                                   785.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            923 sec.

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

