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


Performing analysis on: 4FGL_J1239.5+0443_daily_bin436
RA = 189.885, Dec = 4.7284
tmin = 352339201, tmax = 352598401
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='867724', job_status='RUN', time_executed='2021-09-06 03:06:11.974202', time_epoch_executed='1630922771.97' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='436'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/867724

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/867724/ft1_4FGL_J1239.5+0443_daily_bin436.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/867724/ft2_4FGL_J1239.5+0443_daily_bin436.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/867724/ft1_4FGL_J1239.5+0443_daily_bin436.fits outfile=/scratch/kocevski/867724/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin436.fits ra=189.885 dec=4.7284 rad=12.0 tmin=352339201.0 tmax=352598401.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.74
user 3.27
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/867724/ft2_4FGL_J1239.5+0443_daily_bin436.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/867724/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin436.fits evtable="EVENTS" outfile="/scratch/kocevski/867724/ft1_filtered_4FGL_J1239.5+0443_daily_bin436.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/867724/ft1_filtered_4FGL_J1239.5+0443_daily_bin436.fits" evtable="EVENTS" scfile=/scratch/kocevski/867724/ft2_4FGL_J1239.5+0443_daily_bin436.fits sctable="SC_DATA" outfile=/scratch/kocevski/867724/ltcube_352339201_352598401_4FGL_J1239.5+0443_daily_bin436.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/867724/ft2_4FGL_J1239.5+0443_daily_bin436.fits
.....................!
real 14.61
user 14.09
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/867724/ft1_filtered_4FGL_J1239.5+0443_daily_bin436.fits evtable="EVENTS" scfile=/scratch/kocevski/867724/ft2_4FGL_J1239.5+0443_daily_bin436.fits sctable="SC_DATA" expcube=/scratch/kocevski/867724/ltcube_352339201_352598401_4FGL_J1239.5+0443_daily_bin436.fits outfile=/scratch/kocevski/867724/expmap_352339201_352598401_4FGL_J1239.5+0443_daily_bin436.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/867724/ltcube_352339201_352598401_4FGL_J1239.5+0443_daily_bin436.fits
.....................!
real 191.69
user 185.92
sys 5.23

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/867724/ft1_filtered_4FGL_J1239.5+0443_daily_bin436.fits scfile=/scratch/kocevski/867724/ft2_4FGL_J1239.5+0443_daily_bin436.fits outfile=/scratch/kocevski/867724/cmap_352339201_352598401_4FGL_J1239.5+0443_daily_bin436.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.40
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.640       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.542       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11288E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .29991E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5084       1.0000         .10000E-03   10000.    
     9 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.9400       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    17.274       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9654       1.0000         .10000E-03   10000.    
    14 'norm      '    .56343       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.858       1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.783       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.533       1.0000         .10000E-03   10000.    
    18 'norm      '    1.3894       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.547       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    18.885       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.4825       1.0000         .10000E-03   10000.    
    25 'norm      '    .87661       1.0000         .10000E-03   10000.    
    26 'Prefactor '    39.503       1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.5501       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.4296       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .54336       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=   6630.235     FROM MIGRAD    STATUS=CONVERGED    811 CALLS     4201 TOTAL
                     EDM=   .36E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.647        105.59        .10561E-04   -.67149E-06
   2  Prefactor     16.543        10.620       -.21811E-06   -.49021E-05
   3  Prefactor     .10000E-03    10.779        .63939E-06** at limit **
   4  Prefactor     .10000E-03    28.564       -.55704E-07** at limit **
   5  Prefactor     .10000E-03    220.16        .97431E-07** at limit **
   6  Prefactor     .10000E-03    6.1347        .84825E-08** at limit **
   7  Prefactor     .10000E-03    15.362        .10340E-05** at limit **
   8  Prefactor     1.5206        7.1086       -.13879E-06   -.58526E-04
   9  norm          .10000E-03    1.0288        .67112E-08** at limit **
  10  norm          3.9401        3.8279       -.17859E-06   -.23363E-05
  11  Prefactor     .10000E-03    11.292       -.34602E-06** at limit **
  12  norm          17.276        44.309        .17441E-05   -.18565E-05
  13  Prefactor     4.9632        259.65       -.71753E-05    .55086E-07
  14  norm          .56331        .56510       -.19406E-07   -.36909E-04
  15  Prefactor     18.858        14.182        .12651E-06    .13714E-05
  16  Prefactor     30.781        34.127       -.47157E-06    .49379E-06
  17  Prefactor     10.533        7.7314       -.37269E-07    .62003E-06
  18  norm          1.3893        1.5744        .21138E-07    .22589E-04
  19  Prefactor     17.547        8.0457        .53707E-07   -.61127E-06
  20  Prefactor     .10000E-03    52.300        .95754E-07** at limit **
  21  Prefactor     .10000E-03    13.243        .16431E-05** at limit **
  22  Prefactor     .10000E-03    14.232       -.23068E-05** at limit **
  23  norm          18.885        24.064       -.11345E-06   -.64573E-07
  24  Prefactor     1.4804        5.6046        .12833E-06   -.50770E-04
  25  norm          .87660        .24381        .95051E-08   -.70766E-04
  26  Prefactor     39.506        18.575       -.44400E-06    .78071E-06
  27  Prefactor     9.5402        35.983       -.49165E-05   -.49890E-07
  28  Prefactor     .10000E-03    11.421       -.62166E-06** at limit **
  29  Prefactor     .10000E-03    3.2404        .66901E-08** at limit **
  30  Normalizat    1.4298        .19873       -.11121E-06    .92772E-05
  31  Prefactor     .54328        .14704        .17984E-06   -.78523E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.6466
  Prefactor  = 16.5427
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.52057
  norm       = 0.0001
  norm       = 3.94011
  Prefactor  = 0.0001
  norm       = 17.2762
  Prefactor  = 4.96318
  norm       = 0.563308
  Prefactor  = 18.8581
  Prefactor  = 30.7811
  Prefactor  = 10.5328
  norm       = 1.38931
  Prefactor  = 17.5466
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.8854
  Prefactor  = 1.48043
  norm       = 0.8766
  Prefactor  = 39.5063
  Prefactor  = 9.5402
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.42976
  Prefactor  = 0.543278
 **********
 **   18 **HESSE 
 **********

 FCN=   6630.235     FROM HESSE     STATUS=OK           628 CALLS     4829 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.647        106.08        .77615E-04   -1.4675    
   2  Prefactor     16.543        10.626        .98473E-04   -1.4894    
   3  Prefactor     .10000E-03    11.187        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    228.01        .39657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.1386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.5206        12.445        .17417E-02   -1.5461    
   9  norm          .10000E-03    1.5246        .15283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.9401        3.8388        .12128E-03   -1.5311    
  11  Prefactor     .10000E-03    11.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          17.276        44.661        .96365E-04   -1.4876    
  13  Prefactor     4.9632        259.89        .18048E-03   -1.5262    
  14  norm          .56331        .53056        .52361E-03   -1.5558    
  15  Prefactor     18.858        14.185        .92231E-04   -1.4839    
  16  Prefactor     30.781        34.177        .72216E-04   -1.4598    
  17  Prefactor     10.533        7.7211        .12346E-03   -1.5059    
  18  norm          1.3893        1.5434        .10048E-03   -1.5472    
  19  Prefactor     17.547        8.0459        .95614E-04   -1.4870    
  20  Prefactor     .10000E-03    52.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          18.885        24.066        .92165E-04   -1.4839    
  24  Prefactor     1.4804        10.468        .17622E-02   -1.5465    
  25  norm          .87660        .24421        .20379E-04   -1.5521    
  26  Prefactor     39.506        18.674        .63773E-04   -1.4450    
  27  Prefactor     9.5402        35.993        .12968E-03   -1.5090    
  28  Prefactor     .10000E-03    11.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    3.2442        .14315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.4298        .23581        .24431E-03   -.79772    
  31  Prefactor     .54328        .17112        .29318E-03   -1.1003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41694e-09
