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


Performing analysis on: 4FGL_J0259.0+0552_daily_bin1549
RA = 44.7519, Dec = 5.878
tmin = 640828801, tmax = 641088001
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='995464', job_status='RUN', time_executed='2021-08-17 06:22:54.196172', time_epoch_executed='1629206574.2' WHERE source_name='4FGL J0259.0+0552' and cadence='daily' and bin_id='1549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/995464

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/995464/ft1_4FGL_J0259.0+0552_daily_bin1549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/995464/ft2_4FGL_J0259.0+0552_daily_bin1549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/995464/ft1_4FGL_J0259.0+0552_daily_bin1549.fits outfile=/scratch/kocevski/995464/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1549.fits ra=44.7519 dec=5.878 rad=12.0 tmin=640828801.0 tmax=641088001.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 5.33
user 2.94
sys 1.77

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/995464/ft1_filtered_4FGL_J0259.0+0552_daily_bin1549.fits" evtable="EVENTS" scfile=/scratch/kocevski/995464/ft2_4FGL_J0259.0+0552_daily_bin1549.fits sctable="SC_DATA" outfile=/scratch/kocevski/995464/ltcube_640828801_641088001_4FGL_J0259.0+0552_daily_bin1549.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/995464/ft2_4FGL_J0259.0+0552_daily_bin1549.fits
.....................!
real 16.42
user 13.92
sys 2.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/995464/ft1_filtered_4FGL_J0259.0+0552_daily_bin1549.fits evtable="EVENTS" scfile=/scratch/kocevski/995464/ft2_4FGL_J0259.0+0552_daily_bin1549.fits sctable="SC_DATA" expcube=/scratch/kocevski/995464/ltcube_640828801_641088001_4FGL_J0259.0+0552_daily_bin1549.fits outfile=/scratch/kocevski/995464/expmap_640828801_641088001_4FGL_J0259.0+0552_daily_bin1549.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/995464/ltcube_640828801_641088001_4FGL_J0259.0+0552_daily_bin1549.fits
.....................!
real 197.23
user 188.08
sys 7.24

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/995464/ft1_filtered_4FGL_J0259.0+0552_daily_bin1549.fits scfile=/scratch/kocevski/995464/ft2_4FGL_J0259.0+0552_daily_bin1549.fits outfile=/scratch/kocevski/995464/cmap_640828801_641088001_4FGL_J0259.0+0552_daily_bin1549.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 2.77
user 0.37
sys 1.63

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13857E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9899.0       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .22636E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1192.0       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8034       1.0000         .10000E-03   10000.    
    10 'norm      '    .11862E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18715E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10902E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .12042E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17731       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.6242       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .24204E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .11524E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .14412E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    32.952       1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.874       1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.379       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2552       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=   1869.540     FROM MIGRAD    STATUS=CONVERGED    827 CALLS     3229 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.861        .71987E-07** at limit **
   2  norm          .10000E-03    1.1769       -.34772E-07** at limit **
   3  Prefactor     .10000E-03    113.82        .60108E-07** at limit **
   4  Prefactor    10000.0        7164.9        .41540E-04** at limit **
   5  Prefactor     .10000E-03    454.82        .12195E-06** at limit **
   6  Prefactor     970.92        1288.1       -.88455E-05   -.23788E-04
   7  Prefactor     .10000E-03    51.886        .10462E-06** at limit **
   8  Prefactor     .10000E-03    32.908        .50930E-06** at limit **
   9  Prefactor     .10000E-03    823.58        .25515E-04** at limit **
  10  norm          .10000E-03    37.011        .31850E-04** at limit **
  11  Prefactor     .10000E-03    773.60        .29829E-04** at limit **
  12  Prefactor     .10000E-03    36.755        .50145E-07** at limit **
  13  norm          .10000E-03    45.229        .29580E-05** at limit **
  14  Prefactor     .10000E-03    443.26        .38122E-04** at limit **
  15  Prefactor     5.3535        677.83        .25614E-05   -.12773E-05
  16  Prefactor     .10000E-03    100.80        .13642E-05** at limit **
  17  Prefactor     .10000E-03    22.448        .58197E-07** at limit **
  18  norm          .10000E-03    22.432       -.53655E-07** at limit **
  19  norm          .10000E-03    18.722        .74126E-06** at limit **
  20  Prefactor     .10000E-03    9.7241       -.33030E-07** at limit **
  21  norm          .10000E-03    46.579        .25097E-05** at limit **
  22  Prefactor     .10000E-03    47.734        .45682E-07** at limit **
  23  Prefactor     36.127        56.443        .85617E-06   -.11631E-04
  24  Prefactor     14.866        18.644        .57408E-06   -.30039E-04
  25  Prefactor     14.049        32.523        .95305E-06   -.11323E-04
  26  Normalizat    .10000E-01    .25525        .42453E-05** at limit **
  27  Prefactor     1.2553        .13333       -.77090E-06   -.69781E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 970.916
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.35349
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.1272
  Prefactor  = 14.8663
  Prefactor  = 14.0492
  Normalizat = 0.01
  Prefactor  = 1.2553
 **********
 **   18 **HESSE 
 **********

 FCN=   1869.540     FROM HESSE     STATUS=OK           474 CALLS     3703 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.1784        .45812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    113.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        7174.4        .19999E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    454.80        .18271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     970.92        1290.9        .61723E-04   -.93705    
   7  Prefactor     .10000E-03    51.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    32.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    814.35        .83358E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    36.968        .20646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    768.91        .18233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    36.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    45.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    440.32        .19747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.3535        679.58        .15592E-03   -1.5245    
  16  Prefactor     .10000E-03    100.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    22.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    18.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.7423        .13162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    46.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    47.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     36.127        56.472        .69805E-04   -1.4505    
  24  Prefactor     14.866        18.723        .10385E-03   -1.4937    
  25  Prefactor     14.049        32.665        .10563E-03   -1.4958    
  26  Normalizat    .10000E-01    .25616        .64188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.2553        .13497        .14741E-03   -.84646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95593e-10
