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


Performing analysis on: 4FGL_J0259.0+0552_daily_bin1002
RA = 44.7519, Dec = 5.878
tmin = 499046401, tmax = 499305601
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='992096', job_status='RUN', time_executed='2021-08-17 06:10:15.827510', time_epoch_executed='1629205815.83' WHERE source_name='4FGL J0259.0+0552' and cadence='daily' and bin_id='1002'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992096

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992096/ft1_4FGL_J0259.0+0552_daily_bin1002.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992096/ft2_4FGL_J0259.0+0552_daily_bin1002.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992096/ft1_4FGL_J0259.0+0552_daily_bin1002.fits outfile=/scratch/kocevski/992096/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1002.fits ra=44.7519 dec=5.878 rad=12.0 tmin=499046401.0 tmax=499305601.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 7.97
user 4.05
sys 2.73

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/992096/ft2_4FGL_J0259.0+0552_daily_bin1002.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/992096/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1002.fits evtable="EVENTS" outfile="/scratch/kocevski/992096/ft1_filtered_4FGL_J0259.0+0552_daily_bin1002.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 3.67
user 0.33
sys 2.63

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/992096/ft1_filtered_4FGL_J0259.0+0552_daily_bin1002.fits" evtable="EVENTS" scfile=/scratch/kocevski/992096/ft2_4FGL_J0259.0+0552_daily_bin1002.fits sctable="SC_DATA" outfile=/scratch/kocevski/992096/ltcube_499046401_499305601_4FGL_J0259.0+0552_daily_bin1002.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/992096/ft2_4FGL_J0259.0+0552_daily_bin1002.fits
.....................!
real 17.01
user 13.32
sys 3.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992096/ft1_filtered_4FGL_J0259.0+0552_daily_bin1002.fits evtable="EVENTS" scfile=/scratch/kocevski/992096/ft2_4FGL_J0259.0+0552_daily_bin1002.fits sctable="SC_DATA" expcube=/scratch/kocevski/992096/ltcube_499046401_499305601_4FGL_J0259.0+0552_daily_bin1002.fits outfile=/scratch/kocevski/992096/expmap_499046401_499305601_4FGL_J0259.0+0552_daily_bin1002.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/992096/ltcube_499046401_499305601_4FGL_J0259.0+0552_daily_bin1002.fits
.....................!
real 196.78
user 186.14
sys 8.28

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/992096/ft1_filtered_4FGL_J0259.0+0552_daily_bin1002.fits scfile=/scratch/kocevski/992096/ft2_4FGL_J0259.0+0552_daily_bin1002.fits outfile=/scratch/kocevski/992096/cmap_499046401_499305601_4FGL_J0259.0+0552_daily_bin1002.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 3.12
user 0.36
sys 2.59

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/992096/ft1_filtered_4FGL_J0259.0+0552_daily_bin1002.fits scfile=/scratch/kocevski/992096/ft2_4FGL_J0259.0+0552_daily_bin1002.fits outfile=/scratch/kocevski/992096/cmap_HighResolution_499046401_499305601_4FGL_J0259.0+0552_daily_bin1002.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 3.08
user 0.38
sys 2.57

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2082       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1845       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.288       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10855E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .22715E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3974       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.011       1.0000         .10000E-03   10000.    
    13 'norm      '    5.6853       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .76694E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .61211E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.3889       1.0000         .10000E-03   10000.    
    19 'norm      '    2.1066       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    12.153       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.831       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .66018       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0286       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=   5657.673     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3275 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2114        4.1033       -.16631E-06    .15205E-03
   2  norm          1.1851        1.1860       -.71620E-07    .94069E-04
   3  Prefactor     .10000E-03    41.386       -.65945E-06** at limit **
   4  Prefactor     .10000E-03    3.0290       -.13037E-06** at limit **
   5  Prefactor     .10000E-03    50.050       -.98744E-06** at limit **
   6  Prefactor     17.299        11.388       -.54103E-07    .14296E-03
   7  Prefactor     .10000E-03    19.265       -.24631E-06** at limit **
   8  Prefactor     .10000E-03    6.7764       -.21377E-06** at limit **
   9  Prefactor     .10012E-03    34.461       -.15038E-04** at limit **
  10  norm          1.3984        .80643        .43151E-07    .63820E-03
  11  Prefactor     .10000E-03    56.626       -.10502E-05** at limit **
  12  Prefactor     29.004        24.474        .35193E-07    .16879E-03
  13  norm          5.6884        8.7540       -.14229E-06    .61519E-04
  14  Prefactor     .10000E-03    38.028       -.20544E-06** at limit **
  15  Prefactor     .10000E-03    285.77        .10425E-04** at limit **
  16  Prefactor     .10000E-03    14.668        .17180E-06** at limit **
  17  Prefactor     .10451E-03    17.783       -.93566E-05** at limit **
  18  norm          7.3883        7.4293        .19147E-06    .78816E-04
  19  norm          2.1061        4.7817       -.13499E-05    .21330E-03
  20  Prefactor     .10000E-03    3.7163       -.11245E-06** at limit **
  21  norm          12.149        11.105       -.15802E-06    .11769E-03
  22  Prefactor     10.833        15.999       -.64563E-06    .10862E-03
  23  Prefactor     .10000E-03    16.117       -.50351E-06** at limit **
  24  Prefactor     .10000E-03    2.7378       -.67618E-07** at limit **
  25  Prefactor     .10000E-03    8.2622       -.29911E-06** at limit **
  26  Normalizat    .65940        .24813        .19201E-05    .14630E-03
  27  Prefactor     1.0289        .10127        .37081E-06    .48814E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.21138
  norm       = 1.18514
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.2993
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100123
  norm       = 1.39839
  Prefactor  = 0.0001
  Prefactor  = 29.0043
  norm       = 5.68839
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.00010451
  norm       = 7.38835
  norm       = 2.1061
  Prefactor  = 0.0001
  norm       = 12.1495
  Prefactor  = 10.8326
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.659401
  Prefactor  = 1.02889
 **********
 **   18 **HESSE 
 **********

 FCN=   5657.673     FROM HESSE     STATUS=OK           490 CALLS     3765 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2114        4.1003        .10989E-03   -1.5171    
   2  norm          1.1851        1.1875        .41944E-04   -1.5490    
   3  Prefactor     .10000E-03    41.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.0334        .12783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    50.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.299        11.238        .96327E-04   -1.4876    
   7  Prefactor     .10000E-03    19.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.8201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10012E-03    37.422        .38769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3984        .77895        .47836E-04   -1.5471    
  11  Prefactor     .10000E-03    56.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.004        24.594        .74383E-04   -1.4630    
  13  norm          5.6884        8.7382        .16846E-03   -1.5231    
  14  Prefactor     .10000E-03    38.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    287.44        .20927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10451E-03    6.0370        .49489E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.3883        7.4326        .14755E-03   -1.5164    
  19  norm          2.1061        4.7704        .23580E-03   -1.5418    
  20  Prefactor     .10000E-03    3.7450        .14159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          12.149        11.140        .11491E-03   -1.5011    
  22  Prefactor     10.833        15.969        .12174E-03   -1.5050    
  23  Prefactor     .10000E-03    16.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.7626        .12151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.3000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .65940        .26717        .42634E-03   -1.0552    
  27  Prefactor     1.0289        .11108        .15188E-03   -.91773    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.83372e-09
