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


Performing analysis on: 4FGL_J1239.5+0443_daily_bin960
RA = 189.885, Dec = 4.7284
tmin = 488160001, tmax = 488419201
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='872715', job_status='RUN', time_executed='2021-09-06 03:18:11.138976', time_epoch_executed='1630923491.14' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='960'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/872715

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/872715/ft1_4FGL_J1239.5+0443_daily_bin960.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/872715/ft2_4FGL_J1239.5+0443_daily_bin960.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/872715/ft1_4FGL_J1239.5+0443_daily_bin960.fits outfile=/scratch/kocevski/872715/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin960.fits ra=189.885 dec=4.7284 rad=12.0 tmin=488160001.0 tmax=488419201.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 7.19
user 5.11
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/872715/ft2_4FGL_J1239.5+0443_daily_bin960.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/872715/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin960.fits evtable="EVENTS" outfile="/scratch/kocevski/872715/ft1_filtered_4FGL_J1239.5+0443_daily_bin960.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.92
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/872715/ft1_filtered_4FGL_J1239.5+0443_daily_bin960.fits" evtable="EVENTS" scfile=/scratch/kocevski/872715/ft2_4FGL_J1239.5+0443_daily_bin960.fits sctable="SC_DATA" outfile=/scratch/kocevski/872715/ltcube_488160001_488419201_4FGL_J1239.5+0443_daily_bin960.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/872715/ft2_4FGL_J1239.5+0443_daily_bin960.fits
.....................!
real 13.67
user 12.76
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/872715/ft1_filtered_4FGL_J1239.5+0443_daily_bin960.fits evtable="EVENTS" scfile=/scratch/kocevski/872715/ft2_4FGL_J1239.5+0443_daily_bin960.fits sctable="SC_DATA" expcube=/scratch/kocevski/872715/ltcube_488160001_488419201_4FGL_J1239.5+0443_daily_bin960.fits outfile=/scratch/kocevski/872715/expmap_488160001_488419201_4FGL_J1239.5+0443_daily_bin960.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/872715/ltcube_488160001_488419201_4FGL_J1239.5+0443_daily_bin960.fits
.....................!
real 192.34
user 186.38
sys 4.70

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/872715/ft1_filtered_4FGL_J1239.5+0443_daily_bin960.fits scfile=/scratch/kocevski/872715/ft2_4FGL_J1239.5+0443_daily_bin960.fits outfile=/scratch/kocevski/872715/cmap_488160001_488419201_4FGL_J1239.5+0443_daily_bin960.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.74
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/872715/ft1_filtered_4FGL_J1239.5+0443_daily_bin960.fits scfile=/scratch/kocevski/872715/ft2_4FGL_J1239.5+0443_daily_bin960.fits outfile=/scratch/kocevski/872715/cmap_HighResolution_488160001_488419201_4FGL_J1239.5+0443_daily_bin960.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.77
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.298       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.743       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .71354E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    35.123       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.5280       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.6345       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7539       1.0000         .10000E-03   10000.    
    18 'norm      '    3.3438       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    48.213       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    40.522       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .57270       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.6939       1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.005       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0166       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2909       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=   5019.063     FROM MIGRAD    STATUS=CONVERGED    811 CALLS     4201 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.296        119.70       -.30711E-05   -.38886E-05
   2  Prefactor     18.743        13.925        .18584E-06   -.48128E-04
   3  Prefactor     .10000E-03    10.555        .28786E-06** at limit **
   4  Prefactor     .10000E-03    83.673        .26172E-04** at limit **
   5  Prefactor     .10000E-03    18.427        .57949E-06** at limit **
   6  Prefactor     .10004E-03    19.162       -.18953E-06** at limit **
   7  Prefactor     .10000E-03    10.574       -.78090E-06** at limit **
   8  Prefactor     .10000E-03    26.239       -.65957E-05** at limit **
   9  norm          .10000E-03    1.4135        .65358E-07** at limit **
  10  norm          .10000E-03    3.0488        .32641E-06** at limit **
  11  Prefactor     .10000E-03    28.510        .70520E-05** at limit **
  12  norm          35.120        42.720       -.98586E-06   -.16143E-04
  13  Prefactor     .10000E-03    156.32       -.12975E-04** at limit **
  14  norm          1.5280        .72843        .66489E-07   -.10245E-03
  15  Prefactor     .10000E-03    5.4474        .40032E-08** at limit **
  16  Prefactor     8.6356        34.194        .16450E-05   -.15153E-04
  17  Prefactor     5.7542        5.8862        .32668E-06    .13698E-03
  18  norm          3.3440        2.3688        .11013E-06   -.29347E-03
  19  Prefactor     .10000E-03    3.5576       -.15266E-08** at limit **
  20  Prefactor     .10000E-03    62.732       -.19555E-04** at limit **
  21  Prefactor     48.212        43.937       -.75510E-06   -.15771E-04
  22  Prefactor     .10000E-03    42.201        .36151E-05** at limit **
  23  norm          40.522        32.005       -.77641E-06    .87526E-05
  24  Prefactor     .10000E-03    9.4716       -.41065E-06** at limit **
  25  norm          .57270        .31408       -.37603E-06   -.85452E-03
  26  Prefactor     9.6927        16.119        .38682E-06   -.39118E-04
  27  Prefactor     13.041        161.22        .80063E-04    .33994E-05
  28  Prefactor     .10000E-03    9.9435        .89346E-06** at limit **
  29  Prefactor     .10000E-03    6.9881        .23626E-07** at limit **
  30  Normalizat    1.0165        .25496       -.17911E-05   -.73802E-05
  31  Prefactor     1.2909        .20678       -.92889E-06    .61865E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.2959
  Prefactor  = 18.7434
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 35.1203
  Prefactor  = 0.0001
  norm       = 1.52805
  Prefactor  = 0.0001
  Prefactor  = 8.63565
  Prefactor  = 5.75416
  norm       = 3.34396
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.2116
  Prefactor  = 0.0001
  norm       = 40.5221
  Prefactor  = 0.0001
  norm       = 0.572699
  Prefactor  = 9.69272
  Prefactor  = 13.0412
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.01654
  Prefactor  = 1.29088
 **********
 **   18 **HESSE 
 **********

 FCN=   5019.063     FROM HESSE     STATUS=OK           614 CALLS     4815 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.296        120.06        .72790E-04   -1.4607    
   2  Prefactor     18.743        13.928        .92512E-04   -1.4842    
   3  Prefactor     .10000E-03    10.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    83.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10004E-03    85.359        .60060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.906        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.4323        .82215E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.7775        .23220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          35.120        42.331        .67620E-04   -1.4522    
  13  Prefactor     .10000E-03    156.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.5280        .71853        .38327E-04   -1.5461    
  15  Prefactor     .10000E-03    5.4509        .16144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.6356        34.168        .13642E-03   -1.5120    
  17  Prefactor     5.7542        5.8913        .16744E-03   -1.5228    
  18  norm          3.3440        2.3568        .85787E-04   -1.5342    
  19  Prefactor     .10000E-03    3.5640        .13049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    63.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     48.212        43.991        .57750E-04   -1.4318    
  22  Prefactor     .10000E-03    42.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          40.522        31.994        .62969E-04   -1.4434    
  24  Prefactor     .10000E-03    9.5467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .57270        .31386        .26701E-04   -1.5557    
  26  Prefactor     9.6927        16.148        .12871E-03   -1.5085    
  27  Prefactor     13.041        160.84        .11107E-03   -1.4986    
  28  Prefactor     .10000E-03    9.9648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    7.0114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0165        .30512        .31670E-03   -.92478    
  31  Prefactor     1.2909        .24957        .24003E-03   -.83579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.66639e-10
