/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 33 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7402
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0259.0+0552_daily_bin1155
RA = 44.7519, Dec = 5.878
tmin = 538704001, tmax = 538963201
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='993623', job_status='RUN', time_executed='2021-08-17 06:12:51.265327', time_epoch_executed='1629205971.27' WHERE source_name='4FGL J0259.0+0552' and cadence='daily' and bin_id='1155'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993623

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993623/ft1_4FGL_J0259.0+0552_daily_bin1155.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993623/ft2_4FGL_J0259.0+0552_daily_bin1155.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993623/ft1_4FGL_J0259.0+0552_daily_bin1155.fits outfile=/scratch/kocevski/993623/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1155.fits ra=44.7519 dec=5.878 rad=12.0 tmin=538704001.0 tmax=538963201.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.80
user 3.29
sys 1.11

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993623/ft2_4FGL_J0259.0+0552_daily_bin1155.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/993623/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1155.fits evtable="EVENTS" outfile="/scratch/kocevski/993623/ft1_filtered_4FGL_J0259.0+0552_daily_bin1155.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 1.65
user 0.34
sys 1.07

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993623/ft1_filtered_4FGL_J0259.0+0552_daily_bin1155.fits" evtable="EVENTS" scfile=/scratch/kocevski/993623/ft2_4FGL_J0259.0+0552_daily_bin1155.fits sctable="SC_DATA" outfile=/scratch/kocevski/993623/ltcube_538704001_538963201_4FGL_J0259.0+0552_daily_bin1155.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/993623/ft2_4FGL_J0259.0+0552_daily_bin1155.fits
.....................!
real 16.04
user 14.23
sys 1.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993623/ft1_filtered_4FGL_J0259.0+0552_daily_bin1155.fits evtable="EVENTS" scfile=/scratch/kocevski/993623/ft2_4FGL_J0259.0+0552_daily_bin1155.fits sctable="SC_DATA" expcube=/scratch/kocevski/993623/ltcube_538704001_538963201_4FGL_J0259.0+0552_daily_bin1155.fits outfile=/scratch/kocevski/993623/expmap_538704001_538963201_4FGL_J0259.0+0552_daily_bin1155.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/993623/ltcube_538704001_538963201_4FGL_J0259.0+0552_daily_bin1155.fits
.....................!
real 196.73
user 187.04
sys 6.52

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/993623/ft1_filtered_4FGL_J0259.0+0552_daily_bin1155.fits scfile=/scratch/kocevski/993623/ft2_4FGL_J0259.0+0552_daily_bin1155.fits outfile=/scratch/kocevski/993623/cmap_538704001_538963201_4FGL_J0259.0+0552_daily_bin1155.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.52
user 0.38
sys 1.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993623/ft1_filtered_4FGL_J0259.0+0552_daily_bin1155.fits scfile=/scratch/kocevski/993623/ft2_4FGL_J0259.0+0552_daily_bin1155.fits outfile=/scratch/kocevski/993623/cmap_HighResolution_538704001_538963201_4FGL_J0259.0+0552_daily_bin1155.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.48
user 0.40
sys 1.03

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/993623/ft1_filtered_4FGL_J0259.0+0552_daily_bin1155.fits', '/scratch/kocevski/993623/ft2_4FGL_J0259.0+0552_daily_bin1155.fits', expMap='/scratch/kocevski/993623/expmap_538704001_538963201_4FGL_J0259.0+0552_daily_bin1155.fits', expCube='/scratch/kocevski/993623/ltcube_538704001_538963201_4FGL_J0259.0+0552_daily_bin1155.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/993623/Model_4FGL_J0259.0+0552_daily_bin1155.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/993623/ft1_filtered_4FGL_J0259.0+0552_daily_bin1155.fits
Spacecraft file(s): /scratch/kocevski/993623/ft2_4FGL_J0259.0+0552_daily_bin1155.fits
Exposure map: /scratch/kocevski/993623/expmap_538704001_538963201_4FGL_J0259.0+0552_daily_bin1155.fits
Exposure cube: /scratch/kocevski/993623/ltcube_538704001_538963201_4FGL_J0259.0+0552_daily_bin1155.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/993623/Model_4FGL_J0259.0+0552_daily_bin1155.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) = 8841.51505023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.138       1.0000         .10000E-03   10000.    
     2 'norm      '    2.2213       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.270       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9605       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.4169       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1177       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.397       1.0000         .10000E-03   10000.    
    10 'norm      '    .60015       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .39522E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.990       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1548       1.0000         .10000E-03   10000.    
    18 'norm      '    14.619       1.0000         .10000E-03   10000.    
    19 'norm      '    4.6810       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    12.632       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .65234       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .92019E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.8628       1.0000         .10000E-03   10000.    
    25 'Prefactor '    25.534       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .65699       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .97858       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=   8841.474     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     2823 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.139        3.3358        .78078E-07    .79856E-04
   2  norm          2.2215        .90099        .95311E-08   -.15524E-05
   3  Prefactor     11.268        18.926        .34508E-06    .14571E-04
   4  Prefactor     .10000E-03    2.8432        .12097E-06** at limit **
   5  Prefactor     3.8728        109.81       -.12687E-04   -.18413E-05
   6  Prefactor     .10000E-03    4.7971        .24898E-06** at limit **
   7  Prefactor     7.4170        9.0870        .78728E-07    .11730E-04
   8  Prefactor     6.1184        6.6828        .20225E-06    .35940E-04
   9  Prefactor     13.395        11.077       -.21903E-07   -.17592E-05
  10  norm          .60026        .55058        .24232E-07    .97287E-04
  11  Prefactor     .10000E-03    97.675       -.23411E-06** at limit **
  12  Prefactor     17.994        14.843       -.75194E-08   -.17374E-05
  13  norm          .10000E-03    4.3881        .10084E-06** at limit **
  14  Prefactor     .10000E-03    13.088        .14761E-06** at limit **
  15  Prefactor     .10000E-03    50.115        .15778E-05** at limit **
  16  Prefactor     .10000E-03    7.4724        .65861E-08** at limit **
  17  Prefactor     2.1542        4.7195       -.14112E-06    .15959E-04
  18  norm          14.619        10.810       -.25323E-07    .91762E-05
  19  norm          4.6810        3.4999       -.87174E-07    .90529E-05
  20  Prefactor     .10000E-03    1.7810       -.77222E-09** at limit **
  21  norm          12.633        7.8297        .61521E-07    .20661E-04
  22  Prefactor     .72048        33.056        .68597E-05    .95112E-04
  23  Prefactor     .10003E-03    37.378       -.70776E-05** at limit **
  24  Prefactor     4.8631        7.0487       -.96867E-06   -.48049E-05
  25  Prefactor     25.530        14.683       -.58508E-07    .16888E-04
  26  Normalizat    .65674        .18401       -.11095E-05    .37381E-04
  27  Prefactor     .97860        .78687E-01    .30709E-06   -.88046E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1391
  norm       = 2.22147
  Prefactor  = 11.2678
  Prefactor  = 0.0001
  Prefactor  = 3.87279
  Prefactor  = 0.0001
  Prefactor  = 7.417
  Prefactor  = 6.11842
  Prefactor  = 13.3947
  norm       = 0.600256
  Prefactor  = 0.0001
  Prefactor  = 17.9938
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.15423
  norm       = 14.6188
  norm       = 4.681
  Prefactor  = 0.0001
  norm       = 12.6325
  Prefactor  = 0.720481
  Prefactor  = 0.000100031
  Prefactor  = 4.86307
  Prefactor  = 25.5304
  Normalizat = 0.65674
  Prefactor  = 0.978604
 **********
 **   18 **HESSE 
 **********

 FCN=   8841.474     FROM HESSE     STATUS=OK           500 CALLS     3323 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.139        3.3343        .89267E-04   -1.5040    
   2  norm          2.2215        .90066        .54700E-04   -1.5410    
   3  Prefactor     11.268        18.907        .11934E-03   -1.5036    
   4  Prefactor     .10000E-03    2.8579        .15485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.8728        109.66        .20268E-03   -1.5314    
   6  Prefactor     .10000E-03    4.8401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.4170        9.0814        .14727E-03   -1.5163    
   8  Prefactor     6.1184        6.6805        .16232E-03   -1.5213    
   9  Prefactor     13.395        10.959        .10944E-03   -1.4976    
  10  norm          .60026        .54240        .61525E-04   -1.5553    
  11  Prefactor     .10000E-03    101.51        .42538E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.994        14.893        .94429E-04   -1.4859    
  13  norm          .10000E-03    4.4246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    50.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.4798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.1542        4.6841        .28066E-03   -1.5414    
  18  norm          14.619        10.802        .10475E-03   -1.4943    
  19  norm          4.6810        3.4966        .14572E-03   -1.5275    
  20  Prefactor     .10000E-03    1.7859        .12251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          12.633        7.8351        .11271E-03   -1.4997    
  22  Prefactor     .72048        48.678        .46623E-02   -1.5538    
  23  Prefactor     .10003E-03    95.407        .53234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.8631        7.0624        .91208E-03   -1.5267    
  25  Prefactor     25.530        14.684        .79276E-04   -1.4697    
  26  Normalizat    .65674        .19369        .42085E-03   -1.0563    
  27  Prefactor     .97860        .85244E-01    .15723E-03   -.93446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.80034e-10
