/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 151 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 = 7673
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2339.6+0242_daily_bin362
RA = 354.904, Dec = 2.7102
tmin = 333158401, tmax = 333417601
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='70221', job_status='RUN', time_executed='2021-09-30 02:33:36.007961', time_epoch_executed='1632994416.01' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70221

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70221/ft1_4FGL_J2339.6+0242_daily_bin362.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70221/ft2_4FGL_J2339.6+0242_daily_bin362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70221/ft1_4FGL_J2339.6+0242_daily_bin362.fits outfile=/scratch/kocevski/70221/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin362.fits ra=354.904 dec=2.7102 rad=12.0 tmin=333158401.0 tmax=333417601.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.13
user 5.82
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70221/ft1_filtered_4FGL_J2339.6+0242_daily_bin362.fits evtable="EVENTS" scfile=/scratch/kocevski/70221/ft2_4FGL_J2339.6+0242_daily_bin362.fits sctable="SC_DATA" expcube=/scratch/kocevski/70221/ltcube_333158401_333417601_4FGL_J2339.6+0242_daily_bin362.fits outfile=/scratch/kocevski/70221/expmap_333158401_333417601_4FGL_J2339.6+0242_daily_bin362.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/70221/ltcube_333158401_333417601_4FGL_J2339.6+0242_daily_bin362.fits
.....................!
real 191.53
user 186.48
sys 4.58

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/70221/ft1_filtered_4FGL_J2339.6+0242_daily_bin362.fits scfile=/scratch/kocevski/70221/ft2_4FGL_J2339.6+0242_daily_bin362.fits outfile=/scratch/kocevski/70221/cmap_333158401_333417601_4FGL_J2339.6+0242_daily_bin362.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70221/ft1_filtered_4FGL_J2339.6+0242_daily_bin362.fits scfile=/scratch/kocevski/70221/ft2_4FGL_J2339.6+0242_daily_bin362.fits outfile=/scratch/kocevski/70221/cmap_HighResolution_333158401_333417601_4FGL_J2339.6+0242_daily_bin362.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.62
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1063       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.766       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23550E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.880       1.0000         .10000E-03   10000.    
     5 'norm      '    4.5124       1.0000         .10000E-03   10000.    
     6 'norm      '    6.7735       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.631       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.1499       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.3302       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.535       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10516E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.7324       1.0000         .10000E-03   10000.    
    14 'norm      '    3.4485       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10316E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    49.984       1.0000         .10000E-03   10000.    
    17 'norm      '    .14198E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.3391       1.0000         .10000E-03   10000.    
    19 'Prefactor '    44.963       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.6771       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.885       1.0000         .10000E-03   10000.    
    22 'norm      '    .17840E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .29616       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.0339       1.0000         .10000E-03   10000.    
    26 'Prefactor '    119.48       1.0000         .10000E-03   10000.    
    27 'Prefactor '    55.758       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .12280E-02   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .43014       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0165       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6496.991     FROM MIGRAD    STATUS=CONVERGED    229 CALLS     2919 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0352        8.7271       -.25749E-05   -.13969E-02
   2  Prefactor     19.261        30.485        .12906E-05    .53413E-02
   3  Prefactor     .10000E-03    8.6671        .36888E-06** at limit **
   4  Prefactor     16.828        8.7366        .35776E-06    .14164E-03
   5  norm          4.5124        2.9512        .24828E-06   -.18804E-04
   6  norm          6.7793        5.2608       -.57112E-07   -.18866E-04
   7  Prefactor     31.546        16.506        .19272E-05   -.90649E-04
   8  norm          .10000E-03    2.3940        .10248E-06** at limit **
   9  Prefactor     9.9096        31.711       -.90517E-05   -.14962E-02
  10  Prefactor     9.2248        10.248        .18118E-05    .10610E-03
  11  Prefactor     22.039        19.261        .67398E-06    .14760E-02
  12  Prefactor     .10000E-03    5.4149        .10650E-05** at limit **
  13  norm          1.7279        .85763       -.21017E-06   -.31669E-04
  14  norm          3.4413        4.5942        .75367E-06    .40176E-04
  15  Prefactor     .10000E-03    4.9935        .48891E-07** at limit **
  16  Prefactor     51.247        32.703       -.20457E-05   -.34389E-02
  17  norm          .10000E-03    15.397        .11824E-05** at limit **
  18  Prefactor     5.4925        8.1402       -.59499E-06   -.11991E-03
  19  Prefactor     51.724        102.96       -.28100E-05   -.40668E-03
  20  Prefactor     4.7638        6.3839        .97702E-05   -.12497E-03
  21  Prefactor     19.278        21.966       -.21451E-06   -.23604E-02
  22  norm          .10000E-03    18.424        .14480E-05** at limit **
  23  norm          .27804E-03    156.85        .47154E-05** at limit **
  24  Prefactor     .10000E-03    18.630        .41898E-05** at limit **
  25  Prefactor     4.0102        3.5894        .53831E-06    .91105E-04
  26  Prefactor     118.02        41.365        .19944E-05   -.63037E-02
  27  Prefactor     55.930        6.5933       -.65886E-06    .19438E-01
  28  Prefactor     .10000E-03    33.082       -.44510E-05** at limit **
  29  Normalizat    .43161        .22434       -.44126E-05   -.11641E-04
  30  Prefactor     1.0159        .14675        .15131E-05   -.25937E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.0352
  Prefactor  = 19.2607
  Prefactor  = 0.0001
  Prefactor  = 16.8275
  norm       = 4.5124
  norm       = 6.77933
  Prefactor  = 31.546
  norm       = 0.0001
  Prefactor  = 9.90961
  Prefactor  = 9.2248
  Prefactor  = 22.0385
  Prefactor  = 0.0001
  norm       = 1.72793
  norm       = 3.44126
  Prefactor  = 0.0001
  Prefactor  = 51.247
  norm       = 0.000100001
  Prefactor  = 5.49247
  Prefactor  = 51.7245
  Prefactor  = 4.76382
  Prefactor  = 19.2783
  norm       = 0.0001
  norm       = 0.000278041
  Prefactor  = 0.0001
  Prefactor  = 4.01018
  Prefactor  = 118.019
  Prefactor  = 55.9305
  Prefactor  = 0.0001
  Normalizat = 0.431612
  Prefactor  = 1.01591
 **********
 **   18 **HESSE 
 **********

 FCN=   6496.991     FROM HESSE     STATUS=OK           670 CALLS     3589 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0352        8.7510        .33204E-02   -1.5107    
   2  Prefactor     19.261        38.257        .21974E-02   -1.4830    
   3  Prefactor     .10000E-03    8.6427        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.828        8.7882        .24371E-02   -1.4887    
   5  norm          4.5124        2.9753        .47382E-02   -1.5283    
   6  norm          6.7793        5.2805        .38542E-02   -1.5187    
   7  Prefactor     31.546        16.577        .17811E-02   -1.4584    
   8  norm          .10000E-03    2.3920        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.9096        32.133        .33124E-02   -1.5078    
  10  Prefactor     9.2248        10.268        .32801E-02   -1.5100    
  11  Prefactor     22.039        19.403        .21095E-02   -1.4769    
  12  Prefactor     .10000E-03    5.3720        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.7279        .86670        .79728E-02   -1.5445    
  14  norm          3.4413        4.6258        .54448E-02   -1.5337    
  15  Prefactor     .10000E-03    4.9516        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     51.247        49.746        .14181E-02   -1.4275    
  17  norm          .10000E-03    5.5300        .64025E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.4925        8.7532        .43483E-02   -1.5239    
  19  Prefactor     51.724        102.55        .14948E-02   -1.4268    
  20  Prefactor     4.7638        7.2542        .46520E-02   -1.5271    
  21  Prefactor     19.278        22.882        .22455E-02   -1.4830    
  22  norm          .10000E-03    18.280        .10164E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .27804E-03    16.963        .10408       -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    18.644        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.0102        3.6712        .50194E-02   -1.5307    
  26  Prefactor     118.02        51.801        .92040E-03   -1.3531    
  27  Prefactor     55.930        28.121        .13430E-02   -1.4211    
  28  Prefactor     .10000E-03    7.8123        .10311       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .43161        .22508        .90083E-01   -1.1570    
  30  Prefactor     1.0159        .13683        .42508E-01   -.92201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09495e-06
