/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 12 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 = 7382
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0259.0+0552_daily_bin1589
RA = 44.7519, Dec = 5.878
tmin = 651196801, tmax = 651456001
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='881696', job_status='RUN', time_executed='2021-08-24 00:06:40.121486', time_epoch_executed='1629788800.12' WHERE source_name='4FGL J0259.0+0552' and cadence='daily' and bin_id='1589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/881696

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/881696/ft1_4FGL_J0259.0+0552_daily_bin1589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/881696/ft2_4FGL_J0259.0+0552_daily_bin1589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/881696/ft1_4FGL_J0259.0+0552_daily_bin1589.fits outfile=/scratch/kocevski/881696/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1589.fits ra=44.7519 dec=5.878 rad=12.0 tmin=651196801.0 tmax=651456001.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 4.07
user 3.35
sys 0.61

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/881696/ft2_4FGL_J0259.0+0552_daily_bin1589.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/881696/ft2_4FGL_J0259.0+0552_daily_bin1589.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/881696/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1589.fits evtable="EVENTS" outfile="/scratch/kocevski/881696/ft1_filtered_4FGL_J0259.0+0552_daily_bin1589.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.90
user 0.31
sys 0.54

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/881696/ft1_filtered_4FGL_J0259.0+0552_daily_bin1589.fits" evtable="EVENTS" scfile=/scratch/kocevski/881696/ft2_4FGL_J0259.0+0552_daily_bin1589.fits sctable="SC_DATA" outfile=/scratch/kocevski/881696/ltcube_651196801_651456001_4FGL_J0259.0+0552_daily_bin1589.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/881696/ft2_4FGL_J0259.0+0552_daily_bin1589.fits
.....................!
real 12.63
user 11.77
sys 0.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/881696/ft1_filtered_4FGL_J0259.0+0552_daily_bin1589.fits evtable="EVENTS" scfile=/scratch/kocevski/881696/ft2_4FGL_J0259.0+0552_daily_bin1589.fits sctable="SC_DATA" expcube=/scratch/kocevski/881696/ltcube_651196801_651456001_4FGL_J0259.0+0552_daily_bin1589.fits outfile=/scratch/kocevski/881696/expmap_651196801_651456001_4FGL_J0259.0+0552_daily_bin1589.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/881696/ltcube_651196801_651456001_4FGL_J0259.0+0552_daily_bin1589.fits
.....................!
real 190.52
user 185.00
sys 5.00

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 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J0259.0+0552 @ 44.7519 5.878

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/881696/ft1_filtered_4FGL_J0259.0+0552_daily_bin1589.fits scfile=/scratch/kocevski/881696/ft2_4FGL_J0259.0+0552_daily_bin1589.fits outfile=/scratch/kocevski/881696/cmap_651196801_651456001_4FGL_J0259.0+0552_daily_bin1589.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=44.7519 yref=5.878 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 1.11
user 0.38
sys 0.52

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/881696/ft1_filtered_4FGL_J0259.0+0552_daily_bin1589.fits scfile=/scratch/kocevski/881696/ft2_4FGL_J0259.0+0552_daily_bin1589.fits outfile=/scratch/kocevski/881696/cmap_HighResolution_651196801_651456001_4FGL_J0259.0+0552_daily_bin1589.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=44.7519 yref=5.878 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 1.08
user 0.38
sys 0.53

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/881696/ft1_filtered_4FGL_J0259.0+0552_daily_bin1589.fits evtable="EVENTS" scfile=/scratch/kocevski/881696/ft2_4FGL_J0259.0+0552_daily_bin1589.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/881696/Model_4FGL_J0259.0+0552_daily_bin1589.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/881696/ft1_filtered_4FGL_J0259.0+0552_daily_bin1589.fits.....................!
real 121.89
user 119.21
sys 1.85

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/881696/ft1_filtered_4FGL_J0259.0+0552_daily_bin1589.fits', '/scratch/kocevski/881696/ft2_4FGL_J0259.0+0552_daily_bin1589.fits', expMap='/scratch/kocevski/881696/expmap_651196801_651456001_4FGL_J0259.0+0552_daily_bin1589.fits', expCube='/scratch/kocevski/881696/ltcube_651196801_651456001_4FGL_J0259.0+0552_daily_bin1589.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/881696/Model_4FGL_J0259.0+0552_daily_bin1589.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0259.0+0552'

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.939e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.870e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
287         beta:  1.393e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  2.098e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/881696/ft1_filtered_4FGL_J0259.0+0552_daily_bin1589.fits
Spacecraft file(s): /scratch/kocevski/881696/ft2_4FGL_J0259.0+0552_daily_bin1589.fits
Exposure map: /scratch/kocevski/881696/expmap_651196801_651456001_4FGL_J0259.0+0552_daily_bin1589.fits
Exposure cube: /scratch/kocevski/881696/ltcube_651196801_651456001_4FGL_J0259.0+0552_daily_bin1589.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/881696/Model_4FGL_J0259.0+0552_daily_bin1589.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) = 9986.62467698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    3.2599       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.745       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.603       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.2835       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5445       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.325       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8872       1.0000         .10000E-03   10000.    
    10 'norm      '    .66994       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8295       1.0000         .10000E-03   10000.    
    13 'norm      '    19.165       1.0000         .10000E-03   10000.    
    14 'Prefactor '    68.968       1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.422       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.212       1.0000         .10000E-03   10000.    
    18 'norm      '    11.444       1.0000         .10000E-03   10000.    
    19 'norm      '    4.9114       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10282E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    82.211       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.4233       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .70035       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0655       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9986.419     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     3294 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2674        .17042E-06** at limit **
   2  norm          3.2601        1.0905       -.13548E-07   -.19299E-04
   3  Prefactor     17.754        29.427        .11207E-05    .59958E-04
   4  Prefactor     .10000E-03    1.7850       -.10525E-08** at limit **
   5  Prefactor     26.600        55.470       -.42693E-06   -.17391E-04
   6  Prefactor     9.2823        8.4752        .39601E-06   -.95627E-05
   7  Prefactor     2.5572        46.471        .15208E-05    .31807E-04
   8  Prefactor     14.324        13.021       -.16261E-06   -.66453E-04
   9  Prefactor     5.8814        13.185        .20451E-05    .72014E-04
  10  norm          .67066        .71877       -.15125E-06    .30479E-03
  11  Prefactor     .10000E-03    47.925       -.11249E-05** at limit **
  12  Prefactor     1.8138        45.863       -.74494E-07   -.61240E-04
  13  norm          19.168        12.221        .57581E-06    .16648E-04
  14  Prefactor     68.904        41.133       -.63152E-05   -.68758E-03
  15  Prefactor     29.411        44.809       -.16013E-05   -.73661E-04
  16  Prefactor     .10000E-03    11.583       -.47747E-06** at limit **
  17  Prefactor     15.215        7.0857       -.25526E-06   -.48303E-04
  18  norm          11.443        8.8526       -.52660E-06   -.22455E-04
  19  norm          4.9109        4.0596        .38824E-05   -.12422E-02
  20  Prefactor     .10000E-03    2.2104        .13640E-06** at limit **
  21  norm          .10000E-03    3.8620       -.13482E-06** at limit **
  22  Prefactor     .10000E-03    10.945        .10444E-05** at limit **
  23  Prefactor     82.222        26.967        .71671E-06    .20513E-03
  24  Prefactor     5.4226        3.9698        .26411E-07    .33106E-04
  25  Prefactor     .10000E-03    3.6881        .98051E-07** at limit **
  26  Normalizat    .70038        .20692       -.23093E-06   -.59415E-04
  27  Prefactor     1.0655        .80179E-01   -.48809E-06    .19331E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.26014
  Prefactor  = 17.7535
  Prefactor  = 0.0001
  Prefactor  = 26.5996
  Prefactor  = 9.2823
  Prefactor  = 2.55719
  Prefactor  = 14.3241
  Prefactor  = 5.88143
  norm       = 0.67066
  Prefactor  = 0.000100001
  Prefactor  = 1.81384
  norm       = 19.1676
  Prefactor  = 68.9039
  Prefactor  = 29.4106
  Prefactor  = 0.0001
  Prefactor  = 15.2148
  norm       = 11.4435
  norm       = 4.91093
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 82.2224
  Prefactor  = 5.42256
  Prefactor  = 0.0001
  Normalizat = 0.700383
  Prefactor  = 1.06553
 **********
 **   18 **HESSE 
 **********

 FCN=   9986.419     FROM HESSE     STATUS=OK           490 CALLS     3784 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2900        .10967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.2601        1.0926        .57918E-04   -1.5347    
   3  Prefactor     17.754        29.128        .95078E-04   -1.4865    
   4  Prefactor     .10000E-03    1.7861        .13035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.600        55.415        .77669E-04   -1.4676    
   6  Prefactor     9.2823        8.4527        .13153E-03   -1.5099    
   7  Prefactor     2.5572        44.206        .25600E-03   -1.5388    
   8  Prefactor     14.324        12.959        .10583E-03   -1.4951    
   9  Prefactor     5.8814        13.084        .16551E-03   -1.5223    
  10  norm          .67066        .69497        .71177E-04   -1.5544    
  11  Prefactor     .10000E-03    48.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8138        44.934        .30857E-03   -1.5439    
  13  norm          19.168        12.233        .91488E-04   -1.4832    
  14  Prefactor     68.904        43.336        .24167E-03   -1.4046    
  15  Prefactor     29.411        44.994        .73863E-04   -1.4623    
  16  Prefactor     .10000E-03    11.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.215        7.0715        .10269E-03   -1.4928    
  18  norm          11.443        8.8550        .11842E-03   -1.5031    
  19  norm          4.9109        4.1525        .89335E-03   -1.5265    
  20  Prefactor     .10000E-03    2.2223        .14501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.9144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     82.222        26.948        .44299E-04   -1.3892    
  24  Prefactor     5.4226        3.9740        .16486E-03   -1.5242    
  25  Prefactor     .10000E-03    3.6947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .70038        .21654        .45180E-03   -1.0388    
  27  Prefactor     1.0655        .85221E-01    .16327E-03   -.90576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06179e-09
