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


Performing analysis on: 4FGL_J1239.5+0443_daily_bin415
RA = 189.885, Dec = 4.7284
tmin = 346896001, tmax = 347155201
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='866201', job_status='RUN', time_executed='2021-09-06 03:03:52.022021', time_epoch_executed='1630922632.02' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='415'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/866201

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/866201/ft1_4FGL_J1239.5+0443_daily_bin415.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/866201/ft2_4FGL_J1239.5+0443_daily_bin415.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/866201/ft1_4FGL_J1239.5+0443_daily_bin415.fits outfile=/scratch/kocevski/866201/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin415.fits ra=189.885 dec=4.7284 rad=12.0 tmin=346896001.0 tmax=347155201.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.56
user 3.21
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/866201/ft1_filtered_4FGL_J1239.5+0443_daily_bin415.fits evtable="EVENTS" scfile=/scratch/kocevski/866201/ft2_4FGL_J1239.5+0443_daily_bin415.fits sctable="SC_DATA" expcube=/scratch/kocevski/866201/ltcube_346896001_347155201_4FGL_J1239.5+0443_daily_bin415.fits outfile=/scratch/kocevski/866201/expmap_346896001_347155201_4FGL_J1239.5+0443_daily_bin415.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/866201/ltcube_346896001_347155201_4FGL_J1239.5+0443_daily_bin415.fits
.....................!
real 192.75
user 187.45
sys 4.88

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/866201/ft1_filtered_4FGL_J1239.5+0443_daily_bin415.fits scfile=/scratch/kocevski/866201/ft2_4FGL_J1239.5+0443_daily_bin415.fits outfile=/scratch/kocevski/866201/cmap_346896001_347155201_4FGL_J1239.5+0443_daily_bin415.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.55
user 0.40
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    64.543       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9965       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.041       1.0000         .10000E-03   10000.    
     9 'norm      '    .12370E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.4064       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15614E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .10844E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10395E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .63954       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10597E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.334       1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.153       1.0000         .10000E-03   10000.    
    18 'norm      '    4.4764       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10316E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11283E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .43215E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    11.361       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.7110       1.0000         .10000E-03   10000.    
    25 'norm      '    .77949       1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.720       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.3227       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3148       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .76580       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=   6407.960     FROM MIGRAD    STATUS=CONVERGED    810 CALLS     4116 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.998       -.87151E-05** at limit **
   2  Prefactor     .10000E-03    11.072        .47215E-05** at limit **
   3  Prefactor     .10000E-03    4.1642        .22925E-07** at limit **
   4  Prefactor     64.560        75.083        .15416E-04   -.26269E-04
   5  Prefactor     .10000E-03    9.3472       -.49542E-06** at limit **
   6  Prefactor     5.9963        14.306       -.17317E-06   -.51369E-04
   7  Prefactor     .10000E-03    9.2721        .17475E-05** at limit **
   8  Prefactor     11.033        9.9719        .69849E-08   -.53298E-04
   9  norm          .10000E-03    1.2483        .29669E-07** at limit **
  10  norm          1.4047        3.3895       -.77833E-06   -.11432E-02
  11  Prefactor     .10194E-03    20.671        .28339E-05** at limit **
  12  norm          .10000E-03    16.740       -.38646E-05** at limit **
  13  Prefactor     .10000E-03    43.675        .28527E-05** at limit **
  14  norm          .64054        .62306        .45276E-07   -.10119E-02
  15  Prefactor     .10000E-03    5.1762        .46831E-08** at limit **
  16  Prefactor     13.346        15.339       -.70067E-06   -.89167E-05
  17  Prefactor     30.149        12.926        .20913E-07   -.15535E-04
  18  norm          4.4766        1.8559        .16844E-07   -.16151E-03
  19  Prefactor     .10000E-03    4.8038        .30461E-07** at limit **
  20  Prefactor     .10000E-03    18.889        .12834E-05** at limit **
  21  Prefactor     .10000E-03    10.443       -.51221E-05** at limit **
  22  Prefactor     .10000E-03    222.95       -.22589E-04** at limit **
  23  norm          11.367        18.576       -.20045E-05   -.16058E-04
  24  Prefactor     8.7148        15.246        .10370E-05    .71645E-04
  25  norm          .77952        .24926        .15485E-07   -.11838E-03
  26  Prefactor     12.728        14.875       -.39912E-06   -.99514E-05
  27  Prefactor     .10000E-03    23.290        .80863E-05** at limit **
  28  Prefactor     3.3249        21.351       -.12393E-05   -.71285E-04
  29  Prefactor     .10000E-03    3.6282        .28632E-07** at limit **
  30  Normalizat    1.3143        .20647       -.53590E-06   -.47726E-04
  31  Prefactor     .76605        .15704        .10208E-06   -.11529E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 64.5597
  Prefactor  = 0.0001
  Prefactor  = 5.99627
  Prefactor  = 0.0001
  Prefactor  = 11.0333
  norm       = 0.0001
  norm       = 1.40468
  Prefactor  = 0.000101944
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.640537
  Prefactor  = 0.0001
  Prefactor  = 13.3459
  Prefactor  = 30.1494
  norm       = 4.47661
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.3666
  Prefactor  = 8.71484
  norm       = 0.779515
  Prefactor  = 12.7281
  Prefactor  = 0.0001
  Prefactor  = 3.32485
  Prefactor  = 0.0001
  Normalizat = 1.31432
  Prefactor  = 0.766047
 **********
 **   18 **HESSE 
 **********

 FCN=   6407.960     FROM HESSE     STATUS=OK           622 CALLS     4738 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.2308        .15951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     64.560        74.451        .49952E-04   -1.4099    
   5  Prefactor     .10000E-03    9.3501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.9963        14.285        .16397E-03   -1.5218    
   7  Prefactor     .10000E-03    9.2797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.033        9.5188        .12057E-03   -1.5044    
   9  norm          .10000E-03    6.5938        .16500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4047        3.3167        .19889E-03   -1.5471    
  11  Prefactor     .10194E-03    207.56        .69777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    16.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    43.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .64054        .58011        .51766E-04   -1.5548    
  15  Prefactor     .10000E-03    5.1964        .17783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.346        15.350        .10969E-03   -1.4977    
  17  Prefactor     30.149        12.883        .72965E-04   -1.4609    
  18  norm          4.4766        1.8489        .65845E-04   -1.5285    
  19  Prefactor     .10000E-03    4.8362        .17125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    224.70        .19397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          11.367        18.579        .11886E-03   -1.5034    
  24  Prefactor     8.7148        15.261        .13581E-03   -1.5117    
  25  norm          .77952        .24890        .21835E-04   -1.5531    
  26  Prefactor     12.728        14.828        .11232E-03   -1.4994    
  27  Prefactor     .10000E-03    23.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.3249        21.407        .22207E-03   -1.5343    
  29  Prefactor     .10000E-03    3.6328        .14891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3143        .24233        .25614E-03   -.83140    
  31  Prefactor     .76605        .18298        .26255E-03   -1.0099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.48565e-09