Minuit parameter uncertainties:
  1  8.75221
  2  38.3061
  3  2.67531e-06
  4  8.78888
  5  2.97535
  6  5.28086
  7  16.5798
  8  6.03733e-07
  9  32.1887
  10  10.2695
  11  19.4084
  12  8.0169e-06
  13  0.866709
  14  4.62624
  15  1.82677e-07
  16  49.7864
  17  0.000162091
  18  8.75525
  19  102.903
  20  7.25557
  21  22.8929
  22  0.000151785
  23  0.109942
  24  3.88311e-05
  25  3.67144
  26  51.8212
  27  28.1277
  28  0.000101088
  29  0.225554
  30  0.136874
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.180e+02  5.182e+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.016e+00  1.369e-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:  4.316e-01  2.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.98
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.43e-07 +/- 6.27e-08
Energy Flux (Fixed Index): 3.94e-05 +/- 1.73e-05

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) = 6496.89231106
delta logL = 0.0986522303529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6496.88422444
delta logL = 0.106738855277

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    92.683       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7778       1.0000          .0000       10.000    
     3 'Normalizat'    .41147       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0278       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=   6496.884     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      263 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     92.812        77.379        .20872E-03   -.59317E-04
   2  Index         2.7770        .58039        .43972E-02    .33197E-04
   3  Normalizat    .41150        .21039        .40833E-03   -.56241E-05
   4  Prefactor     1.0277        .14742        .18780E-03   -.25825E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 92.8116
  Index      = 2.77696
  Normalizat = 0.411495
  Prefactor  = 1.02774
 **********
 **   18 **HESSE 
 **********

 FCN=   6496.884     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     92.812        69.818        .83487E-05   -1.3778    
   2  Index         2.7770        .52330        .17589E-03   -.46074    
   3  Normalizat    .41150        .20978        .16333E-04   -1.1671    
   4  Prefactor     1.0277        .14687        .37559E-04   -.91811    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96975e-11