Minuit parameter uncertainties:
  1  121.038
  2  13.9309
  3  2.89855e-05
  4  2.23316e-05
  5  1.61091e-05
  6  0.00365661
  7  4.54381e-06
  8  0.00019476
  9  6.47606e-06
  10  7.95503e-05
  11  2.14699e-05
  12  42.3674
  13  5.47791e-05
  14  0.718537
  15  2.30197e-06
  16  34.2454
  17  5.89186
  18  2.35683
  19  2.3797e-07
  20  0.000153241
  21  44.0208
  22  3.80389e-05
  23  32.0079
  24  2.01077e-05
  25  0.313857
  26  16.1557
  27  91.905
  28  2.37935e-05
  29  1.11836e-05
  30  0.305643
  31  0.249796
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  3.344e+00  2.357e+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.291e+00  2.498e-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.017e+00  3.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.97
Ra Dec: 189.885 4.728
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 8.55e-08 +/- 6.02e-08
Energy Flux (Fixed Index): 3.00e-05 +/- 2.11e-05

TS (Fixed Index): 2.97
Ra Dec: 189.885 4.728
Photon Flux Upper Limit: 2.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/872715/likelihoodResults_488160001_488419201_4FGL_J1239.5+0443_daily_bin960.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) = 5018.71953251
delta logL = 0.343005525069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5018.71292497
delta logL = 0.349613059628

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9472       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7277       1.0000          .0000       5.0000    
     3 'Normalizat'    .97716       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3128       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=   5018.713     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      262 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9456        44.718        .59143E-02    .36489E-03
   2  alpha         2.7273        3.4796        .32483        .29047E-04
   3  Normalizat    .97753        .11197        .72780E-01   -.10958E-04
   4  Prefactor     1.3128        .10884        .53887E-01   -.26122E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.9456
  alpha      = 2.72734
  Normalizat = 0.977526
  Prefactor  = 1.31282
 **********
 **   18 **HESSE 
 **********

 FCN=   5018.713     FROM HESSE     STATUS=OK            33 CALLS      295 TOTAL
                     EDM=   .60E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9456        2.2970        .72324E-04   -1.5365    
   2  alpha         2.7273        .65060        .13366E-01    .91061E-01
   3  Normalizat    .97753        .29804        .32203E-03   -.93787    
   4  Prefactor     1.3128        .24922        .23825E-03   -.82927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.98698e-12
