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


Performing analysis on: 4FGL_J1239.5+0443_daily_bin959
RA = 189.885, Dec = 4.7284
tmin = 487900801, tmax = 488160001
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='872711', job_status='RUN', time_executed='2021-09-06 03:18:25.911474', time_epoch_executed='1630923505.91' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='959'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/872711

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/872711/ft1_4FGL_J1239.5+0443_daily_bin959.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/872711/ft2_4FGL_J1239.5+0443_daily_bin959.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/872711/ft1_4FGL_J1239.5+0443_daily_bin959.fits outfile=/scratch/kocevski/872711/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin959.fits ra=189.885 dec=4.7284 rad=12.0 tmin=487900801.0 tmax=488160001.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.17
user 5.81
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/872711/ft2_4FGL_J1239.5+0443_daily_bin959.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/872711/ft2_4FGL_J1239.5+0443_daily_bin959.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/872711/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin959.fits evtable="EVENTS" outfile="/scratch/kocevski/872711/ft1_filtered_4FGL_J1239.5+0443_daily_bin959.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.67
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/872711/ft1_filtered_4FGL_J1239.5+0443_daily_bin959.fits" evtable="EVENTS" scfile=/scratch/kocevski/872711/ft2_4FGL_J1239.5+0443_daily_bin959.fits sctable="SC_DATA" outfile=/scratch/kocevski/872711/ltcube_487900801_488160001_4FGL_J1239.5+0443_daily_bin959.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/872711/ft2_4FGL_J1239.5+0443_daily_bin959.fits
.....................!
real 14.99
user 14.56
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/872711/ft1_filtered_4FGL_J1239.5+0443_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/872711/ft2_4FGL_J1239.5+0443_daily_bin959.fits sctable="SC_DATA" expcube=/scratch/kocevski/872711/ltcube_487900801_488160001_4FGL_J1239.5+0443_daily_bin959.fits outfile=/scratch/kocevski/872711/expmap_487900801_488160001_4FGL_J1239.5+0443_daily_bin959.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/872711/ltcube_487900801_488160001_4FGL_J1239.5+0443_daily_bin959.fits
.....................!
real 191.66
user 185.91
sys 5.13

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 172 point sources and 0 extended sources