Minuit parameter uncertainties:
  1  69.8803
  2  0.524499
  3  0.210186
  4  0.146926
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70221': 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) = 6496.88422271
delta logL = 0.106740580639

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  9.281e+01  6.988e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.777e+00  5.245e-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.028e+00  1.469e-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:  4.115e-01  2.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.28
Ra Dec: 354.904 2.710
Photon Index (Free Index): 2.78 +/- 0.52
Photon Flux (Free Index): 1.56e-07 +/- 6.99e-08
Energy Flux (Free Index): 3.56e-05 +/- 1.66e-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/70221/cmap_HighResolution_333158401_333417601_4FGL_J2339.6+0242_daily_bin362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.43e-07', energy_flux2='3.56e-05', photon_flux_error='6.27e-08', dlogl='1.07e-01', energy_flux='3.94e-05', photon_flux2='1.56e-07', job_status='DONE', time_completed='2021-09-30 02:44:46.811443', photon_index_error2='0.52', photon_index2='2.78', ts='7.98', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.66e-05', EG='0.43', time_epoch_completed='1632995086.81', return_code='0', job_id='70221', GAL2='1.03', EG2='0.41', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='6.99e-08', ts2='8.28', photon_index='2.55' WHERE bin_id='362' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:44:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 70221: <4FGL_J2339.6+0242_daily_bin362> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin362> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:30:55 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:30:57 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:30:57 2021
Terminated at Thu Sep 30 02:44:47 2021
Results reported at Thu Sep 30 02:44:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin362 354.904 2.7102 333158401 333417601 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 :                                   667.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            832 sec.

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

