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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin731
RA = 354.904, Dec = 2.7102
tmin = 428803201, tmax = 429062401
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='73094', job_status='RUN', time_executed='2021-09-30 02:43:04.935749', time_epoch_executed='1632994984.94' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73094

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73094/ft1_4FGL_J2339.6+0242_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73094/ft2_4FGL_J2339.6+0242_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73094/ft1_4FGL_J2339.6+0242_daily_bin731.fits outfile=/scratch/kocevski/73094/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin731.fits ra=354.904 dec=2.7102 rad=12.0 tmin=428803201.0 tmax=429062401.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 6.52
user 6.23
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73094/ft1_filtered_4FGL_J2339.6+0242_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/73094/ft2_4FGL_J2339.6+0242_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/73094/ltcube_428803201_429062401_4FGL_J2339.6+0242_daily_bin731.fits outfile=/scratch/kocevski/73094/expmap_428803201_429062401_4FGL_J2339.6+0242_daily_bin731.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/73094/ltcube_428803201_429062401_4FGL_J2339.6+0242_daily_bin731.fits
.....................!
real 190.49
user 185.01
sys 4.63

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/73094/ft1_filtered_4FGL_J2339.6+0242_daily_bin731.fits scfile=/scratch/kocevski/73094/ft2_4FGL_J2339.6+0242_daily_bin731.fits outfile=/scratch/kocevski/73094/cmap_428803201_429062401_4FGL_J2339.6+0242_daily_bin731.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.57
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73094/ft1_filtered_4FGL_J2339.6+0242_daily_bin731.fits scfile=/scratch/kocevski/73094/ft2_4FGL_J2339.6+0242_daily_bin731.fits outfile=/scratch/kocevski/73094/cmap_HighResolution_428803201_429062401_4FGL_J2339.6+0242_daily_bin731.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.030       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.406       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1599       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.4504       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 '    11.975       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .43958       1.0000         .10000E-03   10000.    
    13 'norm      '    .10224E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.4246       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .62916E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    79.375       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    425.75       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.090       1.0000         .10000E-03   10000.    
    22 'norm      '    12.950       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    34.811       1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.863       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .29908E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0198       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .65054       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=   2947.051     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3887 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.029        16.971        .29334E-07    .60007E-04
   2  Prefactor     14.430        50.565        .13232E-05    .40623E-04
   3  Prefactor     .10000E-03    10.786        .75065E-06** at limit **
   4  Prefactor     1.1600        17.299       -.26157E-05    .46965E-04
   5  norm          .10000E-03    1.6537        .79963E-06** at limit **
   6  norm          4.4513        4.6124       -.59455E-07   -.76314E-04
   7  Prefactor     .10000E-03    9.5995        .35756E-06** at limit **
   8  norm          .10000E-03    5.8723        .77836E-07** at limit **
   9  Prefactor     12.116        78.132        .78846E-06   -.50511E-04
  10  Prefactor     .10000E-03    9.5890       -.31690E-06** at limit **
  11  Prefactor     .10000E-03    8.5358       -.37735E-06** at limit **
  12  Prefactor     .46227        15.170        .71489E-05    .37461E-03
  13  norm          .10000E-03    .72267        .13204E-06** at limit **
  14  norm          6.4207        6.1654       -.43009E-06   -.10802E-03
  15  Prefactor     .10027E-03    27.687        .10400E-04** at limit **
  16  Prefactor     79.436        83.837       -.10442E-05   -.69526E-04
  17  norm          .10000E-03    6.8186       -.22205E-06** at limit **
  18  Prefactor     .10000E-03    10.005       -.31190E-07** at limit **
  19  Prefactor     425.79        314.77       -.39041E-05   -.86364E-04
  20  Prefactor     .10000E-03    7.3071        .23962E-07** at limit **
  21  Prefactor     28.101        38.129        .25775E-05   -.59598E-05
  22  norm          12.962        42.052        .10772E-07   -.33960E-05
  23  norm          .10000E-03    9.8819       -.25332E-08** at limit **
  24  Prefactor     .10000E-03    22.672        .22580E-06** at limit **
  25  Prefactor     .10000E-03    2.2478        .21367E-06** at limit **
  26  Prefactor     34.797        42.241       -.58335E-07   -.81077E-05
  27  Prefactor     14.868        25.646       -.24588E-06   -.15401E-04
  28  Prefactor     .10000E-03    55.618        .17908E-04** at limit **
  29  Normalizat    1.0197        .25636       -.98869E-06   -.26918E-03
  30  Prefactor     .65054        .17102        .19326E-06   -.15946E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.0287
  Prefactor  = 14.4302
  Prefactor  = 0.0001
  Prefactor  = 1.16005
  norm       = 0.0001
  norm       = 4.45134
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.1158
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.462275
  norm       = 0.0001
  norm       = 6.42072
  Prefactor  = 0.000100271
  Prefactor  = 79.4357
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 425.786
  Prefactor  = 0.0001
  Prefactor  = 28.1011
  norm       = 12.9618
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.7969
  Prefactor  = 14.8676
  Prefactor  = 0.000100004
  Normalizat = 1.01965
  Prefactor  = 0.650536
 **********
 **   18 **HESSE 
 **********

 FCN=   2947.051     FROM HESSE     STATUS=OK           588 CALLS     4475 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.029        16.979        .85338E-04   -1.4769    
   2  Prefactor     14.430        50.297        .10553E-03   -1.4948    
   3  Prefactor     .10000E-03    10.825        .17417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1600        16.905        .40746E-03   -1.5493    
   5  norm          .10000E-03    1.6996        .68434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.4513        4.6096        .11526E-03   -1.5286    
   7  Prefactor     .10000E-03    9.6384        .16427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.8758        .12849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.116        77.133        .11576E-03   -1.5012    
  10  Prefactor     .10000E-03    9.5920        .16418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.5337        .15487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .46227        30.819        .33650E-02   -1.5572    
  13  norm          .10000E-03    1.1176        .87548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.4207        6.1671        .12582E-03   -1.5201    
  15  Prefactor     .10027E-03    97.334        .33031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     79.436        83.789        .22539E-03   -1.3923    
  17  norm          .10000E-03    6.8372        .13840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.089        .16758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     425.79        313.37        .99061E-04   -1.1551    
  20  Prefactor     .10000E-03    7.3211        .14324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.101        37.493        .75590E-04   -1.4647    
  22  norm          12.962        42.002        .11131E-03   -1.4988    
  23  norm          .10000E-03    9.8840        .16668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    22.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.2647        .79484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     34.797        42.269        .67921E-04   -1.4528    
  27  Prefactor     14.868        25.612        .10389E-03   -1.4937    
  28  Prefactor     .10000E-03    85.288        .40017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0197        .29107        .24449E-03   -.92375    
  30  Prefactor     .65054        .19534        .20964E-03   -1.0550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7144e-09
