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


Performing analysis on: 4FGL_J1239.5+0443_daily_bin244
RA = 189.885, Dec = 4.7284
tmin = 302572801, tmax = 302832001
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='865807', job_status='RUN', time_executed='2021-09-06 03:01:35.400679', time_epoch_executed='1630922495.4' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='244'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/865807

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/865807/ft1_4FGL_J1239.5+0443_daily_bin244.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/865807/ft2_4FGL_J1239.5+0443_daily_bin244.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/865807/ft1_4FGL_J1239.5+0443_daily_bin244.fits outfile=/scratch/kocevski/865807/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin244.fits ra=189.885 dec=4.7284 rad=12.0 tmin=302572801.0 tmax=302832001.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.28
user 3.27
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/865807/ft2_4FGL_J1239.5+0443_daily_bin244.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/865807/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin244.fits evtable="EVENTS" outfile="/scratch/kocevski/865807/ft1_filtered_4FGL_J1239.5+0443_daily_bin244.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.68
user 0.33
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/865807/ft1_filtered_4FGL_J1239.5+0443_daily_bin244.fits evtable="EVENTS" scfile=/scratch/kocevski/865807/ft2_4FGL_J1239.5+0443_daily_bin244.fits sctable="SC_DATA" expcube=/scratch/kocevski/865807/ltcube_302572801_302832001_4FGL_J1239.5+0443_daily_bin244.fits outfile=/scratch/kocevski/865807/expmap_302572801_302832001_4FGL_J1239.5+0443_daily_bin244.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/865807/ltcube_302572801_302832001_4FGL_J1239.5+0443_daily_bin244.fits
.....................!
real 193.11
user 186.60
sys 5.85

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/865807/ft1_filtered_4FGL_J1239.5+0443_daily_bin244.fits scfile=/scratch/kocevski/865807/ft2_4FGL_J1239.5+0443_daily_bin244.fits outfile=/scratch/kocevski/865807/cmap_302572801_302832001_4FGL_J1239.5+0443_daily_bin244.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/865807/ft1_filtered_4FGL_J1239.5+0443_daily_bin244.fits scfile=/scratch/kocevski/865807/ft2_4FGL_J1239.5+0443_daily_bin244.fits outfile=/scratch/kocevski/865807/cmap_HighResolution_302572801_302832001_4FGL_J1239.5+0443_daily_bin244.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.56
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/865807/ft1_filtered_4FGL_J1239.5+0443_daily_bin244.fits', '/scratch/kocevski/865807/ft2_4FGL_J1239.5+0443_daily_bin244.fits', expMap='/scratch/kocevski/865807/expmap_302572801_302832001_4FGL_J1239.5+0443_daily_bin244.fits', expCube='/scratch/kocevski/865807/ltcube_302572801_302832001_4FGL_J1239.5+0443_daily_bin244.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/865807/Model_4FGL_J1239.5+0443_daily_bin244.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/865807/ft1_filtered_4FGL_J1239.5+0443_daily_bin244.fits
Spacecraft file(s): /scratch/kocevski/865807/ft2_4FGL_J1239.5+0443_daily_bin244.fits
Exposure map: /scratch/kocevski/865807/expmap_302572801_302832001_4FGL_J1239.5+0443_daily_bin244.fits
Exposure cube: /scratch/kocevski/865807/ltcube_302572801_302832001_4FGL_J1239.5+0443_daily_bin244.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/865807/Model_4FGL_J1239.5+0443_daily_bin244.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) = 7674.93497029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    125.14       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.584       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2522       1.0000         .10000E-03   10000.    
     4 'Prefactor '    94.610       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.890       1.0000         .10000E-03   10000.    
     9 'norm      '    2.6109       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.5315       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10642E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2470       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.4032       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13660E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.4602       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10381E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.327       1.0000         .10000E-03   10000.    
    25 'norm      '    .60905       1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.665       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2184       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .77523       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=   7674.926     FROM MIGRAD    STATUS=CONVERGED    786 CALLS     4111 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     125.19        98.298        .37616E-06    .11527E-04
   2  Prefactor     10.587        9.2223        .49240E-06   -.16677E-04
   3  Prefactor     2.2519        5.7807        .11814E-05   -.17174E-04
   4  Prefactor     94.534        78.886       -.39796E-06   -.42807E-04
   5  Prefactor     .10000E-03    38.181        .10420E-05** at limit **
   6  Prefactor     .10000E-03    10.111        .34140E-07** at limit **
   7  Prefactor     .10000E-03    48.622        .49303E-06** at limit **
   8  Prefactor     21.890        12.025       -.22489E-08   -.33984E-04
   9  norm          2.6108        2.1682        .55879E-07   -.16043E-04
  10  norm          .10000E-03    1.0558        .19938E-06** at limit **
  11  Prefactor     .10000E-03    6.2766       -.13444E-07** at limit **
  12  norm          .10000E-03    15.281        .60280E-07** at limit **
  13  Prefactor     .10000E-03    28.633       -.10271E-07** at limit **
  14  norm          1.5315        .50316        .59997E-08   -.41324E-03
  15  Prefactor     .10000E-03    9.0872       -.25909E-05** at limit **
  16  Prefactor     1.2083        127.24        .65035E-05    .16575E-04
  17  Prefactor     .10000E-03    4.3202        .98611E-07** at limit **
  18  norm          5.4032        1.6862        .16600E-07   -.11257E-03
  19  Prefactor     .10002E-03    4.2904       -.27284E-07** at limit **
  20  Prefactor     .10000E-03    8.0396        .37826E-07** at limit **
  21  Prefactor     8.4616        25.288        .38885E-06   -.22317E-06
  22  Prefactor     .10000E-03    24.727       -.19653E-07** at limit **
  23  norm          .10000E-03    14.701        .18403E-06** at limit **
  24  Prefactor     20.328        13.853       -.15652E-06   -.13878E-04
  25  norm          .60904        .19439        .10010E-08   -.83399E-04
  26  Prefactor     10.666        16.251        .92075E-07   -.67190E-05
  27  Prefactor     .10000E-03    12.822        .21408E-07** at limit **
  28  Prefactor     .10000E-03    9.5124        .14408E-06** at limit **
  29  Prefactor     .10000E-03    17.945        .43739E-06** at limit **
  30  Normalizat    1.2185        .18490       -.22694E-06   -.99944E-04
  31  Prefactor     .77523        .14396       -.90259E-06   -.53481E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 125.19
  Prefactor  = 10.5867
  Prefactor  = 2.25195
  Prefactor  = 94.5339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.8901
  norm       = 2.6108
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.53153
  Prefactor  = 0.0001
  Prefactor  = 1.20829
  Prefactor  = 0.0001
  norm       = 5.40317
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  Prefactor  = 8.46158
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.3278
  norm       = 0.609042
  Prefactor  = 10.6656
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.21848
  Prefactor  = 0.775227
 **********
 **   18 **HESSE 
 **********

 FCN=   7674.926     FROM HESSE     STATUS=OK           626 CALLS     4737 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     125.19        98.413        .17991E-03   -1.3465    
   2  Prefactor     10.587        9.2029        .61577E-03   -1.5057    
   3  Prefactor     2.2519        5.7413        .27378E-03   -1.5408    
   4  Prefactor     94.534        78.776        .20660E-03   -1.3760    
   5  Prefactor     .10000E-03    38.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    50.140        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.890        11.985        .85610E-04   -1.4772    
   9  norm          2.6108        2.1583        .10674E-03   -1.5385    
  10  norm          .10000E-03    1.7330        .17276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.2773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    15.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    28.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.5315        .49838        .33083E-04   -1.5460    
  15  Prefactor     .10000E-03    9.2544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.2083        139.49        .40086E-02   -1.5488    
  17  Prefactor     .10000E-03    4.3517        .17781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.4032        1.6854        .60353E-04   -1.5243    
  19  Prefactor     .10002E-03    49.178        .34823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.0433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.4616        25.330        .13782E-03   -1.5126    
  22  Prefactor     .10000E-03    24.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    14.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     20.328        13.856        .88838E-04   -1.4806    
  25  norm          .60904        .19416        .20744E-04   -1.5552    
  26  Prefactor     10.666        16.232        .12269E-03   -1.5055    
  27  Prefactor     .10000E-03    12.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.5700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    18.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2185        .21691        .26382E-03   -.86034    
  31  Prefactor     .77523        .16664        .26020E-03   -1.0065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29566e-10