Minuit parameter uncertainties:
  1  1.19395e-07
  2  1.40672e-07
  3  1.24309e-07
  4  0.0906103
  5  7.80996e-06
  6  1335.73
  7  2.94248e-07
  8  9.3503e-08
  9  0.000790829
  10  9.24527e-05
  11  0.000369141
  12  3.36223e-07
  13  1.37839e-06
  14  0.000503484
  15  122.077
  16  1.4913e-06
  17  5.91586e-06
  18  1.91503e-06
  19  5.85256e-06
  20  2.37968e-06
  21  1.98955e-06
  22  3.1828e-05
  23  56.556
  24  18.7303
  25  32.7068
  26  2.09322e-07
  27  0.135008
Done.

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

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.000e-04  1.915e-06  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.255e+00  1.350e-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:  1.000e-02  2.093e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 44.752 5.878
Photon Flux Upper Limit: 1.76e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.89e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/995464/likelihoodResults_640828801_641088001_4FGL_J0259.0+0552_daily_bin1549.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1869.54041896
delta logL = -0.000217486153815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1869.54020557
delta logL = -4.10142729379e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8519       1.0000          .0000       5.0000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2553       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=   1869.540     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      269 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    848.95        .13561E-01** at limit **
   2  alpha         1.6560        4.1704        .16672        .86826E-07
   3  Normalizat    .10000E-01    .21007E-01    .64476E-02** at limit **
   4  Prefactor     1.2553        .32997E-01    .14741E-03    .92597E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100025
  alpha      = 1.65597
  Normalizat = 0.01
  Prefactor  = 1.2553
 **********
 **   18 **HESSE 
 **********

 FCN=   1869.540     FROM HESSE     STATUS=OK            23 CALLS      292 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    23.930        .20338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6560        4.0224        .66686E-02   -.34438    
   3  Normalizat    .10000E-01    .25619        .12895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2553        .11564        .29481E-04   -.84646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95162e-09
Minuit parameter uncertainties:
  1  0.00156256
  2  602.87
  3  1.23969e-05
  4  0.115659
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/995464': 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) = 1869.5402014
delta logL = 7.18175670045e-08

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.000e-04  1.563e-03  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.656e+00  6.029e+02  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.255e+00  1.157e-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:  1.000e-02  1.240e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 44.752 5.878

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/995464/cmap_HighResolution_640828801_641088001_4FGL_J0259.0+0552_daily_bin1549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.89e-04', job_status='DONE', photon_flux_upper_limit='1.76e-07', time_completed='2021-08-17 06:30:51.720610', job_id='995464', GAL2='1.26', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629207051.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='7.18e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.87' WHERE bin_id='1549' AND source_name='4FGL J0259.0+0552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 06:30:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 995464: <4FGL_J0259.0+0552_daily_bin1549> in cluster <slac> Done

Job <4FGL_J0259.0+0552_daily_bin1549> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Aug 17 06:16:04 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 06:17:24 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:17:24 2021
Terminated at Tue Aug 17 06:30:52 2021
Results reported at Tue Aug 17 06:30:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0259.0+0552_daily_bin1549 44.7519 5.878 640828801 641088001 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 :                                   486.05 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             221.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            888 sec.

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