Minuit parameter uncertainties:
  1  3.33435
  2  0.900666
  3  18.917
  4  3.78278e-06
  5  41.2995
  6  9.71869e-06
  7  9.08306
  8  6.6813
  9  10.9611
  10  0.542404
  11  6.94286e-05
  12  14.896
  13  3.07373e-06
  14  6.96221e-06
  15  5.02458e-05
  16  7.62295e-09
  17  4.68488
  18  10.8032
  19  3.49676
  20  8.93034e-07
  21  7.8357
  22  11.8535
  23  0.00343066
  24  7.06363
  25  14.6861
  26  0.193895
  27  0.0852561
Done.

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

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.462e+01  1.080e+01  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:  9.786e-01  8.526e-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.567e-01  1.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.33
Ra Dec: 44.752 5.878
Photon Index (Fixed Index): 1.87 +/- 0.00
Photon Flux (Fixed Index): 2.74e-08 +/- 2.02e-08
Energy Flux (Fixed Index): 2.94e-05 +/- 2.17e-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) = 8840.95588489
delta logL = 0.518187261705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8840.95217704
delta logL = 0.521895115226

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.246       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4454       1.0000          .0000       5.0000    
     3 'Normalizat'    .64332       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97522       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=   8840.952     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      299 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.247        9.6895        .11946E-03   -.28588E-03
   2  alpha         2.4454        .55170        .11216E-01   -.16770E-04
   3  Normalizat    .64341        .17820        .42443E-03   -.33322E-04
   4  Prefactor     .97517        .80408E-01    .15730E-03    .41918E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.2466
  alpha      = 2.44543
  Normalizat = 0.643411
  Prefactor  = 0.975171
 **********
 **   18 **HESSE 
 **********

 FCN=   8840.952     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.247        9.0249        .47785E-05   -1.5037    
   2  alpha         2.4454        .51404        .44863E-03   -.21832E-01
   3  Normalizat    .64341        .17805        .16977E-04   -1.0617    
   4  Prefactor     .97517        .80425E-01    .62922E-05   -.93562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44044e-11
