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


Performing analysis on: 4FGL_J1239.5+0443_daily_bin181
RA = 189.885, Dec = 4.7284
tmin = 286243201, tmax = 286502401
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='865694', job_status='RUN', time_executed='2021-09-06 03:02:15.867088', time_epoch_executed='1630922535.87' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='181'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/865694

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/865694/ft1_4FGL_J1239.5+0443_daily_bin181.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/865694/ft2_4FGL_J1239.5+0443_daily_bin181.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/865694/ft1_4FGL_J1239.5+0443_daily_bin181.fits outfile=/scratch/kocevski/865694/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin181.fits ra=189.885 dec=4.7284 rad=12.0 tmin=286243201.0 tmax=286502401.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 3.64
user 3.24
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/865694/ft1_filtered_4FGL_J1239.5+0443_daily_bin181.fits" evtable="EVENTS" scfile=/scratch/kocevski/865694/ft2_4FGL_J1239.5+0443_daily_bin181.fits sctable="SC_DATA" outfile=/scratch/kocevski/865694/ltcube_286243201_286502401_4FGL_J1239.5+0443_daily_bin181.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/865694/ft2_4FGL_J1239.5+0443_daily_bin181.fits
.....................!
real 13.57
user 13.11
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/865694/ft1_filtered_4FGL_J1239.5+0443_daily_bin181.fits evtable="EVENTS" scfile=/scratch/kocevski/865694/ft2_4FGL_J1239.5+0443_daily_bin181.fits sctable="SC_DATA" expcube=/scratch/kocevski/865694/ltcube_286243201_286502401_4FGL_J1239.5+0443_daily_bin181.fits outfile=/scratch/kocevski/865694/expmap_286243201_286502401_4FGL_J1239.5+0443_daily_bin181.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/865694/ltcube_286243201_286502401_4FGL_J1239.5+0443_daily_bin181.fits
.....................!
real 191.15
user 185.74
sys 4.72

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/865694/ft1_filtered_4FGL_J1239.5+0443_daily_bin181.fits scfile=/scratch/kocevski/865694/ft2_4FGL_J1239.5+0443_daily_bin181.fits outfile=/scratch/kocevski/865694/cmap_286243201_286502401_4FGL_J1239.5+0443_daily_bin181.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.61
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .74659       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.2055       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.541       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.873       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.9380       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .58266E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.2676       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0210       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.9717       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0418       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.0074       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.146       1.0000         .10000E-03   10000.    
    25 'norm      '    .79596       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3944       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .98163       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=   6115.449     FROM MIGRAD    STATUS=CONVERGED    780 CALLS     4034 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.900        .44083E-06** at limit **
   2  Prefactor     .75969        17.016        .64738E-05    .42460E-05
   3  Prefactor     8.2064        9.8968        .12508E-06   -.78075E-05
   4  Prefactor     .10000E-03    26.691       -.18651E-06** at limit **
   5  Prefactor     20.541        38.967        .58291E-07   -.89311E-05
   6  Prefactor     .10000E-03    15.627       -.54937E-07** at limit **
   7  Prefactor     .10000E-03    14.110       -.73899E-08** at limit **
   8  Prefactor     34.875        15.480        .26649E-07   -.75928E-05
   9  norm          .10000E-03    1.0367        .30465E-08** at limit **
  10  norm          7.9346        5.0041        .40878E-07    .31136E-04
  11  Prefactor     .10000E-03    12.358        .11900E-06** at limit **
  12  norm          .10000E-03    14.026       -.13845E-07** at limit **
  13  Prefactor     .10002E-03    375.38       -.36359E-05** at limit **
  14  norm          3.2677        .86681        .15758E-08   -.67948E-04
  15  Prefactor     .10000E-03    5.3148       -.10875E-07** at limit **
  16  Prefactor     5.0274        22.466        .48629E-06   -.32023E-05
  17  Prefactor     .10000E-03    4.3222       -.15687E-07** at limit **
  18  norm          3.9716        1.7730        .51149E-08   -.17301E-04
  19  Prefactor     7.0422        9.1003        .23504E-06   -.55451E-05
  20  Prefactor     6.9875        33.882        .10032E-06   -.25168E-04
  21  Prefactor     .10000E-03    94.778       -.11844E-06** at limit **
  22  Prefactor     .10000E-03    39.639       -.27894E-06** at limit **
  23  norm          .10000E-03    20.091        .17949E-06** at limit **
  24  Prefactor     11.137        14.113        .48009E-07   -.13453E-04
  25  norm          .79585        .30193        .27502E-08   -.23403E-04
  26  Prefactor     .10000E-03    15.477       -.13540E-06** at limit **
  27  Prefactor     .10000E-03    24.852       -.47458E-07** at limit **
  28  Prefactor     .10000E-03    18.717        .21967E-06** at limit **
  29  Prefactor     .10000E-03    5.8448        .22830E-07** at limit **
  30  Normalizat    1.3945        .24204       -.66203E-06   -.42519E-04
  31  Prefactor     .98144        .18614       -.82647E-08   -.60851E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.759688
  Prefactor  = 8.20644
  Prefactor  = 0.0001
  Prefactor  = 20.5409
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.875
  norm       = 0.0001
  norm       = 7.93458
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100025
  norm       = 3.26771
  Prefactor  = 0.0001
  Prefactor  = 5.02736
  Prefactor  = 0.0001
  norm       = 3.97161
  Prefactor  = 7.04219
  Prefactor  = 6.98745
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.1367
  norm       = 0.795851
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.3945
  Prefactor  = 0.981439
 **********
 **   18 **HESSE 
 **********

 FCN=   6115.449     FROM HESSE     STATUS=OK           618 CALLS     4652 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .75969        17.032        .48957E-03   -1.5534    
   3  Prefactor     8.2064        9.8894        .13996E-03   -1.5135    
   4  Prefactor     .10000E-03    26.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.541        39.051        .88373E-04   -1.4801    
   6  Prefactor     .10000E-03    15.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     34.875        15.471        .67860E-04   -1.4526    
   9  norm          .10000E-03    1.0409        .77670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.9346        5.0184        .12496E-03   -1.5145    
  11  Prefactor     .10000E-03    12.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    14.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    388.32        .21080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.2677        .86877        .33657E-04   -1.5346    
  15  Prefactor     .10000E-03    5.3230        .17597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.0274        22.452        .17946E-03   -1.5259    
  17  Prefactor     .10000E-03    4.3330        .15876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.9716        1.7715        .66810E-04   -1.5309    
  19  Prefactor     7.0422        9.0926        .15117E-03   -1.5177    
  20  Prefactor     6.9875        34.040        .15155E-03   -1.5179    
  21  Prefactor     .10000E-03    95.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    39.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    20.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.137        14.288        .12000E-03   -1.5040    
  25  norm          .79585        .30113        .25548E-04   -1.5530    
  26  Prefactor     .10000E-03    15.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    24.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    18.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    5.8872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3945        .28727        .28794E-03   -.80788    
  31  Prefactor     .98144        .21918        .27490E-03   -.93351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0468e-10
