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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin754
RA = 354.904, Dec = 2.7102
tmin = 434764801, tmax = 435024001
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='73128', job_status='RUN', time_executed='2021-09-30 02:42:19.789773', time_epoch_executed='1632994939.79' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73128

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73128/ft1_4FGL_J2339.6+0242_daily_bin754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73128/ft2_4FGL_J2339.6+0242_daily_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73128/ft1_4FGL_J2339.6+0242_daily_bin754.fits outfile=/scratch/kocevski/73128/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin754.fits ra=354.904 dec=2.7102 rad=12.0 tmin=434764801.0 tmax=435024001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.74
user 5.45
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73128/ft1_filtered_4FGL_J2339.6+0242_daily_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/73128/ft2_4FGL_J2339.6+0242_daily_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/73128/ltcube_434764801_435024001_4FGL_J2339.6+0242_daily_bin754.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/73128/ft2_4FGL_J2339.6+0242_daily_bin754.fits
.....................!
real 12.07
user 11.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73128/ft1_filtered_4FGL_J2339.6+0242_daily_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/73128/ft2_4FGL_J2339.6+0242_daily_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/73128/ltcube_434764801_435024001_4FGL_J2339.6+0242_daily_bin754.fits outfile=/scratch/kocevski/73128/expmap_434764801_435024001_4FGL_J2339.6+0242_daily_bin754.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/73128/ltcube_434764801_435024001_4FGL_J2339.6+0242_daily_bin754.fits
.....................!
real 191.22
user 185.04
sys 5.87

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/73128/ft1_filtered_4FGL_J2339.6+0242_daily_bin754.fits scfile=/scratch/kocevski/73128/ft2_4FGL_J2339.6+0242_daily_bin754.fits outfile=/scratch/kocevski/73128/cmap_434764801_435024001_4FGL_J2339.6+0242_daily_bin754.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73128/ft1_filtered_4FGL_J2339.6+0242_daily_bin754.fits scfile=/scratch/kocevski/73128/ft2_4FGL_J2339.6+0242_daily_bin754.fits outfile=/scratch/kocevski/73128/cmap_HighResolution_434764801_435024001_4FGL_J2339.6+0242_daily_bin754.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9472       1.0000         .10000E-03   10000.    
     2 'Prefactor '    159.54       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.5449       1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.164       1.0000         .10000E-03   10000.    
     8 'norm      '    2.5570       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    22.284       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.395       1.0000         .10000E-03   10000.    
    16 'Prefactor '    96.045       1.0000         .10000E-03   10000.    
    17 'norm      '    21.226       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0610       1.0000         .10000E-03   10000.    
    19 'Prefactor '    139.28       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.779       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    56.537       1.0000         .10000E-03   10000.    
    24 'Prefactor '    246.25       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    37.719       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .30565       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1530       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=   2164.507     FROM MIGRAD    STATUS=CONVERGED    723 CALLS     3944 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9774        36.645       -.14056E-05    .21723E-04
   2  Prefactor     159.44        129.24        .23954E-06   -.14921E-04
   3  Prefactor     .10000E-03    10.210        .92444E-08** at limit **
   4  Prefactor     .10000E-03    4.6743       -.21639E-06** at limit **
   5  norm          .10000E-03    1.7201       -.39884E-09** at limit **
   6  norm          3.5446        6.8626       -.21216E-07   -.26597E-05
   7  Prefactor     40.164        29.124       -.24927E-06    .14523E-04
   8  norm          2.5536        30.120        .20666E-06   -.20981E-04
   9  Prefactor     .10000E-03    42.219       -.11958E-07** at limit **
  10  Prefactor     .10000E-03    33.421        .53812E-07** at limit **
  11  Prefactor     .10000E-03    11.726       -.57533E-07** at limit **
  12  Prefactor     .10000E-03    59.222       -.16889E-05** at limit **
  13  norm          .10000E-03    .78146        .22224E-06** at limit **
  14  norm          22.285        14.273        .83523E-07   -.38406E-04
  15  Prefactor     15.403        33.088       -.28795E-05    .19296E-04
  16  Prefactor     95.933        125.83       -.11157E-05   -.81840E-05
  17  norm          21.179        35.088        .79406E-05    .66852E-05
  18  Prefactor     2.0609        78.600       -.18747E-04   -.20112E-04
  19  Prefactor     139.29        382.78       -.14990E-05    .98421E-06
  20  Prefactor     19.944        46.093        .22207E-05    .19501E-04
  21  Prefactor     .10000E-03    69.189        .23917E-06** at limit **
  22  norm          .10000E-03    26.290        .53278E-06** at limit **
  23  norm          56.322        99.699       -.38784E-05    .32524E-04
  24  Prefactor     246.10        149.81       -.28341E-06   -.24230E-04
  25  Prefactor     .10000E-03    3.1235       -.18410E-06** at limit **
  26  Prefactor     .10000E-03    60.858       -.56040E-07** at limit **
  27  Prefactor     37.700        53.591       -.16989E-06    .13792E-05
  28  Prefactor     .10000E-03    20.879       -.17817E-06** at limit **
  29  Normalizat    .30610        .43951       -.46614E-06    .16969E-04
  30  Prefactor     1.1527        .28182        .19597E-05   -.75011E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.97738
  Prefactor  = 159.443
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.54465
  Prefactor  = 40.1642
  norm       = 2.55357
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 22.2851
  Prefactor  = 15.4029
  Prefactor  = 95.9331
  norm       = 21.1786
  Prefactor  = 2.06089
  Prefactor  = 139.291
  Prefactor  = 19.9444
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 56.3224
  Prefactor  = 246.103
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.6998
  Prefactor  = 0.0001
  Normalizat = 0.306097
  Prefactor  = 1.15274
 **********
 **   18 **HESSE 
 **********

 FCN=   2164.507     FROM HESSE     STATUS=OK           582 CALLS     4526 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9774        35.624        .14223E-03   -1.5143    
   2  Prefactor     159.44        128.60        .15962E-03   -1.3176    
   3  Prefactor     .10000E-03    10.217        .14521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6763        .98219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.7296        .59563E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.5446        6.8096        .16034E-03   -1.5331    
   7  Prefactor     40.164        28.825        .63248E-04   -1.4440    
   8  norm          2.5536        29.515        .25532E-03   -1.5388    
   9  Prefactor     .10000E-03    42.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    33.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.727        .15562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    60.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .78917        .40023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          22.285        14.200        .84851E-04   -1.4763    
  15  Prefactor     15.403        32.906        .10208E-03   -1.4923    
  16  Prefactor     95.933        125.41        .20507E-03   -1.3746    
  17  norm          21.179        35.286        .86938E-04   -1.4787    
  18  Prefactor     2.0609        78.630        .28784E-03   -1.5421    
  19  Prefactor     139.29        382.76        .34132E-04   -1.3342    
  20  Prefactor     19.944        45.685        .90058E-04   -1.4814    
  21  Prefactor     .10000E-03    69.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    26.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          56.322        99.514        .26676E-03   -1.4206    
  24  Prefactor     246.10        148.80        .12905E-03   -1.2557    
  25  Prefactor     .10000E-03    3.1241        .80250E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    60.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     37.700        53.001        .65259E-04   -1.4479    
  28  Prefactor     .10000E-03    20.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .30610        .38886        .49583E-03   -1.2248    
  30  Prefactor     1.1527        .26593        .19213E-03   -.87798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9585e-10