Setting source of interest to:
4FGL J1239.5+0443 @ 189.885 4.7284

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/872711/ft1_filtered_4FGL_J1239.5+0443_daily_bin959.fits scfile=/scratch/kocevski/872711/ft2_4FGL_J1239.5+0443_daily_bin959.fits outfile=/scratch/kocevski/872711/cmap_487900801_488160001_4FGL_J1239.5+0443_daily_bin959.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=189.885 yref=4.7284 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.69
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/872711/ft1_filtered_4FGL_J1239.5+0443_daily_bin959.fits scfile=/scratch/kocevski/872711/ft2_4FGL_J1239.5+0443_daily_bin959.fits outfile=/scratch/kocevski/872711/cmap_HighResolution_487900801_488160001_4FGL_J1239.5+0443_daily_bin959.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=189.885 yref=4.7284 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.63
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/872711/ft1_filtered_4FGL_J1239.5+0443_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/872711/ft2_4FGL_J1239.5+0443_daily_bin959.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/872711/Model_4FGL_J1239.5+0443_daily_bin959.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/872711/ft1_filtered_4FGL_J1239.5+0443_daily_bin959.fits.....................!
real 48.35
user 44.60
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/872711/ft1_filtered_4FGL_J1239.5+0443_daily_bin959.fits', '/scratch/kocevski/872711/ft2_4FGL_J1239.5+0443_daily_bin959.fits', expMap='/scratch/kocevski/872711/expmap_487900801_488160001_4FGL_J1239.5+0443_daily_bin959.fits', expCube='/scratch/kocevski/872711/ltcube_487900801_488160001_4FGL_J1239.5+0443_daily_bin959.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/872711/Model_4FGL_J1239.5+0443_daily_bin959.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1239.5+0443'

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  4.221e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  2.228e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
296         beta:  1.234e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
297           Eb:  5.025e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/872711/ft1_filtered_4FGL_J1239.5+0443_daily_bin959.fits
Spacecraft file(s): /scratch/kocevski/872711/ft2_4FGL_J1239.5+0443_daily_bin959.fits
Exposure map: /scratch/kocevski/872711/expmap_487900801_488160001_4FGL_J1239.5+0443_daily_bin959.fits
Exposure cube: /scratch/kocevski/872711/ltcube_487900801_488160001_4FGL_J1239.5+0443_daily_bin959.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/872711/Model_4FGL_J1239.5+0443_daily_bin959.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) = 4883.43716959

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    165.98       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5580       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1459       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13345E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0873       1.0000         .10000E-03   10000.    
     9 'norm      '    5.8130       1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.535       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.9478       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6766       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.6685       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    67.444       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    50.848       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.4564       1.0000         .10000E-03   10000.    
    25 'norm      '    .70799       1.0000         .10000E-03   10000.    
    26 'Prefactor '    54.165       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    57.858       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0226       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1333       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4883.334     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     4124 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     165.82        152.97       -.11279E-03    .14926E-04
   2  Prefactor     3.5589        8.2951        .11911E-05   -.58025E-04
   3  Prefactor     2.1478        8.5425       -.24776E-06   -.22295E-03
   4  Prefactor     .10000E-03    135.22       -.10055E-04** at limit **
   5  Prefactor     .10000E-03    58.176       -.79948E-05** at limit **
   6  Prefactor     .10000E-03    27.457        .12519E-04** at limit **
   7  Prefactor     .10000E-03    16.501        .21105E-05** at limit **
   8  Prefactor     2.0870        8.0714       -.16289E-05   -.33910E-03
   9  norm          5.8128        3.5341       -.13657E-06    .19099E-03
  10  norm          .10000E-03    2.1481        .43141E-08** at limit **
  11  Prefactor     22.535        33.360       -.63547E-06    .10846E-04
  12  norm          .10000E-03    21.165       -.10957E-04** at limit **
  13  Prefactor     .10000E-03    65.340        .21496E-04** at limit **
  14  norm          1.9478        .78410       -.13588E-06    .57969E-03
  15  Prefactor     .10000E-03    5.5360        .59576E-07** at limit **
  16  Prefactor     3.6588        73.676       -.21110E-04   -.11456E-04
  17  Prefactor     .10000E-03    5.3621       -.10237E-06** at limit **
  18  norm          4.6685        2.3098       -.32478E-06    .71320E-04
  19  Prefactor     .10000E-03    11.251       -.29128E-06** at limit **
  20  Prefactor     .10000E-03    22.160       -.21341E-05** at limit **
  21  Prefactor     67.441        55.512       -.25549E-05    .11186E-04
  22  Prefactor     .10000E-03    24.212        .11457E-04** at limit **
  23  norm          50.844        36.664       -.24644E-05    .25451E-04
  24  Prefactor     2.4375        31.442       -.88237E-05   -.12711E-03
  25  norm          .70798        .30560       -.62853E-07    .42765E-03
  26  Prefactor     54.177        27.523        .48318E-06    .12653E-03
  27  Prefactor     .10000E-03    32.985       -.17630E-04** at limit **
  28  Prefactor     57.856        31.737       -.20854E-05    .44162E-04
  29  Prefactor     .10000E-03    8.5988       -.19081E-06** at limit **
  30  Normalizat    1.0227        .27313        .96701E-05   -.16452E-04
  31  Prefactor     1.1332        .21324        .14170E-05    .23974E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 165.823
  Prefactor  = 3.55886
  Prefactor  = 2.14778
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.08701
  norm       = 5.8128
  norm       = 0.0001
  Prefactor  = 22.5349
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.94777
  Prefactor  = 0.0001
  Prefactor  = 3.65878
  Prefactor  = 0.0001
  norm       = 4.66845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.4411
  Prefactor  = 0.0001
  norm       = 50.8439
  Prefactor  = 2.43746
  norm       = 0.707983
  Prefactor  = 54.1775
  Prefactor  = 0.0001
  Prefactor  = 57.8564
  Prefactor  = 0.0001
  Normalizat = 1.02271
  Prefactor  = 1.1332
 **********
 **   18 **HESSE 
 **********

 FCN=   4883.334     FROM HESSE     STATUS=OK           614 CALLS     4738 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     165.82        152.78        .15655E-03   -1.3125    
   2  Prefactor     3.5589        8.2771        .21427E-03   -1.5331    
   3  Prefactor     2.1478        8.5233        .28132E-03   -1.5415    
   4  Prefactor     .10000E-03    135.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    58.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.0870        8.0330        .28577E-03   -1.5419    
   9  norm          5.8128        3.5308        .48779E-03   -1.5226    
  10  norm          .10000E-03    2.1753        .99893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.535        33.368        .84377E-04   -1.4758    
  12  norm          .10000E-03    21.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    65.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.9478        .78249        .36920E-04   -1.5429    
  15  Prefactor     .10000E-03    5.5374        .16052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.6588        74.045        .21065E-03   -1.5325    
  17  Prefactor     .10000E-03    5.3753        .15803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.6685        2.3090        .71109E-04   -1.5276    
  19  Prefactor     .10000E-03    11.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     67.441        55.633        .48873E-04   -1.4064    
  22  Prefactor     .10000E-03    24.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          50.844        36.670        .56241E-04   -1.4281    
  24  Prefactor     2.4375        30.773        .26097E-03   -1.5396    
  25  norm          .70798        .30657        .23846E-04   -1.5540    
  26  Prefactor     54.177        27.259        .54500E-04   -1.4235    
  27  Prefactor     .10000E-03    33.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     57.856        31.769        .52742E-04   -1.4185    
  29  Prefactor     .10000E-03    8.6274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0227        .33007        .32465E-03   -.92273    
  31  Prefactor     1.1332        .25862        .25484E-03   -.88413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40519e-09