Minuit parameter uncertainties:
  1  106.665
  2  10.6275
  3  2.06302e-05
  4  1.36186e-06
  5  0.000885749
  6  1.05431e-07
  7  3.20558e-06
  8  8.70246
  9  2.23057e-06
  10  3.83902
  11  2.36176e-06
  12  44.7473
  13  72.1623
  14  0.530561
  15  14.1879
  16  34.199
  17  7.72187
  18  1.54344
  19  8.04638
  20  4.62728e-06
  21  2.52564e-08
  22  1.84035e-06
  23  24.0784
  24  7.87489
  25  0.244208
  26  18.6769
  27  36.0751
  28  4.48903e-06
  29  1.77899e-07
  30  0.235986
  31  0.171279
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  1.389e+00  1.543e+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:  5.433e-01  1.713e-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.430e+00  2.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.06
Ra Dec: 189.885 4.728
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.55e-08 +/- 3.94e-08
Energy Flux (Fixed Index): 1.25e-05 +/- 1.38e-05

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

Saving results to:
/scratch/kocevski/867724/likelihoodResults_352339201_352598401_4FGL_J1239.5+0443_daily_bin436.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) = 6628.71026433
delta logL = 1.52426773333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6628.67629169
delta logL = 1.55824037699

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0720        9.1737        .10127E-01    .78988E-03
   2  alpha         3.6753        4.3353        .36917        .43924E-04
   3  Normalizat    1.3297        .60004E-01    .56830E-01    .42362E-05
   4  Prefactor     .59162        .47500E-01    .63641E-01    .27277E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.07204
  alpha      = 3.67525
  Normalizat = 1.32972
  Prefactor  = 0.591617
 **********
 **   18 **HESSE 
 **********

 FCN=   6628.676     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .72E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0720        1.2061        .45604E-04   -1.5501    
   2  alpha         3.6753        .90904        .15967E-02    .48940    
   3  Normalizat    1.3297        .22590        .25130E-03   -.82684    
   4  Prefactor     .59162        .17148        .28159E-03   -1.0794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.22748e-15