Minuit parameter uncertainties:
  1  16.9831
  2  50.4456
  3  6.65033e-06
  4  8.85952
  5  1.25771e-05
  6  4.60997
  7  6.32607e-06
  8  2.0958e-06
  9  61.2561
  10  9.0763e-06
  11  1.96298e-05
  12  7.5522
  13  1.54143e-05
  14  6.16775
  15  0.010281
  16  83.9136
  17  3.3076e-05
  18  4.18159e-05
  19  314.643
  20  3.98552e-05
  21  37.5242
  22  42.0984
  23  1.85984e-05
  24  1.24603e-05
  25  1.565e-05
  26  42.3053
  27  25.6309
  28  0.00116277
  29  0.291529
  30  0.19554
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.480e+01  4.231e+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:  6.505e-01  1.955e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.020e+00  2.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.15
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.21e-08 +/- 5.12e-08
Energy Flux (Fixed Index): 1.16e-05 +/- 1.41e-05

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

Saving results to:
/scratch/kocevski/73094/likelihoodResults_428803201_429062401_4FGL_J2339.6+0242_daily_bin731.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) = 2947.04803504
delta logL = 0.00284091099456

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2947.04730574
delta logL = 0.00357020903539

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.326       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4491       1.0000          .0000       10.000    
     3 'Normalizat'    1.0243       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64858       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=   2947.047     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      258 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.328        47.493        .66494E-04   -.77263E-04
   2  Index         2.4492        1.1875        .87577E-02   -.43442E-04
   3  Normalizat    1.0240        .28136        .24405E-03    .76351E-04
   4  Prefactor     .64874        .19414        .20990E-03    .10185E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.3277
  Index      = 2.44925
  Normalizat = 1.02402
  Prefactor  = 0.648742
 **********
 **   18 **HESSE 
 **********

 FCN=   2947.047     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.328        46.716        .13299E-04   -1.4502    
   2  Index         2.4492        1.1672        .35031E-03   -.53536    
   3  Normalizat    1.0240        .28136        .97619E-05   -.92230    
   4  Prefactor     .64874        .19421        .83961E-05   -1.0557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86784e-10
Minuit parameter uncertainties:
  1  46.7627
  2  1.18204
  3  0.281774
  4  0.194411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73094': 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) = 2947.04730536
delta logL = 0.00357058663985

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.633e+01  4.676e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.449e+00  1.182e+00  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:  6.487e-01  1.944e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.024e+00  2.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.16
Ra Dec: 354.904 2.710
Photon Index (Free Index): 2.45 +/- 1.18
Photon Flux (Free Index): 3.83e-08 +/- 6.57e-08
Energy Flux (Free Index): 1.18e-05 +/- 1.46e-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/73094/cmap_HighResolution_428803201_429062401_4FGL_J2339.6+0242_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-02', comment='SUCCESS', photon_flux='4.21e-08', energy_flux2='1.18e-05', photon_flux_error='5.12e-08', dlogl='3.57e-03', energy_flux='1.16e-05', photon_flux2='3.83e-08', job_status='DONE', time_completed='2021-09-30 02:55:59.373436', photon_index_error2='1.18', photon_index2='2.45', ts='1.15', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='1.73e-07', energy_flux_error2='1.46e-05', EG='1.02', time_epoch_completed='1632995759.37', return_code='0', job_id='73094', GAL2='0.65', EG2='1.02', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='6.57e-08', ts2='1.16', photon_index='2.55' WHERE bin_id='731' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:55:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 73094: <4FGL_J2339.6+0242_daily_bin731> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin731 354.904 2.7102 428803201 429062401 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 :                                   551.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             237.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            937 sec.

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

