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


Performing analysis on: 4FGL_J1239.5+0443_daily_bin278
RA = 189.885, Dec = 4.7284
tmin = 311385601, tmax = 311644801
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='865920', job_status='RUN', time_executed='2021-09-06 03:01:33.687100', time_epoch_executed='1630922493.69' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='278'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/865920

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/865920/ft1_4FGL_J1239.5+0443_daily_bin278.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/865920/ft2_4FGL_J1239.5+0443_daily_bin278.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/865920/ft1_4FGL_J1239.5+0443_daily_bin278.fits outfile=/scratch/kocevski/865920/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin278.fits ra=189.885 dec=4.7284 rad=12.0 tmin=311385601.0 tmax=311644801.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.42
user 3.28
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/865920/ft1_filtered_4FGL_J1239.5+0443_daily_bin278.fits evtable="EVENTS" scfile=/scratch/kocevski/865920/ft2_4FGL_J1239.5+0443_daily_bin278.fits sctable="SC_DATA" expcube=/scratch/kocevski/865920/ltcube_311385601_311644801_4FGL_J1239.5+0443_daily_bin278.fits outfile=/scratch/kocevski/865920/expmap_311385601_311644801_4FGL_J1239.5+0443_daily_bin278.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/865920/ltcube_311385601_311644801_4FGL_J1239.5+0443_daily_bin278.fits
.....................!
real 190.32
user 184.42
sys 5.24

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/865920/ft1_filtered_4FGL_J1239.5+0443_daily_bin278.fits scfile=/scratch/kocevski/865920/ft2_4FGL_J1239.5+0443_daily_bin278.fits outfile=/scratch/kocevski/865920/cmap_311385601_311644801_4FGL_J1239.5+0443_daily_bin278.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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/865920/ft1_filtered_4FGL_J1239.5+0443_daily_bin278.fits scfile=/scratch/kocevski/865920/ft2_4FGL_J1239.5+0443_daily_bin278.fits outfile=/scratch/kocevski/865920/cmap_HighResolution_311385601_311644801_4FGL_J1239.5+0443_daily_bin278.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.58
user 0.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.793       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.592       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    52.695       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.5393       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.1628       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.229       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.6144       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.4672       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.148       1.0000         .10000E-03   10000.    
    23 'norm      '    3.0100       1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.131       1.0000         .10000E-03   10000.    
    25 'norm      '    2.0047       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.3716       1.0000         .10000E-03   10000.    
    27 'Prefactor '    67.281       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    10.777       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.6628       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .49322       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=   7802.612     FROM MIGRAD    STATUS=CONVERGED    807 CALLS     4180 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.641        98.909       -.16073E-03    .26608E-05
   2  Prefactor     12.590        10.199       -.64866E-06    .62532E-05
   3  Prefactor     .10000E-03    2.0231       -.24658E-06** at limit **
   4  Prefactor     .10000E-03    39.319        .40954E-05** at limit **
   5  Prefactor     52.684        40.157        .24945E-04    .30873E-04
   6  Prefactor     .10000E-03    6.1711       -.13139E-06** at limit **
   7  Prefactor     .10000E-03    16.151       -.42529E-06** at limit **
   8  Prefactor     .10000E-03    2.5348       -.13849E-06** at limit **
   9  norm          .10000E-03    .41114        .39987E-07** at limit **
  10  norm          .10000E-03    1.4222        .10427E-06** at limit **
  11  Prefactor     .10000E-03    14.590        .10143E-05** at limit **
  12  norm          .10000E-03    12.528       -.85843E-07** at limit **
  13  Prefactor     .10000E-03    50.317        .36247E-05** at limit **
  14  norm          2.5391        .61456       -.85557E-07   -.42413E-03
  15  Prefactor     8.1628        9.9146       -.17791E-05   -.61689E-04
  16  Prefactor     25.222        33.628        .49643E-05   -.18345E-05
  17  Prefactor     .10000E-03    2.2502       -.24929E-06** at limit **
  18  norm          3.6139        1.8638       -.94792E-07   -.41700E-03
  19  Prefactor     9.4644        7.7037        .51970E-05   -.95191E-04
  20  Prefactor     .10000E-03    43.983       -.30323E-05** at limit **
  21  Prefactor     .10000E-03    45.373       -.52226E-05** at limit **
  22  Prefactor     11.942        82.757        .98990E-05   -.38585E-05
  23  norm          3.0100        15.782        .30307E-06   -.11802E-03
  24  Prefactor     19.153        20.255        .16810E-05   -.15828E-04
  25  norm          2.0046        .31876       -.20457E-08    .60920E-04
  26  Prefactor     7.3613        18.042       -.57241E-05   -.62090E-04
  27  Prefactor     67.271        65.428       -.74622E-05   -.20940E-05
  28  Prefactor     .10000E-03    3.9675        .13904E-07** at limit **
  29  Prefactor     10.774        13.064       -.17212E-06   -.47369E-04
  30  Normalizat    1.6632        .21242       -.42104E-06    .51745E-04
  31  Prefactor     .49301        .15359        .62176E-06   -.58197E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.6412
  Prefactor  = 12.5903
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.6842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.53907
  Prefactor  = 8.16284
  Prefactor  = 25.2215
  Prefactor  = 0.0001
  norm       = 3.61389
  Prefactor  = 9.46443
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9423
  norm       = 3.01004
  Prefactor  = 19.1534
  norm       = 2.00459
  Prefactor  = 7.36132
  Prefactor  = 67.2714
  Prefactor  = 0.0001
  Prefactor  = 10.7743
  Normalizat = 1.66317
  Prefactor  = 0.49301
 **********
 **   18 **HESSE 
 **********

 FCN=   7802.612     FROM HESSE     STATUS=OK           618 CALLS     4798 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.641        99.461        .82120E-04   -1.4735    
   2  Prefactor     12.590        10.203        .11288E-03   -1.4998    
   3  Prefactor     .10000E-03    2.0261        .12269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    39.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     52.684        40.385        .55252E-04   -1.4255    
   6  Prefactor     .10000E-03    6.1815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.5402        .13733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .41207        .55307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.4507        .10271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    12.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    50.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.5391        .61783        .31526E-04   -1.5389    
  15  Prefactor     8.1628        9.8989        .14033E-03   -1.5136    
  16  Prefactor     25.222        33.682        .79753E-04   -1.4703    
  17  Prefactor     .10000E-03    2.2549        .12939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.6139        1.8649        .80638E-04   -1.5328    
  19  Prefactor     9.4644        7.6921        .13025E-03   -1.5093    
  20  Prefactor     .10000E-03    44.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    45.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.942        81.723        .11493E-03   -1.5017    
  23  norm          3.0100        15.705        .23394E-03   -1.5361    
  24  Prefactor     19.153        20.213        .91571E-04   -1.4832    
  25  norm          2.0046        .31961        .18749E-04   -1.5425    
  26  Prefactor     7.3613        17.972        .14772E-03   -1.5165    
  27  Prefactor     67.271        65.668        .48932E-04   -1.4066    
  28  Prefactor     .10000E-03    3.9700        .17184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     10.774        13.089        .12205E-03   -1.5051    
  30  Normalizat    1.6632        .25229        .25535E-03   -.73291    
  31  Prefactor     .49301        .17618        .33913E-03   -1.1230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63838e-10