Minuit parameter uncertainties:
  1  2.44069e-06
  2  1.09265
  3  29.1508
  4  2.14904e-07
  5  55.5228
  6  8.45378
  7  21.2823
  8  12.9615
  9  13.0903
  10  0.694982
  11  0.000454288
  12  18.0705
  13  12.235
  14  43.356
  15  45.0456
  16  1.72481e-05
  17  7.07187
  18  8.85599
  19  4.15272
  20  7.36789e-06
  21  8.05794e-06
  22  1.9161e-05
  23  26.9521
  24  3.97422
  25  7.1879e-08
  26  0.216808
  27  0.0852317
Done.

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

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.144e+01  8.856e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.870e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
287         beta:  1.393e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  2.098e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
494    Prefactor:  1.066e+00  8.523e-02  0.000e+00  1.000e+01 ( 1.000e+00)
495        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
496        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
493   Normalization:  7.004e-01  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.62
Ra Dec: 44.752 5.878
Photon Index (Fixed Index): 1.87 +/- 0.00
Photon Flux (Fixed Index): 2.14e-08 +/- 1.66e-08
Energy Flux (Fixed Index): 2.30e-05 +/- 1.78e-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) = 9986.40822317
delta logL = 0.0106400564855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9986.40755496
delta logL = 0.0113082691114

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.160       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9710       1.0000          .0000       5.0000    
     3 'Normalizat'    .69934       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0651       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9986.408     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      239 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.160        8.8917        .11992E-03    .69548E-03
   2  alpha         1.9710        .66497        .16764E-01    .82794E-04
   3  Normalizat    .69935        .18651        .45206E-03    .67951E-04
   4  Prefactor     1.0651        .82476E-01    .16328E-03   -.52915E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 11.1597
  alpha      = 1.97103
  Normalizat = 0.699347
  Prefactor  = 1.06511
 **********
 **   18 **HESSE 
 **********

 FCN=   9986.408     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.160        8.7697        .23985E-04   -1.5040    
   2  alpha         1.9710        .65606        .67056E-03   -.21320    
   3  Normalizat    .69935        .18652        .18082E-04   -1.0392    
   4  Prefactor     1.0651        .82498E-01    .65313E-05   -.90589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.67203e-10