Minuit parameter uncertainties:
  1  7.06486e-06
  2  0.000126063
  3  1.77519e-06
  4  74.5591
  5  6.49783e-07
  6  14.2936
  7  3.64204e-06
  8  9.5201
  9  2.02071e-05
  10  3.3171
  11  0.0403196
  12  1.73409e-05
  13  1.59747e-07
  14  0.580113
  15  6.99671e-07
  16  15.3546
  17  12.8843
  18  1.8489
  19  9.63965e-06
  20  8.35059e-06
  21  1.38147e-06
  22  7.5229e-05
  23  18.5889
  24  15.2673
  25  0.248901
  26  14.8324
  27  3.00853e-06
  28  16.8817
  29  6.04192e-07
  30  0.242543
  31  0.18312
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  4.477e+00  1.849e+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:  7.660e-01  1.831e-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.314e+00  2.425e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.81
Ra Dec: 189.885 4.728
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.14e-07 +/- 4.72e-08
Energy Flux (Fixed Index): 4.01e-05 +/- 1.66e-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) = 6407.85860911
delta logL = 0.101322400863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6407.85655061
delta logL = 0.103380906126

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4734       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4538       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2845       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78141       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=   6407.857     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      231 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4721        29.897        .47593E-02    .14392E-03
   2  alpha         2.4533        3.4468        .32374        .21200E-04
   3  Normalizat    1.2846        .20921        .58441E-01   -.10892E-05
   4  Prefactor     .78138        .13576        .43475E-01    .83020E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.4721
  alpha      = 2.45333
  Normalizat = 1.28456
  Prefactor  = 0.781379
 **********
 **   18 **HESSE 
 **********

 FCN=   6407.857     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .73E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4721        1.7777        .62255E-04   -1.5285    
   2  alpha         2.4533        .49602        .12550E-01   -.18670E-01
   3  Normalizat    1.2846        .23322        .25845E-03   -.84028    
   4  Prefactor     .78138        .18307        .26019E-03   -1.0042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.28298e-13
Minuit parameter uncertainties:
  1  1.77774
  2  0.499339
  3  0.233414
  4  0.183209
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/866201': 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) = 6407.8565497
delta logL = 0.103381815795

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  4.472e+00  1.778e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  2.453e+00  4.993e-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:  7.814e-01  1.832e-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.285e+00  2.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.97
Ra Dec: 189.885 4.728
Photon Index (Free Index): 2.45 +/- 0.50
Photon Flux (Free Index): 1.38e-07 +/- 7.27e-08
Energy Flux (Free Index): 3.94e-05 +/- 1.54e-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/866201/cmap_HighResolution_346896001_347155201_4FGL_J1239.5+0443_daily_bin415.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.14e-07', energy_flux2='3.94e-05', photon_flux_error='4.72e-08', dlogl='1.03e-01', energy_flux='4.01e-05', photon_flux2='1.38e-07', job_status='DONE', time_completed='2021-09-06 03:16:47.184281', photon_index_error2='0.50', photon_index2='2.45', ts='16.81', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='1.54e-05', EG='1.31', time_epoch_completed='1630923407.18', return_code='0', job_id='866201', GAL2='0.78', EG2='1.28', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='7.27e-08', ts2='16.97', photon_index='2.23' WHERE bin_id='415' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:16:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 866201: <4FGL_J1239.5+0443_daily_bin415> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin415 189.885 4.7284 346896001 347155201 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 :                                   770.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            957 sec.

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