Minuit parameter uncertainties:
  1  2.29708
  2  0.658246
  3  0.298547
  4  0.249446
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/872715': 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) = 5018.71292146
delta logL = 0.349616569532

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  2.946e+00  2.297e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  2.727e+00  6.582e-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.313e+00  2.494e-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:  9.775e-01  2.985e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.71
Ra Dec: 189.885 4.728
Photon Index (Free Index): 2.73 +/- 0.66
Photon Flux (Free Index): 1.18e-07 +/- 7.78e-08
Energy Flux (Free Index): 2.78e-05 +/- 1.83e-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/872715/cmap_HighResolution_488160001_488419201_4FGL_J1239.5+0443_daily_bin960.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.26e-05', comment='SUCCESS', photon_flux='8.55e-08', energy_flux2='2.78e-05', photon_flux_error='6.02e-08', dlogl='3.50e-01', energy_flux='3.00e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-06 03:31:15.047684', photon_index_error2='0.66', photon_index2='2.73', ts='2.97', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', photon_flux_upper_limit='2.07e-07', energy_flux_error2='1.83e-05', EG='1.02', time_epoch_completed='1630924275.05', return_code='0', job_id='872715', GAL2='1.31', EG2='0.98', return_code2='0', energy_flux_error='2.11e-05', photon_flux_error2='7.78e-08', ts2='3.71', photon_index='2.23' WHERE bin_id='960' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:31:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 872715: <4FGL_J1239.5+0443_daily_bin960> in cluster <slac> Done

Job <4FGL_J1239.5+0443_daily_bin960> 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) <bullet0244>, 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:31:15 2021
Results reported at Mon Sep  6 03:31:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin960 189.885 4.7284 488160001 488419201 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 :                                   762.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            939 sec.

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

