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


Performing analysis on: 4FGL_J1239.5+0443_daily_bin613
RA = 189.885, Dec = 4.7284
tmin = 398217601, tmax = 398476801
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='867954', job_status='RUN', time_executed='2021-09-06 03:10:39.970632', time_epoch_executed='1630923039.97' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='613'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/867954

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/867954/ft1_4FGL_J1239.5+0443_daily_bin613.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/867954/ft2_4FGL_J1239.5+0443_daily_bin613.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/867954/ft1_4FGL_J1239.5+0443_daily_bin613.fits outfile=/scratch/kocevski/867954/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin613.fits ra=189.885 dec=4.7284 rad=12.0 tmin=398217601.0 tmax=398476801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 6.60
user 6.29
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/867954/ft1_filtered_4FGL_J1239.5+0443_daily_bin613.fits" evtable="EVENTS" scfile=/scratch/kocevski/867954/ft2_4FGL_J1239.5+0443_daily_bin613.fits sctable="SC_DATA" outfile=/scratch/kocevski/867954/ltcube_398217601_398476801_4FGL_J1239.5+0443_daily_bin613.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/867954/ft2_4FGL_J1239.5+0443_daily_bin613.fits
.....................!
real 14.04
user 13.61
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/867954/ft1_filtered_4FGL_J1239.5+0443_daily_bin613.fits evtable="EVENTS" scfile=/scratch/kocevski/867954/ft2_4FGL_J1239.5+0443_daily_bin613.fits sctable="SC_DATA" expcube=/scratch/kocevski/867954/ltcube_398217601_398476801_4FGL_J1239.5+0443_daily_bin613.fits outfile=/scratch/kocevski/867954/expmap_398217601_398476801_4FGL_J1239.5+0443_daily_bin613.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/867954/ltcube_398217601_398476801_4FGL_J1239.5+0443_daily_bin613.fits
.....................!
real 193.10
user 187.11
sys 4.90

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/867954/ft1_filtered_4FGL_J1239.5+0443_daily_bin613.fits scfile=/scratch/kocevski/867954/ft2_4FGL_J1239.5+0443_daily_bin613.fits outfile=/scratch/kocevski/867954/cmap_398217601_398476801_4FGL_J1239.5+0443_daily_bin613.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.56
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/867954/ft1_filtered_4FGL_J1239.5+0443_daily_bin613.fits scfile=/scratch/kocevski/867954/ft2_4FGL_J1239.5+0443_daily_bin613.fits outfile=/scratch/kocevski/867954/cmap_HighResolution_398217601_398476801_4FGL_J1239.5+0443_daily_bin613.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    6.7687       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.839       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.107       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .43351       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.174       1.0000         .10000E-03   10000.    
     9 'norm      '    .14937E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .18559E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.7964       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.632       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.756       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.5749       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5337       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.3259       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.2584       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .59587       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.5542       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=   5083.157     FROM MIGRAD    STATUS=CONVERGED    836 CALLS     4154 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.175        .56640E-04** at limit **
   2  Prefactor     6.7685        9.0221        .25860E-06   -.43925E-04
   3  Prefactor     .10000E-03    4.3054       -.51972E-08** at limit **
   4  Prefactor     .10000E-03    28.860       -.18728E-05** at limit **
   5  Prefactor     36.874        38.031        .67632E-05    .15945E-04
   6  Prefactor     22.101        26.018        .28796E-05    .10015E-04
   7  Prefactor     .37328E-01    34.571       -.24427E-05    .10415E-03
   8  Prefactor     10.179        13.477        .80261E-06    .53669E-04
   9  norm          .10000E-03    2.1962       -.23657E-06** at limit **
  10  norm          .10000E-03    2.0052        .89499E-07** at limit **
  11  Prefactor     .10000E-03    15.735       -.14643E-05** at limit **
  12  norm          .10000E-03    31.758       -.18382E-04** at limit **
  13  Prefactor     .10000E-03    117.59        .23512E-04** at limit **
  14  norm          1.7969        .71465        .16365E-08    .27924E-03
  15  Prefactor     18.627        18.847        .79268E-06   -.25698E-04
  16  Prefactor     14.750        33.198        .19011E-05   -.13615E-04
  17  Prefactor     .10000E-03    5.9661        .18291E-07** at limit **
  18  norm          3.5748        2.0064        .63894E-07   -.54256E-04
  19  Prefactor     3.5260        11.163        .27456E-05   -.19742E-03
  20  Prefactor     .10000E-03    11.914        .97126E-06** at limit **
  21  Prefactor     6.2936        99.200        .26661E-04   -.99526E-05
  22  Prefactor     .10000E-03    53.197        .16192E-04** at limit **
  23  norm          .10000E-03    28.183        .13231E-04** at limit **
  24  Prefactor     .10000E-03    13.029        .10393E-05** at limit **
  25  norm          1.2584        .38262       -.13850E-06    .15535E-02
  26  Prefactor     .10000E-03    13.447        .43566E-05** at limit **
  27  Prefactor     .10000E-03    57.639       -.77112E-04** at limit **
  28  Prefactor     .10000E-03    15.702       -.17913E-06** at limit **
  29  Prefactor     .10000E-03    12.770       -.46980E-05** at limit **
  30  Normalizat    .59591        .26963       -.26054E-05   -.72286E-05
  31  Prefactor     1.5544        .22222       -.48897E-06    .10286E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.76847
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.8737
  Prefactor  = 22.1014
  Prefactor  = 0.0373281
  Prefactor  = 10.1792
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.79694
  Prefactor  = 18.6273
  Prefactor  = 14.7501
  Prefactor  = 0.0001
  norm       = 3.57477
  Prefactor  = 3.52604
  Prefactor  = 0.0001
  Prefactor  = 6.2936
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.25844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.595914
  Prefactor  = 1.55441
 **********
 **   18 **HESSE 
 **********

 FCN=   5083.157     FROM HESSE     STATUS=OK           626 CALLS     4780 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.7685        9.0175        .15422E-03   -1.5188    
   3  Prefactor     .10000E-03    4.3189        .14446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     36.874        38.005        .66031E-04   -1.4493    
   6  Prefactor     22.101        26.004        .85191E-04   -1.4767    
   7  Prefactor     .37328E-01    41.062        .11922       -1.5669    
   8  Prefactor     10.179        12.503        .12562E-03   -1.5070    
   9  norm          .10000E-03    4.3500        .18985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    10.112        .18754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    31.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    117.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.7969        .69929        .34972E-04   -1.5440    
  15  Prefactor     18.627        18.810        .92789E-04   -1.4845    
  16  Prefactor     14.750        33.128        .10427E-03   -1.4940    
  17  Prefactor     .10000E-03    5.9884        .17004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.5748        2.0027        .72007E-04   -1.5330    
  19  Prefactor     3.5260        11.095        .21504E-03   -1.5332    
  20  Prefactor     .10000E-03    11.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.2936        100.56        .15959E-03   -1.5206    
  22  Prefactor     .10000E-03    53.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    28.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.2584        .38489        .22114E-04   -1.5484    
  26  Prefactor     .10000E-03    13.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    57.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    15.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    12.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .59591        .30404        .40239E-03   -1.0816    
  31  Prefactor     1.5544        .25623        .22389E-03   -.76027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.27185e-10