Minuit parameter uncertainties:
  1  1.20613
  2  0.936939
  3  0.22607
  4  0.171632
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/867724': 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) = 6628.67628913
delta logL = 1.55824293423

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  1.072e+00  1.206e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  3.675e+00  9.369e-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.916e-01  1.716e-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.330e+00  2.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.35
Ra Dec: 189.885 4.728
Photon Index (Free Index): 3.68 +/- 0.94
Photon Flux (Free Index): 1.24e-07 +/- 7.40e-08
Energy Flux (Free Index): 2.05e-05 +/- 1.18e-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/867724/cmap_HighResolution_352339201_352598401_4FGL_J1239.5+0443_daily_bin436.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.15e-05', comment='SUCCESS', photon_flux='3.55e-08', energy_flux2='2.05e-05', photon_flux_error='3.94e-08', dlogl='1.56e+00', energy_flux='1.25e-05', photon_flux2='1.24e-07', job_status='DONE', time_completed='2021-09-06 03:21:09.963703', photon_index_error2='0.94', photon_index2='3.68', ts='1.06', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.18e-05', EG='1.43', time_epoch_completed='1630923669.96', return_code='0', job_id='867724', GAL2='0.59', EG2='1.33', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='7.40e-08', ts2='4.35', photon_index='2.23' WHERE bin_id='436' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:21:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 867724: <4FGL_J1239.5+0443_daily_bin436> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin436 189.885 4.7284 352339201 352598401 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 :                                   895.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            917 sec.

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