Minuit parameter uncertainties:
  1  4.10049
  2  1.18756
  3  0.000196823
  4  7.21755e-06
  5  0.000257045
  6  11.2392
  7  8.37974e-05
  8  2.75492e-05
  9  0.00428537
  10  0.77896
  11  0.000311845
  12  24.6028
  13  8.74018
  14  8.43817e-05
  15  0.00134906
  16  9.14081e-06
  17  0.0104371
  18  7.43352
  19  4.77131
  20  6.88512e-06
  21  11.1423
  22  15.9751
  23  5.91773e-05
  24  7.23364e-06
  25  4.22713e-05
  26  0.267697
  27  0.11111
Done.

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

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  7.388e+00  7.434e+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.029e+00  1.111e-01  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.594e-01  2.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.79
Ra Dec: 44.752 5.878
Photon Index (Fixed Index): 1.87 +/- 0.00
Photon Flux (Fixed Index): 1.38e-08 +/- 1.39e-08
Energy Flux (Fixed Index): 1.48e-05 +/- 1.49e-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) = 5654.70342764
delta logL = 2.96924720561

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5654.0286105
delta logL = 3.64406434343

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4691       1.0000         .10000E-03   10000.    
     2 'alpha     '    .37121E-06   1.0000          .0000       5.0000    
     3 'Normalizat'    .66249       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0302       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.

 FCN=   5654.029     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      224 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4766        1.8740        .88653E-02   -.35771E-03
   2  alpha          .0000        .68015        .46408    ** at limit **
   3  Normalizat    .66231        .22375        .95976E-01    .30073E-04
   4  Prefactor     1.0302        .98451E-01    .41242E-01   -.60439E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.47659
  alpha      = 0
  Normalizat = 0.662306
  Prefactor  = 1.03021
 **********
 **   18 **HESSE 
 **********

 FCN=   5654.029     FROM HESSE     STATUS=OK            31 CALLS      255 TOTAL
                     EDM=   .16E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4766        1.4859        .87688E-04   -1.5465    
   2  alpha          .0000        .91756        .42950E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .66231        .24106        .42533E-03   -1.0540    
   4  Prefactor     1.0302        .10643        .15176E-03   -.91729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58821e-14
Minuit parameter uncertainties:
  1  1.48595
  2  5.76865e-09
  3  0.241445
  4  0.106453
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992096': 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) = 5654.02859646
delta logL = 3.6440783861

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.477e+00  1.486e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  0.000e+00  5.769e-09  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.030e+00  1.065e-01  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.623e-01  2.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.08
Ra Dec: 44.752 5.878
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 4.94e-09 +/- 4.97e-09
Energy Flux (Free Index): 1.62e-04 +/- 1.63e-04

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/992096/cmap_HighResolution_499046401_499305601_4FGL_J0259.0+0552_daily_bin1002.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.38e-08', energy_flux2='1.62e-04', photon_flux_error='1.39e-08', dlogl='3.64e+00', energy_flux='1.48e-05', photon_flux2='4.94e-09', job_status='DONE', time_completed='2021-08-17 06:21:55.918798', photon_index_error2='0.00', photon_index2='0.00', ts='6.79', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.63e-04', EG='0.66', time_epoch_completed='1629206515.92', return_code='0', job_id='992096', GAL2='1.03', EG2='0.66', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='4.97e-09', ts2='14.08', photon_index='1.87' WHERE bin_id='1002' AND source_name='4FGL J0259.0+0552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 06:21:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 992096: <4FGL_J0259.0+0552_daily_bin1002> in cluster <slac> Done

Job <4FGL_J0259.0+0552_daily_bin1002> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 17 06:06:04 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 06:07:06 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:07:06 2021
Terminated at Tue Aug 17 06:21:57 2021
Results reported at Tue Aug 17 06:21:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0259.0+0552_daily_bin1002 44.7519 5.878 499046401 499305601 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 :                                   718.34 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             271.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            953 sec.

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