Minuit parameter uncertainties:
  1  9.02597
  2  0.517732
  3  0.178208
  4  0.0804349
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993623': 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) = 8840.95217685
delta logL = 0.521895299025

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.125e+01  9.026e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  2.445e+00  5.177e-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:  9.752e-01  8.043e-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.434e-01  1.782e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.36
Ra Dec: 44.752 5.878
Photon Index (Free Index): 2.45 +/- 0.52
Photon Flux (Free Index): 6.14e-08 +/- 4.85e-08
Energy Flux (Free Index): 2.60e-05 +/- 1.54e-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/993623/cmap_HighResolution_538704001_538963201_4FGL_J0259.0+0552_daily_bin1155.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.74e-08', energy_flux2='2.60e-05', photon_flux_error='2.02e-08', dlogl='5.22e-01', energy_flux='2.94e-05', photon_flux2='6.14e-08', job_status='DONE', time_completed='2021-08-17 06:26:18.440421', photon_index_error2='0.52', photon_index2='2.45', ts='6.33', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.54e-05', EG='0.66', time_epoch_completed='1629206778.44', return_code='0', job_id='993623', GAL2='0.98', EG2='0.64', return_code2='0', energy_flux_error='2.17e-05', photon_flux_error2='4.85e-08', ts2='7.36', photon_index='1.87' WHERE bin_id='1155' AND source_name='4FGL J0259.0+0552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 06:26:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 993623: <4FGL_J0259.0+0552_daily_bin1155> in cluster <slac> Done

Job <4FGL_J0259.0+0552_daily_bin1155> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Aug 17 06:11:00 2021
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 06:11:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 17 06:11:12 2021
Terminated at Tue Aug 17 06:26:19 2021
Results reported at Tue Aug 17 06:26:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0259.0+0552_daily_bin1155 44.7519 5.878 538704001 538963201 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 :                                   794.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            919 sec.

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

