/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 39 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 = 7452
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2339.6+0242_daily_bin837
RA = 354.904, Dec = 2.7102
tmin = 456278401, tmax = 456537601
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='73257', job_status='RUN', time_executed='2021-09-30 02:41:32.442360', time_epoch_executed='1632994892.44' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='837'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73257

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73257/ft1_4FGL_J2339.6+0242_daily_bin837.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73257/ft2_4FGL_J2339.6+0242_daily_bin837.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73257/ft1_4FGL_J2339.6+0242_daily_bin837.fits outfile=/scratch/kocevski/73257/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin837.fits ra=354.904 dec=2.7102 rad=12.0 tmin=456278401.0 tmax=456537601.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.06
user 4.79
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73257/ft1_filtered_4FGL_J2339.6+0242_daily_bin837.fits" evtable="EVENTS" scfile=/scratch/kocevski/73257/ft2_4FGL_J2339.6+0242_daily_bin837.fits sctable="SC_DATA" outfile=/scratch/kocevski/73257/ltcube_456278401_456537601_4FGL_J2339.6+0242_daily_bin837.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/73257/ft2_4FGL_J2339.6+0242_daily_bin837.fits
.....................!
real 11.66
user 11.27
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73257/ft1_filtered_4FGL_J2339.6+0242_daily_bin837.fits evtable="EVENTS" scfile=/scratch/kocevski/73257/ft2_4FGL_J2339.6+0242_daily_bin837.fits sctable="SC_DATA" expcube=/scratch/kocevski/73257/ltcube_456278401_456537601_4FGL_J2339.6+0242_daily_bin837.fits outfile=/scratch/kocevski/73257/expmap_456278401_456537601_4FGL_J2339.6+0242_daily_bin837.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/73257/ltcube_456278401_456537601_4FGL_J2339.6+0242_daily_bin837.fits
.....................!
real 190.15
user 184.86
sys 4.95

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/73257/ft1_filtered_4FGL_J2339.6+0242_daily_bin837.fits scfile=/scratch/kocevski/73257/ft2_4FGL_J2339.6+0242_daily_bin837.fits outfile=/scratch/kocevski/73257/cmap_456278401_456537601_4FGL_J2339.6+0242_daily_bin837.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73257/ft1_filtered_4FGL_J2339.6+0242_daily_bin837.fits scfile=/scratch/kocevski/73257/ft2_4FGL_J2339.6+0242_daily_bin837.fits outfile=/scratch/kocevski/73257/cmap_HighResolution_456278401_456537601_4FGL_J2339.6+0242_daily_bin837.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    21.125       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.5686       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10462E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .59208E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.7469       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.8721       1.0000         .10000E-03   10000.    
    13 'norm      '    5.8381       1.0000         .10000E-03   10000.    
    14 'norm      '    2.7887       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.719       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    22.670       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    85.057       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2284       1.0000         .10000E-03   10000.    
    22 'norm      '    .25873E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.7656       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.2574       1.0000         .10000E-03   10000.    
    26 'Prefactor '    27.538       1.0000         .10000E-03   10000.    
    27 'Prefactor '    16.575       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11215E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .88974       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .94598       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=   6538.028     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     3942 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7749        .10057E-07** at limit **
   2  Prefactor     21.130        29.277        .14878E-06    .23023E-05
   3  Prefactor     6.5713        9.8624        .18433E-06   -.19437E-04
   4  Prefactor     .10000E-03    2.4007        .22297E-07** at limit **
   5  norm          .10000E-03    .76184       -.75408E-09** at limit **
   6  norm          .10000E-03    2.3757        .92881E-08** at limit **
   7  Prefactor     .10000E-03    3.1780        .28158E-08** at limit **
   8  norm          .10000E-03    10.005       -.76044E-08** at limit **
   9  Prefactor     .10000E-03    192.25       -.29133E-05** at limit **
  10  Prefactor     .10000E-03    4.3651        .17344E-08** at limit **
  11  Prefactor     7.7482        17.203       -.13188E-06   -.99792E-05
  12  Prefactor     6.8721        6.6517        .63647E-07   -.66108E-04
  13  norm          5.8369        1.4034       -.14916E-06   -.18530E-02
  14  norm          2.7883        3.0483       -.57665E-08   -.34815E-04
  15  Prefactor     13.719        16.191       -.87482E-07   -.76177E-04
  16  Prefactor     .10000E-03    25.210       -.15216E-07** at limit **
  17  norm          22.658        13.629        .15084E-07   -.12121E-03
  18  Prefactor     .10000E-03    4.7834        .11075E-06** at limit **
  19  Prefactor     85.295        158.28       -.28903E-05   -.28201E-04
  20  Prefactor     .10096E-03    10.739        .52487E-05** at limit **
  21  Prefactor     1.2350        225.40        .42415E-05   -.13651E-04
  22  norm          .10000E-03    14.009        .22216E-06** at limit **
  23  norm          .10000E-03    9.9436        .25489E-06** at limit **
  24  Prefactor     4.7613        37.527        .46963E-06   -.15554E-04
  25  Prefactor     5.2566        4.5431       -.18095E-05   -.17139E-02
  26  Prefactor     27.527        28.122       -.35251E-06   -.84528E-04
  27  Prefactor     16.572        24.077        .20848E-06   -.48435E-04
  28  Prefactor     .10008E-03    7.9714       -.37482E-06** at limit **
  29  Normalizat    .88985        .19215       -.81702E-06   -.26574E-03
  30  Prefactor     .94605        .13144       -.22382E-06   -.23565E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 21.1296
  Prefactor  = 6.57133
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 7.74825
  Prefactor  = 6.87206
  norm       = 5.83695
  norm       = 2.78826
  Prefactor  = 13.7189
  Prefactor  = 0.0001
  norm       = 22.6577
  Prefactor  = 0.0001
  Prefactor  = 85.2946
  Prefactor  = 0.000100959
  Prefactor  = 1.23497
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.76129
  Prefactor  = 5.25665
  Prefactor  = 27.5275
  Prefactor  = 16.5722
  Prefactor  = 0.00010008
  Normalizat = 0.889855
  Prefactor  = 0.946053
 **********
 **   18 **HESSE 
 **********

 FCN=   6538.028     FROM HESSE     STATUS=OK           590 CALLS     4532 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7764        .13154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.130        29.275        .87145E-04   -1.4788    
   3  Prefactor     6.5713        9.8628        .15658E-03   -1.5195    
   4  Prefactor     .10000E-03    2.4171        .12232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .76784        .68852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.4062        .12168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.1814        .14077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    10.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    198.99        .42142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.3697        .16499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.7482        17.185        .14407E-03   -1.5151    
  12  Prefactor     6.8721        6.6433        .15305E-03   -1.5184    
  13  norm          5.8369        1.4028        .44024E-04   -1.5225    
  14  norm          2.7883        3.0480        .14237E-03   -1.5374    
  15  Prefactor     13.719        15.846        .10814E-03   -1.4967    
  16  Prefactor     .10000E-03    25.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          22.658        13.361        .84126E-04   -1.4756    
  18  Prefactor     .10000E-03    4.8275        .17226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     85.295        157.83        .21779E-03   -1.3858    
  20  Prefactor     .10096E-03    71.538        .41420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.2350        202.70        .40601E-03   -1.5486    
  22  norm          .10000E-03    65.259        .58788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    9.9591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.7613        37.505        .18431E-03   -1.5272    
  25  Prefactor     5.2566        4.6228        .14833E-03   -1.5249    
  26  Prefactor     27.527        28.118        .76342E-04   -1.4658    
  27  Prefactor     16.572        23.974        .98375E-04   -1.4894    
  28  Prefactor     .10008E-03    44.228        .43770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .88985        .22016        .29810E-03   -.96818    
  30  Prefactor     .94605        .15171        .20718E-03   -.94550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51348e-08
