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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin995
RA = 354.904, Dec = 2.7102
tmin = 497232001, tmax = 497491201
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='74570', job_status='RUN', time_executed='2021-09-30 02:47:20.362425', time_epoch_executed='1632995240.36' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='995'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74570

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74570/ft1_4FGL_J2339.6+0242_daily_bin995.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74570/ft2_4FGL_J2339.6+0242_daily_bin995.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74570/ft1_4FGL_J2339.6+0242_daily_bin995.fits outfile=/scratch/kocevski/74570/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin995.fits ra=354.904 dec=2.7102 rad=12.0 tmin=497232001.0 tmax=497491201.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.78
user 6.51
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/74570/ft1_filtered_4FGL_J2339.6+0242_daily_bin995.fits" evtable="EVENTS" scfile=/scratch/kocevski/74570/ft2_4FGL_J2339.6+0242_daily_bin995.fits sctable="SC_DATA" outfile=/scratch/kocevski/74570/ltcube_497232001_497491201_4FGL_J2339.6+0242_daily_bin995.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/74570/ft2_4FGL_J2339.6+0242_daily_bin995.fits
.....................!
real 12.93
user 12.00
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74570/ft1_filtered_4FGL_J2339.6+0242_daily_bin995.fits evtable="EVENTS" scfile=/scratch/kocevski/74570/ft2_4FGL_J2339.6+0242_daily_bin995.fits sctable="SC_DATA" expcube=/scratch/kocevski/74570/ltcube_497232001_497491201_4FGL_J2339.6+0242_daily_bin995.fits outfile=/scratch/kocevski/74570/expmap_497232001_497491201_4FGL_J2339.6+0242_daily_bin995.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/74570/ltcube_497232001_497491201_4FGL_J2339.6+0242_daily_bin995.fits
.....................!
real 193.40
user 187.84
sys 5.22

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/74570/ft1_filtered_4FGL_J2339.6+0242_daily_bin995.fits scfile=/scratch/kocevski/74570/ft2_4FGL_J2339.6+0242_daily_bin995.fits outfile=/scratch/kocevski/74570/cmap_497232001_497491201_4FGL_J2339.6+0242_daily_bin995.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/74570/ft1_filtered_4FGL_J2339.6+0242_daily_bin995.fits scfile=/scratch/kocevski/74570/ft2_4FGL_J2339.6+0242_daily_bin995.fits outfile=/scratch/kocevski/74570/cmap_HighResolution_497232001_497491201_4FGL_J2339.6+0242_daily_bin995.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7350       1.0000         .10000E-03   10000.    
     5 'norm      '    .66175       1.0000         .10000E-03   10000.    
     6 'norm      '    14.069       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    13.589       1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.330       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.525       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.538       1.0000         .10000E-03   10000.    
    13 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.2143       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1157       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    14.854       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6966       1.0000         .10000E-03   10000.    
    19 'Prefactor '    177.80       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .24868E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10407E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.6070       1.0000         .10000E-03   10000.    
    26 'Prefactor '    32.752       1.0000         .10000E-03   10000.    
    27 'Prefactor '    16.037       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .31034E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .76739       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .80219       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=   3938.060     FROM MIGRAD    STATUS=CONVERGED    747 CALLS     3888 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.242       -.18103E-05** at limit **
   2  Prefactor     .10000E-03    42.837       -.12764E-05** at limit **
   3  Prefactor     .10000E-03    44.304       -.15560E-05** at limit **
   4  Prefactor     9.7345        8.4210        .15281E-06    .81547E-04
   5  norm          .66517        3.5839        .77019E-06    .67134E-04
   6  norm          14.069        6.7356        .52940E-08    .35924E-04
   7  Prefactor     .10000E-03    7.2501       -.66402E-08** at limit **
   8  norm          13.591        17.004        .15933E-06    .49679E-04
   9  Prefactor     38.337        43.654       -.99687E-06    .43983E-06
  10  Prefactor     .10000E-03    7.8184        .11677E-06** at limit **
  11  Prefactor     19.523        21.391        .12236E-06    .25938E-04
  12  Prefactor     10.537        9.9198       -.15251E-06    .64032E-04
  13  norm          .10000E-03    .47072       -.55608E-06** at limit **
  14  norm          5.2135        6.4296        .97259E-06    .10422E-03
  15  Prefactor     3.1321        14.920        .63376E-05   -.31258E-04
  16  Prefactor     .10000E-03    13.341        .20366E-05** at limit **
  17  norm          14.858        16.289       -.37962E-05    .33268E-04
  18  Prefactor     2.7065        13.380        .96343E-05   -.87865E-04
  19  Prefactor     177.68        173.74        .13017E-04    .54924E-04
  20  Prefactor     .10000E-03    35.001        .65193E-06** at limit **
  21  Prefactor     .10000E-03    65.885        .49682E-06** at limit **
  22  norm          .10000E-03    11.634       -.66894E-06** at limit **
  23  norm          .10000E-03    39.876       -.27736E-06** at limit **
  24  Prefactor     .10000E-03    29.582        .81604E-06** at limit **
  25  Prefactor     3.5977        5.4919       -.80988E-07    .12278E-03
  26  Prefactor     32.803        44.243       -.74977E-05   -.36265E-04
  27  Prefactor     16.043        25.607        .59623E-06    .22655E-04
  28  Prefactor     .10013E-03    11.904       -.10339E-05** at limit **
  29  Normalizat    .76763        .24500       -.17092E-05    .22122E-03
  30  Prefactor     .80194        .15251        .97339E-06    .25225E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.7345
  norm       = 0.665173
  norm       = 14.0693
  Prefactor  = 0.0001
  norm       = 13.5914
  Prefactor  = 38.3372
  Prefactor  = 0.0001
  Prefactor  = 19.5234
  Prefactor  = 10.5366
  norm       = 0.0001
  norm       = 5.21345
  Prefactor  = 3.13212
  Prefactor  = 0.0001
  norm       = 14.8577
  Prefactor  = 2.70646
  Prefactor  = 177.683
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.59769
  Prefactor  = 32.8029
  Prefactor  = 16.0429
  Prefactor  = 0.000100129
  Normalizat = 0.767633
  Prefactor  = 0.801936
 **********
 **   18 **HESSE 
 **********

 FCN=   3938.060     FROM HESSE     STATUS=OK           592 CALLS     4480 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    42.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    44.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.7345        8.4080        .12843E-03   -1.5084    
   5  norm          .66517        3.6553        .21182E-02   -1.5545    
   6  norm          14.069        6.7344        .10679E-03   -1.4958    
   7  Prefactor     .10000E-03    7.2671        .16500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          13.591        17.013        .10866E-03   -1.4970    
   9  Prefactor     38.337        43.646        .64738E-04   -1.4469    
  10  Prefactor     .10000E-03    7.8441        .17137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.523        21.397        .90643E-04   -1.4824    
  12  Prefactor     10.537        9.9186        .12343E-03   -1.5059    
  13  norm          .10000E-03    .63802        .82912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.2135        6.4083        .83393E-03   -1.5251    
  15  Prefactor     3.1321        14.749        .11485E-02   -1.5354    
  16  Prefactor     .10000E-03    13.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          14.858        16.447        .10392E-03   -1.4937    
  18  Prefactor     2.7065        13.620        .12404E-02   -1.5379    
  19  Prefactor     177.68        173.93        .15134E-03   -1.3034    
  20  Prefactor     .10000E-03    35.569        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    66.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    11.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    40.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    29.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.5977        5.4601        .16313E-03   -1.5329    
  26  Prefactor     32.803        44.261        .70017E-04   -1.4562    
  27  Prefactor     16.043        25.612        .10001E-03   -1.4907    
  28  Prefactor     .10013E-03    112.14        .41260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .76763        .28192        .28645E-03   -1.0128    
  30  Prefactor     .80194        .17877        .19615E-03   -.99657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41507e-09