Minuit parameter uncertainties:
  1  153.149
  2  8.27981
  3  8.52807
  4  0.000135791
  5  0.00103172
  6  0.00010592
  7  2.83202e-05
  8  8.03715
  9  3.53093
  10  2.12324e-06
  11  33.3955
  12  6.18024e-06
  13  1.53764e-05
  14  0.782499
  15  2.23739e-05
  16  32.9653
  17  1.95992e-05
  18  2.30908
  19  6.99297e-05
  20  4.81761e-05
  21  55.6757
  22  2.31934e-05
  23  36.6863
  24  17.3321
  25  0.306569
  26  27.2657
  27  4.6991e-05
  28  31.7782
  29  5.59347e-05
  30  0.330736
  31  0.258905
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  4.668e+00  2.309e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  2.228e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
296         beta:  1.234e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
297           Eb:  5.025e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
557    Prefactor:  1.133e+00  2.589e-01  0.000e+00  1.000e+01 ( 1.000e+00)
558        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
559        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  1.023e+00  3.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.67
Ra Dec: 189.885 4.728
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.19e-07 +/- 5.90e-08
Energy Flux (Fixed Index): 4.19e-05 +/- 2.07e-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) = 4883.3283963
delta logL = 0.0053709957383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4883.32824811
delta logL = 0.00551917737994

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6676       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1788       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0271       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1311       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4883.328     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      200 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6552        2.9718        .46569E-02    .30061E-04
   2  alpha         2.1788        .55741        .28573        .20259E-04
   3  Normalizat    1.0273        .25760        .73231E-01    .32772E-04
   4  Prefactor     1.1311        .21142        .57681E-01    .22001E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.65516
  alpha      = 2.17883
  Normalizat = 1.02727
  Prefactor  = 1.13113
 **********
 **   18 **HESSE 
 **********

 FCN=   4883.328     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6552        2.3160        .71794E-04   -1.5276    
   2  alpha         2.1788        .46376        .11841E-01   -.12883    
   3  Normalizat    1.0273        .31054        .32405E-03   -.92123    
   4  Prefactor     1.1311        .25397        .25506E-03   -.88478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43723e-11
Minuit parameter uncertainties:
  1  2.31601
  2  0.466511
  3  0.311092
  4  0.254246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/872711': 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) = 4883.3282336
delta logL = 0.0055336951591

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  4.655e+00  2.316e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  2.179e+00  4.665e-01  0.000e+00  5.000e+00 ( 1.000e+00)
296         beta:  1.234e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
297           Eb:  5.025e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
557    Prefactor:  1.131e+00  2.542e-01  0.000e+00  1.000e+01 ( 1.000e+00)
558        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
559        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  1.027e+00  3.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.63
Ra Dec: 189.885 4.728
Photon Index (Free Index): 2.18 +/- 0.47
Photon Flux (Free Index): 1.15e-07 +/- 7.20e-08
Energy Flux (Free Index): 4.24e-05 +/- 2.17e-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/872711/cmap_HighResolution_487900801_488160001_4FGL_J1239.5+0443_daily_bin959.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.19e-07', energy_flux2='4.24e-05', photon_flux_error='5.90e-08', dlogl='5.53e-03', energy_flux='4.19e-05', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-09-06 03:29:48.869529', photon_index_error2='0.47', photon_index2='2.18', ts='9.67', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='2.17e-05', EG='1.02', time_epoch_completed='1630924188.87', return_code='0', job_id='872711', GAL2='1.13', EG2='1.03', return_code2='0', energy_flux_error='2.07e-05', photon_flux_error2='7.20e-08', ts2='9.63', photon_index='2.23' WHERE bin_id='959' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:29:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 872711: <4FGL_J1239.5+0443_daily_bin959> in cluster <slac> Done

Job <4FGL_J1239.5+0443_daily_bin959> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 03:15:36 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 03:16:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 03:16:38 2021
Terminated at Mon Sep  6 03:29:49 2021
Results reported at Mon Sep  6 03:29:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin959 189.885 4.7284 487900801 488160001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1239.5+0443 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   669.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            853 sec.

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