Minuit parameter uncertainties:
  1  1.03246e-06
  2  29.295
  3  9.86527
  4  2.07916e-06
  5  1.90171e-06
  6  3.21419e-06
  7  1.70365e-06
  8  1.57158e-05
  9  0.00117515
  10  1.79002e-06
  11  17.1955
  12  6.64405
  13  1.40282
  14  3.04816
  15  15.8509
  16  1.05788e-05
  17  13.3629
  18  6.6587e-06
  19  158.618
  20  0.0165822
  21  31.7521
  22  0.000226318
  23  1.96649e-06
  24  26.7489
  25  4.62315
  26  28.1311
  27  23.9884
  28  0.00376606
  29  0.220384
  30  0.151781
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  2.753e+01  2.813e+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:  9.461e-01  1.518e-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:  8.899e-01  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.76
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 3.33e-08 +/- 3.40e-08
Energy Flux (Fixed Index): 9.18e-06 +/- 9.38e-06

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

Saving results to:
/scratch/kocevski/73257/likelihoodResults_456278401_456537601_4FGL_J2339.6+0242_daily_bin837.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) = 6537.66156808
delta logL = 0.366872054381

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6537.66148558
delta logL = 0.366954563452

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.408       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9788       1.0000          .0000       10.000    
     3 'Normalizat'    .90302       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93967       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=   6537.661     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      274 TOTAL
                     EDM=   .65E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.417        36.974        .64673E-04   -.10547E-06
   2  Index         1.9793        .61450        .94782E-02   -.67769E-06
   3  Normalizat    .90301        .20958        .29613E-03   -.18812E-05
   4  Prefactor     .93967        .15061        .20775E-03    .20795E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.4166
  Index      = 1.97935
  Normalizat = 0.903006
  Prefactor  = 0.939668
 **********
 **   18 **HESSE 
 **********

 FCN=   6537.661     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .54E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.417        37.058        .12935E-04   -1.4468    
   2  Index         1.9793        .61596        .37913E-03   -.64867    
   3  Normalizat    .90301        .20974        .11845E-04   -.96355    
   4  Prefactor     .93967        .15072        .83101E-05   -.94768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.38323e-14