Minuit parameter uncertainties:
  1  4.31641e-05
  2  5.02157e-05
  3  7.82047e-05
  4  8.40906
  5  3.11865
  6  6.73472
  7  6.43868e-06
  8  17.019
  9  43.6824
  10  8.23329e-06
  11  21.4054
  12  9.92017
  13  8.28144e-06
  14  6.4091
  15  13.5987
  16  3.58777e-05
  17  16.4519
  18  12.1469
  19  174.44
  20  3.68027e-05
  21  8.17605e-05
  22  1.86739e-05
  23  2.57582e-06
  24  3.61029e-06
  25  5.46085
  26  44.3049
  27  25.6291
  28  0.00762635
  29  0.282459
  30  0.178904
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.280e+01  4.430e+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:  8.019e-01  1.789e-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.676e-01  2.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/74570/likelihoodResults_497232001_497491201_4FGL_J2339.6+0242_daily_bin995.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) = 3938.05837421
delta logL = 0.00130593585254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3938.0569842
delta logL = 0.00269593825033

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.841       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4534       1.0000          .0000       10.000    
     3 'Normalizat'    .77101       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79987       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=   3938.057     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      244 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.831        64.583        .66941E-04    .93730E-04
   2  Index         2.4536        1.3130        .88712E-02    .42318E-04
   3  Normalizat    .77100        .25098        .28588E-03   -.47321E-03
   4  Prefactor     .79990        .17493        .19636E-03   -.86707E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.8311
  Index      = 2.45357
  Normalizat = 0.771002
  Prefactor  = 0.799902
 **********
 **   18 **HESSE 
 **********

 FCN=   3938.057     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.831        60.444        .13388E-04   -1.4510    
   2  Index         2.4536        1.2298        .35485E-03   -.53435    
   3  Normalizat    .77100        .25059        .57176E-04   -1.0115    
   4  Prefactor     .79990        .17461        .39273E-04   -.99732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.80013e-10
Minuit parameter uncertainties:
  1  60.5479
  2  1.24723
  3  0.250963
  4  0.174733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74570': 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) = 3938.05698415
delta logL = 0.00269599415833

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.583e+01  6.055e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.454e+00  1.247e+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:  7.999e-01  1.747e-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.710e-01  2.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.71
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/74570/cmap_HighResolution_497232001_497491201_4FGL_J2339.6+0242_daily_bin995.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', job_status='DONE', photon_flux_upper_limit='1.61e-07', time_completed='2021-09-30 03:00:21.212732', job_id='74570', GAL2='0.80', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1632996021.21', return_code2='0', ts='0.71', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='2.70e-03', ts2='0.71', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='995' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 03:00:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 74570: <4FGL_J2339.6+0242_daily_bin995> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin995> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:45:17 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:45:18 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:45:18 2021
Terminated at Thu Sep 30 03:00:21 2021
Results reported at Thu Sep 30 03:00:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin995 354.904 2.7102 497232001 497491201 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 :                                   629.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             266.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            904 sec.

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