Minuit parameter uncertainties:
  1  97.2595
  2  10.2043
  3  1.95636e-05
  4  6.12878e-05
  5  40.406
  6  1.30781e-05
  7  4.97012e-05
  8  6.38462e-06
  9  8.39526e-07
  10  1.14519e-05
  11  8.22968e-07
  12  6.11394e-06
  13  3.29742e-06
  14  0.617831
  15  9.90089
  16  33.7072
  17  1.32323e-05
  18  1.86492
  19  7.6929
  20  0.000187055
  21  4.75257e-05
  22  62.6033
  23  13.7566
  24  20.2205
  25  0.319606
  26  17.9855
  27  65.7384
  28  1.41735e-06
  29  13.0921
  30  0.252482
  31  0.176373
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  3.614e+00  1.865e+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:  4.930e-01  1.764e-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.663e+00  2.525e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.92
Ra Dec: 189.885 4.728
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 9.24e-08 +/- 4.76e-08
Energy Flux (Fixed Index): 3.24e-05 +/- 1.67e-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) = 7801.15770536
delta logL = 1.45455832435

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7801.14378917
delta logL = 1.4684745171

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2587       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9659       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5847       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52953       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=   7801.144     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      269 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2576        20.392        .56087E-02    .43379E-03
   2  alpha         2.9656        3.9805        .26770        .51381E-04
   3  Normalizat    1.5848        .94327E-01    .58742E-01    .42156E-05
   4  Prefactor     .52952        .79456E-01    .74015E-01    .41726E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.25759
  alpha      = 2.96558
  Normalizat = 1.5848
  Prefactor  = 0.529525
 **********
 **   18 **HESSE 
 **********

 FCN=   7801.144     FROM HESSE     STATUS=OK            33 CALLS      302 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2576        1.6930        .59875E-04   -1.5347    
   2  alpha         2.9656        .45139        .11269E-01    .18732    
   3  Normalizat    1.5848        .23091        .25976E-03   -.75422    
   4  Prefactor     .52952        .17468        .32773E-03   -1.1064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40235e-12
Minuit parameter uncertainties:
  1  1.69301
  2  0.453971
  3  0.231063
  4  0.174856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/865920': 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) = 7801.14378786
delta logL = 1.46847582749

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  3.258e+00  1.693e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  2.966e+00  4.540e-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:  5.295e-01  1.749e-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.585e+00  2.311e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.95
Ra Dec: 189.885 4.728
Photon Index (Free Index): 2.97 +/- 0.45
Photon Flux (Free Index): 1.67e-07 +/- 7.17e-08
Energy Flux (Free Index): 3.48e-05 +/- 1.41e-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/865920/cmap_HighResolution_311385601_311644801_4FGL_J1239.5+0443_daily_bin278.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.24e-08', energy_flux2='3.48e-05', photon_flux_error='4.76e-08', dlogl='1.47e+00', energy_flux='3.24e-05', photon_flux2='1.67e-07', job_status='DONE', time_completed='2021-09-06 03:16:41.213990', photon_index_error2='0.45', photon_index2='2.97', ts='6.92', fit_tolerance='1e-08', GAL='0.49', photon_index_error='0.00', energy_flux_error2='1.41e-05', EG='1.66', time_epoch_completed='1630923401.21', return_code='0', job_id='865920', GAL2='0.53', EG2='1.58', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='7.17e-08', ts2='9.95', photon_index='2.23' WHERE bin_id='278' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:16:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 865920: <4FGL_J1239.5+0443_daily_bin278> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin278 189.885 4.7284 311385601 311644801 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 :                                   898.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            967 sec.

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