Minuit parameter uncertainties:
  1  3.28174e-05
  2  9.01929
  3  9.89177e-06
  4  1.50007e-06
  5  38.0298
  6  26.0171
  7  2.47447
  8  12.5063
  9  6.32765e-05
  10  1.77417e-05
  11  4.50221e-06
  12  1.9629e-05
  13  2.15834e-05
  14  0.699291
  15  18.8156
  16  33.1697
  17  7.32248e-06
  18  2.00278
  19  11.1014
  20  2.50383e-06
  21  50.4139
  22  3.109e-05
  23  5.85005e-05
  24  1.71275e-05
  25  0.384893
  26  9.63106e-06
  27  0.000128964
  28  2.15594e-05
  29  4.51759e-05
  30  0.304893
  31  0.256443
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  3.575e+00  2.003e+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.554e+00  2.564e-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:  5.959e-01  3.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.52
Ra Dec: 189.885 4.728
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 9.14e-08 +/- 5.12e-08
Energy Flux (Fixed Index): 3.20e-05 +/- 1.80e-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) = 5082.92367551
delta logL = 0.232871790919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5082.9083897
delta logL = 0.248157594666

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2526       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8279       1.0000          .0000       5.0000    
     3 'Normalizat'    .62925       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5378       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=   5082.908     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      210 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2506        1.8980        .56141E-02    .55152E-04
   2  alpha         1.8263        .45277        .32546       -.25796E-04
   3  Normalizat    .63003        .25647        .88518E-01    .21818E-04
   4  Prefactor     1.5372        .21918        .50886E-01   -.11507E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.25056
  alpha      = 1.82635
  Normalizat = 0.63003
  Prefactor  = 1.5372
 **********
 **   18 **HESSE 
 **********

 FCN=   5082.908     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2506        2.1147        .72147E-04   -1.5347    
   2  alpha         1.8263        .55645        .12982E-01   -.27283    
   3  Normalizat    .63003        .29743        .39214E-03   -1.0672    
   4  Prefactor     1.5372        .25457        .22495E-03   -.76503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86951e-12
Minuit parameter uncertainties:
  1  2.11473
  2  0.561528
  3  0.298192
  4  0.254781
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/867954': 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) = 5082.90838337
delta logL = 0.248163923718

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  3.251e+00  2.115e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  1.826e+00  5.615e-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.537e+00  2.548e-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:  6.300e-01  2.982e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.02
Ra Dec: 189.885 4.728
Photon Index (Free Index): 1.83 +/- 0.56
Photon Flux (Free Index): 6.40e-08 +/- 5.22e-08
Energy Flux (Free Index): 3.80e-05 +/- 2.55e-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/867954/cmap_HighResolution_398217601_398476801_4FGL_J1239.5+0443_daily_bin613.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.14e-08', energy_flux2='3.80e-05', photon_flux_error='5.12e-08', dlogl='2.48e-01', energy_flux='3.20e-05', photon_flux2='6.40e-08', job_status='DONE', time_completed='2021-09-06 03:22:06.182536', photon_index_error2='0.56', photon_index2='1.83', ts='9.52', fit_tolerance='1e-08', GAL='1.55', photon_index_error='0.00', energy_flux_error2='2.55e-05', EG='0.60', time_epoch_completed='1630923726.18', return_code='0', job_id='867954', GAL2='1.54', EG2='0.63', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='5.22e-08', ts2='10.02', photon_index='2.23' WHERE bin_id='613' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:22:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 867954: <4FGL_J1239.5+0443_daily_bin613> in cluster <slac> Done

Job <4FGL_J1239.5+0443_daily_bin613> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 03:06:10 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 03:06:35 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:06:35 2021
Terminated at Mon Sep  6 03:22:06 2021
Results reported at Mon Sep  6 03:22:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin613 189.885 4.7284 398217601 398476801 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 :                                   682.40 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             258.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            956 sec.

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