Minuit parameter uncertainties:
  1  98.5417
  2  9.20416
  3  5.74273
  4  78.8631
  5  1.19363e-05
  6  3.18731e-06
  7  2.74498e-05
  8  11.9861
  9  2.15831
  10  9.10999e-06
  11  9.40742e-07
  12  8.94961e-06
  13  6.85071e-06
  14  0.498382
  15  1.97464e-05
  16  26.026
  17  5.32226e-06
  18  1.68539
  19  0.00214634
  20  1.37041e-06
  21  25.3626
  22  6.0464e-06
  23  1.84427e-05
  24  13.8578
  25  0.194165
  26  16.2386
  27  3.05132e-06
  28  8.61187e-06
  29  3.37789e-05
  30  0.217068
  31  0.166749
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  5.403e+00  1.685e+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:  7.752e-01  1.667e-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.218e+00  2.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.89
Ra Dec: 189.885 4.728
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.38e-07 +/- 4.31e-08
Energy Flux (Fixed Index): 4.84e-05 +/- 1.51e-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) = 7674.52922398
delta logL = 0.396389175405

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7674.52858427
delta logL = 0.397028880984

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0503       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5402       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1817       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79541       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=   7674.529     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      240 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0499        21.284        .44731E-02    .13696E-03
   2  alpha         2.5401        3.7607        .24252        .33902E-04
   3  Normalizat    1.1815        .19308        .60383E-01    .10918E-04
   4  Prefactor     .79553        .14798        .43657E-01    .19212E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.04991
  alpha      = 2.54006
  Normalizat = 1.18151
  Prefactor  = 0.795529
 **********
 **   18 **HESSE 
 **********

 FCN=   7674.529     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0499        1.6777        .55489E-04   -1.5258    
   2  alpha         2.5401        .36449        .10192E-01    .16023E-01
   3  Normalizat    1.1815        .20967        .26706E-03   -.87176    
   4  Prefactor     .79553        .16710        .25717E-03   -.99893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96891e-10