Minuit parameter uncertainties:
  1  0.000277942
  2  7.19594
  3  9.89134
  4  0.000114591
  5  39.0995
  6  2.07917e-05
  7  2.34805e-05
  8  15.4731
  9  3.20298e-07
  10  5.01867
  11  3.91333e-05
  12  2.09132e-05
  13  0.00622817
  14  0.868769
  15  5.69476e-07
  16  21.2615
  17  7.78394e-07
  18  1.77149
  19  9.09433
  20  30.8729
  21  0.000104858
  22  0.000128556
  23  8.1504e-05
  24  14.2923
  25  0.301129
  26  1.26158e-05
  27  2.31649e-05
  28  7.38661e-05
  29  3.91808e-06
  30  0.287606
  31  0.219383
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  3.972e+00  1.771e+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:  9.814e-01  2.194e-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.394e+00  2.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.78
Ra Dec: 189.885 4.728
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 4.53e-08
Energy Flux (Fixed Index): 3.56e-05 +/- 1.59e-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) = 6115.44159223
delta logL = 0.00773347597806

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6115.44142935
delta logL = 0.00789636479931

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9886       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1751       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3977       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97998       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=   6115.441     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      196 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9886        2.3144        .50487E-02    .65801E-03
   2  alpha         2.1751        .51337        .28952       -.12916E-05
   3  Normalizat    1.3977        .22559        .65038E-01    .62327E-05
   4  Prefactor     .97999        .18486        .46016E-01    .11218E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.98855
  alpha      = 2.17507
  Normalizat = 1.39767
  Prefactor  = 0.979987
 **********
 **   18 **HESSE 
 **********

 FCN=   6115.441     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9886        1.7784        .67218E-04   -1.5309    
   2  alpha         2.1751        .41766        .12091E-01   -.13034    
   3  Normalizat    1.3977        .26244        .28769E-03   -.80696    
   4  Prefactor     .97999        .21488        .27508E-03   -.93400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90561e-11
Minuit parameter uncertainties:
  1  1.77842
  2  0.419661
  3  0.262698
  4  0.21507
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/865694': 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) = 6115.44142934
delta logL = 0.00789636637091

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  3.989e+00  1.778e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  2.175e+00  4.197e-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:  9.800e-01  2.151e-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.398e+00  2.627e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.79
Ra Dec: 189.885 4.728
Photon Index (Free Index): 2.18 +/- 0.42
Photon Flux (Free Index): 9.79e-08 +/- 5.18e-08
Energy Flux (Free Index): 3.63e-05 +/- 1.74e-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/865694/cmap_HighResolution_286243201_286502401_4FGL_J1239.5+0443_daily_bin181.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='3.63e-05', photon_flux_error='4.53e-08', dlogl='7.90e-03', energy_flux='3.56e-05', photon_flux2='9.79e-08', job_status='DONE', time_completed='2021-09-06 03:14:57.912589', photon_index_error2='0.42', photon_index2='2.18', ts='11.78', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.74e-05', EG='1.39', time_epoch_completed='1630923297.91', return_code='0', job_id='865694', GAL2='0.98', EG2='1.40', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='5.18e-08', ts2='11.79', photon_index='2.23' WHERE bin_id='181' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:14:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 865694: <4FGL_J1239.5+0443_daily_bin181> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin181 189.885 4.7284 286243201 286502401 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 :                                   746.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            879 sec.

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