Minuit parameter uncertainties:
  1  33.7492
  2  128.829
  3  6.50019e-06
  4  1.21629e-05
  5  2.27601e-06
  6  6.81106
  7  28.8349
  8  17.3735
  9  7.44931e-05
  10  0.000102878
  11  1.64279e-06
  12  0.000293974
  13  8.30622e-06
  14  14.2018
  15  32.9451
  16  125.759
  17  35.3209
  18  25.4951
  19  389.909
  20  45.7652
  21  3.09611e-05
  22  1.39169e-05
  23  99.8095
  24  149.026
  25  9.45692e-06
  26  9.00262e-06
  27  53.067
  28  6.64878e-06
  29  0.392357
  30  0.266236
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  9.003e-06  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.153e+00  2.662e-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:  3.061e-01  3.924e-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: 2.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.66e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/73128/likelihoodResults_434764801_435024001_4FGL_J2339.6+0242_daily_bin754.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) = 2164.50705657
delta logL = -7.80841764936e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2164.50697852
delta logL = -3.36108314514e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4941       1.0000          .0000       10.000    
     3 'Normalizat'    .30610       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1527       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2164.507     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      238 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7931.0        .90712E-02** at limit **
   2  Index         2.5099        7.6376        .50000       -.24647E-05
   3  Normalizat    .30609        .11526        .11194        .23776E-04
   4  Prefactor     1.1527        .84477E-01    .35857E-01    .18344E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.50991
  Normalizat = 0.306094
  Prefactor  = 1.15274
 **********
 **   18 **HESSE 
 **********

 FCN=   2164.507     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    106.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5099        6.1385        .50000       -.52131    
   3  Normalizat    .30609        .34615        .49585E-03   -1.2248    
   4  Prefactor     1.1527        .25621        .19213E-03   -.87798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73694e-11
Minuit parameter uncertainties:
  1  0.000130575
  2  5.87919
  3  0.348604
  4  0.25649
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73128': 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) = 2164.50697851
delta logL = -2.25331859838e-08

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  1.306e-04  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.510e+00  5.879e+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:  1.153e+00  2.565e-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:  3.061e-01  3.486e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 354.904 2.710

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/73128/cmap_HighResolution_434764801_435024001_4FGL_J2339.6+0242_daily_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.66e-02', job_status='DONE', photon_flux_upper_limit='2.13e-07', time_completed='2021-09-30 02:50:31.994076', job_id='73128', GAL2='1.15', fit_tolerance='1e-08', EG2='0.31', EG='0.31', time_epoch_completed='1632995431.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='-2.25e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='754' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:50:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 73128: <4FGL_J2339.6+0242_daily_bin754> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin754 354.904 2.7102 434764801 435024001 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 :                                   484.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   605 sec.
    Turnaround time :                            606 sec.

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