Minuit parameter uncertainties:
  1  1.67775
  2  0.365791
  3  0.209814
  4  0.167211
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/865807': 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) = 7674.52858367
delta logL = 0.397029483249

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  5.050e+00  1.678e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  2.540e+00  3.658e-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:  7.955e-01  1.672e-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.182e+00  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.65
Ra Dec: 189.885 4.728
Photon Index (Free Index): 2.54 +/- 0.37
Photon Flux (Free Index): 1.69e-07 +/- 5.90e-08
Energy Flux (Free Index): 4.50e-05 +/- 1.38e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/865807/cmap_HighResolution_302572801_302832001_4FGL_J1239.5+0443_daily_bin244.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.38e-07', energy_flux2='4.50e-05', photon_flux_error='4.31e-08', dlogl='3.97e-01', energy_flux='4.84e-05', photon_flux2='1.69e-07', job_status='DONE', time_completed='2021-09-06 03:16:04.730214', photon_index_error2='0.37', photon_index2='2.54', ts='22.89', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='1.38e-05', EG='1.22', time_epoch_completed='1630923364.73', return_code='0', job_id='865807', GAL2='0.80', EG2='1.18', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='5.90e-08', ts2='23.65', photon_index='2.23' WHERE bin_id='244' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:16:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 865807: <4FGL_J1239.5+0443_daily_bin244> in cluster <slac> Done

Job <4FGL_J1239.5+0443_daily_bin244> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 03:00:30 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 03:01:03 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:01:03 2021
Terminated at Mon Sep  6 03:16:05 2021
Results reported at Mon Sep  6 03:16:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin244 189.885 4.7284 302572801 302832001 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 :                                   860.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            935 sec.

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