Minuit parameter uncertainties:
  1  37.0803
  2  0.618441
  3  0.209929
  4  0.150791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73257': 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) = 6537.66148522
delta logL = 0.366954920681

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.842e+01  3.708e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  1.979e+00  6.184e-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:  9.397e-01  1.508e-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.030e-01  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.49
Ra Dec: 354.904 2.710
Photon Index (Free Index): 1.98 +/- 0.62
Photon Flux (Free Index): 2.28e-08 +/- 2.75e-08
Energy Flux (Free Index): 1.66e-05 +/- 2.11e-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/73257/cmap_HighResolution_456278401_456537601_4FGL_J2339.6+0242_daily_bin837.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.10e-03', comment='SUCCESS', photon_flux='3.33e-08', energy_flux2='1.66e-05', photon_flux_error='3.40e-08', dlogl='3.67e-01', energy_flux='9.18e-06', photon_flux2='2.28e-08', job_status='DONE', time_completed='2021-09-30 02:55:24.402045', photon_index_error2='0.62', photon_index2='1.98', ts='1.76', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='2.11e-05', EG='0.89', time_epoch_completed='1632995724.4', return_code='0', job_id='73257', GAL2='0.94', EG2='0.90', return_code2='0', energy_flux_error='9.38e-06', photon_flux_error2='2.75e-08', ts2='2.49', photon_index='2.55' WHERE bin_id='837' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:55:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 73257: <4FGL_J2339.6+0242_daily_bin837> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin837 354.904 2.7102 456278401 456537601 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 :                                   827.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             310.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            887 sec.

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