Minuit parameter uncertainties:
  1  8.77075
  2  0.664212
  3  0.186692
  4  0.0825082
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/881696': 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) = 9986.40755496
delta logL = 0.01130827017

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.116e+01  8.771e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.971e+00  6.642e-01  0.000e+00  5.000e+00 ( 1.000e+00)
287         beta:  1.393e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  2.098e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
494    Prefactor:  1.065e+00  8.251e-02  0.000e+00  1.000e+01 ( 1.000e+00)
495        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
496        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
493   Normalization:  6.993e-01  1.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.65
Ra Dec: 44.752 5.878
Photon Index (Free Index): 1.97 +/- 0.66
Photon Flux (Free Index): 2.46e-08 +/- 2.87e-08
Energy Flux (Free Index): 2.17e-05 +/- 1.81e-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/881696/cmap_HighResolution_651196801_651456001_4FGL_J0259.0+0552_daily_bin1589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.14e-08', energy_flux2='2.17e-05', photon_flux_error='1.66e-08', dlogl='1.13e-02', energy_flux='2.30e-05', photon_flux2='2.46e-08', job_status='DONE', time_completed='2021-08-24 00:21:20.004712', photon_index_error2='0.66', photon_index2='1.97', ts='7.62', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.81e-05', EG='0.70', time_epoch_completed='1629789680.0', return_code='0', job_id='881696', GAL2='1.07', EG2='0.70', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='2.87e-08', ts2='7.65', photon_index='1.87' WHERE bin_id='1589' AND source_name='4FGL J0259.0+0552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 24 00:21:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 881696: <4FGL_J0259.0+0552_daily_bin1589> in cluster <slac> Done

Job <4FGL_J0259.0+0552_daily_bin1589> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 24 00:05:28 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 24 00:05:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 24 00:05:30 2021
Terminated at Tue Aug 24 00:21:20 2021
Results reported at Tue Aug 24 00:21:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0259.0+0552_daily_bin1589 44.7519 5.878 651196801 651456001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0259.0+0552 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   884.21 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             325.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            952 sec.

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

