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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin517
RA = 354.904, Dec = 2.7102
tmin = 373334401, tmax = 373593601
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='71745', job_status='RUN', time_executed='2021-09-30 02:38:28.032660', time_epoch_executed='1632994708.03' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='517'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71745

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71745/ft1_4FGL_J2339.6+0242_daily_bin517.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71745/ft2_4FGL_J2339.6+0242_daily_bin517.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71745/ft1_4FGL_J2339.6+0242_daily_bin517.fits outfile=/scratch/kocevski/71745/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin517.fits ra=354.904 dec=2.7102 rad=12.0 tmin=373334401.0 tmax=373593601.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 4.51
user 4.29
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71745/ft1_filtered_4FGL_J2339.6+0242_daily_bin517.fits evtable="EVENTS" scfile=/scratch/kocevski/71745/ft2_4FGL_J2339.6+0242_daily_bin517.fits sctable="SC_DATA" expcube=/scratch/kocevski/71745/ltcube_373334401_373593601_4FGL_J2339.6+0242_daily_bin517.fits outfile=/scratch/kocevski/71745/expmap_373334401_373593601_4FGL_J2339.6+0242_daily_bin517.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/71745/ltcube_373334401_373593601_4FGL_J2339.6+0242_daily_bin517.fits
.....................!
real 190.15
user 184.65
sys 5.20

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/71745/ft1_filtered_4FGL_J2339.6+0242_daily_bin517.fits scfile=/scratch/kocevski/71745/ft2_4FGL_J2339.6+0242_daily_bin517.fits outfile=/scratch/kocevski/71745/cmap_373334401_373593601_4FGL_J2339.6+0242_daily_bin517.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=354.904 yref=2.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71745/ft1_filtered_4FGL_J2339.6+0242_daily_bin517.fits scfile=/scratch/kocevski/71745/ft2_4FGL_J2339.6+0242_daily_bin517.fits outfile=/scratch/kocevski/71745/cmap_HighResolution_373334401_373593601_4FGL_J2339.6+0242_daily_bin517.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4354       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.773       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10515E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.3802       1.0000         .10000E-03   10000.    
     6 'norm      '    4.0469       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.757       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2363       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5483       1.0000         .10000E-03   10000.    
    13 'norm      '    2.6416       1.0000         .10000E-03   10000.    
    14 'norm      '    .10135E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    28.730       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5767       1.0000         .10000E-03   10000.    
    19 'Prefactor '    104.56       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .38788E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .91702E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12894       1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.340       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11976E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .94421       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .79274       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=   6012.355     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3922 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4332        9.1529        .53814E-07    .23550E-04
   2  Prefactor     .10000E-03    21.968        .75220E-06** at limit **
   3  Prefactor     16.769        14.739        .44092E-08   -.11957E-04
   4  Prefactor     .10002E-03    4.7502        .12918E-05** at limit **
   5  norm          3.3793        2.4513        .67155E-08    .62898E-04
   6  norm          4.0475        3.6054       -.44371E-07   -.62948E-04
   7  Prefactor     .10000E-03    15.484        .14614E-05** at limit **
   8  norm          .10000E-03    3.8007        .41467E-06** at limit **
   9  Prefactor     .10000E-03    16.436        .92940E-06** at limit **
  10  Prefactor     12.757        10.826        .30681E-08   -.21578E-04
  11  Prefactor     3.2358        28.359        .27639E-05    .17824E-05
  12  Prefactor     2.5464        6.2985        .10625E-05    .17504E-04
  13  norm          2.6406        1.1382        .54434E-06    .71298E-03
  14  norm          .10000E-03    5.1085        .24119E-05** at limit **
  15  Prefactor     .10000E-03    3.6645        .27277E-06** at limit **
  16  Prefactor     .10000E-03    11.793        .27834E-07** at limit **
  17  norm          28.734        13.154       -.94230E-06   -.53404E-03
  18  Prefactor     3.5824        10.536        .14720E-05   -.10049E-03
  19  Prefactor     105.02        177.60       -.18681E-05   -.33187E-04
  20  Prefactor     .10002E-03    31.384       -.76073E-05** at limit **
  21  Prefactor     .10000E-03    123.71        .11528E-04** at limit **
  22  norm          .10000E-03    8.3584        .24223E-08** at limit **
  23  norm          .10000E-03    24.343       -.68552E-06** at limit **
  24  Prefactor     .10000E-03    13.382        .33086E-07** at limit **
  25  Prefactor     .99760E-01    37.877       -.74655E-05    .40067E-04
  26  Prefactor     12.345        31.381        .50985E-06   -.29747E-04
  27  Prefactor     .10000E-03    42.309        .30284E-05** at limit **
  28  Prefactor     .10000E-03    13.803        .14779E-05** at limit **
  29  Normalizat    .94462        .20197       -.35736E-05   -.72279E-04
  30  Prefactor     .79249        .12714        .78998E-06   -.43765E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.43319
  Prefactor  = 0.0001
  Prefactor  = 16.7693
  Prefactor  = 0.000100023
  norm       = 3.37931
  norm       = 4.04751
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.757
  Prefactor  = 3.23581
  Prefactor  = 2.54636
  norm       = 2.64063
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.7342
  Prefactor  = 3.58236
  Prefactor  = 105.021
  Prefactor  = 0.000100023
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0997602
  Prefactor  = 12.3453
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.944617
  Prefactor  = 0.792495
 **********
 **   18 **HESSE 
 **********

 FCN=   6012.355     FROM HESSE     STATUS=OK           588 CALLS     4510 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4332        9.1587        .13047E-03   -1.5094    
   2  Prefactor     .10000E-03    21.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.769        14.737        .97795E-04   -1.4889    
   4  Prefactor     .10002E-03    9.7430        .28358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.3793        2.4486        .95176E-04   -1.5340    
   6  norm          4.0475        3.6018        .13496E-03   -1.5306    
   7  Prefactor     .10000E-03    16.023        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.8089        .14764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.757        10.827        .11215E-03   -1.4993    
  11  Prefactor     3.2358        28.442        .22516E-03   -1.5348    
  12  Prefactor     2.5464        6.2526        .12790E-02   -1.5389    
  13  norm          2.6406        1.1286        .49890E-04   -1.5383    
  14  norm          .10000E-03    5.2225        .33861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.6731        .14497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          28.734        13.003        .74746E-04   -1.4635    
  18  Prefactor     3.5824        10.358        .21369E-03   -1.5329    
  19  Prefactor     105.02        179.12        .19662E-03   -1.3655    
  20  Prefactor     .10002E-03    35.492        .41817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    129.24        .41637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.3649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    24.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .99760E-01    40.266        .19748E-02   -1.5645    
  26  Prefactor     12.345        31.340        .11403E-03   -1.5005    
  27  Prefactor     .10000E-03    43.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    13.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .94462        .21999        .26983E-03   -.94910    
  30  Prefactor     .79249        .14164        .20310E-03   -1.0001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54563e-09
Minuit parameter uncertainties:
  1  9.16005
  2  5.31494e-05
  3  14.7401
  4  0.000945923
  5  2.44869
  6  3.60196
  7  4.36874e-05
  8  1.17858e-07
  9  2.94206e-05
  10  10.8289
  11  19.1987
  12  6.25419
  13  1.12857
  14  1.41924e-05
  15  7.54377e-06
  16  1.01545e-05
  17  13.0038
  18  10.3636
  19  180.056
  20  0.00181316
  21  0.000843872
  22  2.22714e-06
  23  7.33844e-05
  24  5.09537e-06
  25  4.00917
  26  31.3819
  27  5.20366e-05
  28  5.82737e-05
  29  0.220201
  30  0.141704
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.235e+01  3.138e+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:  7.925e-01  1.417e-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:  9.446e-01  2.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.19
Ra Dec: 354.904 2.710
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71745/likelihoodResults_373334401_373593601_4FGL_J2339.6+0242_daily_bin517.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) = 6012.34587223
delta logL = 0.0086656505473

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6012.34421478
delta logL = 0.0103230958985

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.597       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7628       1.0000          .0000       10.000    
     3 'Normalizat'    .94190       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79359       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=   6012.344     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      235 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.597        1211.6        .30770E-02    .47177E-03
   2  Index         2.7628        5.8495        .23494        .22247E-03
   3  Normalizat    .94208        .50273E-01    .45435E-01    .11867E-04
   4  Prefactor     .79346        .34445E-01    .43634E-01    .65080E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5968
  Index      = 2.7628
  Normalizat = 0.942083
  Prefactor  = 0.79346
 **********
 **   18 **HESSE 
 **********

 FCN=   6012.344     FROM HESSE     STATUS=OK            31 CALLS      266 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.597        33.587        .12308E-03   -1.5057    
   2  Index         2.7628        1.6192        .14266E-01   -.46390    
   3  Normalizat    .94208        .20076        .27016E-03   -.94997    
   4  Prefactor     .79346        .13898        .20299E-03   -.99970    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24243e-09
Minuit parameter uncertainties:
  1  33.6473
  2  1.6569
  3  0.200921
  4  0.139038
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71745': 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) = 6012.34421433
delta logL = 0.0103235500792

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.060e+01  3.365e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.763e+00  1.657e+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.935e-01  1.390e-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:  9.421e-01  2.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
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/71745/cmap_HighResolution_373334401_373593601_4FGL_J2339.6+0242_daily_bin517.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.24e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-30 02:51:11.450093', job_id='71745', GAL2='0.79', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1632995471.45', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='1.03e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='517' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:51:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 71745: <4FGL_J2339.6+0242_daily_bin517> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin517> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 02:35:39 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:35:40 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:35:40 2021
Terminated at Thu Sep 30 02:51:12 2021
Results reported at Thu Sep 30 02:51:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin517 354.904 2.7102 373334401 373593601 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 :                                   763.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

