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


Performing analysis on: 4FGL_J0259.0+0552_daily_bin1504
RA = 44.7519, Dec = 5.878
tmin = 629164801, tmax = 629424001
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='995408', job_status='RUN', time_executed='2021-08-17 06:17:34.486739', time_epoch_executed='1629206254.49' WHERE source_name='4FGL J0259.0+0552' and cadence='daily' and bin_id='1504'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/995408

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/995408/ft1_4FGL_J0259.0+0552_daily_bin1504.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/995408/ft2_4FGL_J0259.0+0552_daily_bin1504.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/995408/ft1_4FGL_J0259.0+0552_daily_bin1504.fits outfile=/scratch/kocevski/995408/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1504.fits ra=44.7519 dec=5.878 rad=12.0 tmin=629164801.0 tmax=629424001.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.51
user 3.39
sys 0.72

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/995408/ft1_filtered_4FGL_J0259.0+0552_daily_bin1504.fits" evtable="EVENTS" scfile=/scratch/kocevski/995408/ft2_4FGL_J0259.0+0552_daily_bin1504.fits sctable="SC_DATA" outfile=/scratch/kocevski/995408/ltcube_629164801_629424001_4FGL_J0259.0+0552_daily_bin1504.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/995408/ft2_4FGL_J0259.0+0552_daily_bin1504.fits
.....................!
real 13.51
user 12.27
sys 0.89

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/995408/ft1_filtered_4FGL_J0259.0+0552_daily_bin1504.fits evtable="EVENTS" scfile=/scratch/kocevski/995408/ft2_4FGL_J0259.0+0552_daily_bin1504.fits sctable="SC_DATA" expcube=/scratch/kocevski/995408/ltcube_629164801_629424001_4FGL_J0259.0+0552_daily_bin1504.fits outfile=/scratch/kocevski/995408/expmap_629164801_629424001_4FGL_J0259.0+0552_daily_bin1504.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/995408/ltcube_629164801_629424001_4FGL_J0259.0+0552_daily_bin1504.fits
.....................!
real 192.56
user 184.93
sys 5.95

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/995408/ft1_filtered_4FGL_J0259.0+0552_daily_bin1504.fits scfile=/scratch/kocevski/995408/ft2_4FGL_J0259.0+0552_daily_bin1504.fits outfile=/scratch/kocevski/995408/cmap_629164801_629424001_4FGL_J0259.0+0552_daily_bin1504.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.61

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/995408/ft1_filtered_4FGL_J0259.0+0552_daily_bin1504.fits scfile=/scratch/kocevski/995408/ft2_4FGL_J0259.0+0552_daily_bin1504.fits outfile=/scratch/kocevski/995408/cmap_HighResolution_629164801_629424001_4FGL_J0259.0+0552_daily_bin1504.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.44
user 0.38
sys 0.67

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.4928       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    172.02       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .42830E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.701       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10888E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.7735       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10874E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .22558       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    30.726       1.0000         .10000E-03   10000.    
    19 'norm      '    .22638       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1843       1.0000         .10000E-03   10000.    
    21 'norm      '    7.5832       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.1187       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.4520       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.3207       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .78278       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .97118       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=   9072.937     FROM MIGRAD    STATUS=CONVERGED    677 CALLS     3338 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4441       -.35538E-06** at limit **
   2  norm          1.4925        .87485       -.55463E-07    .18129E-03
   3  Prefactor     .10000E-03    19.233       -.87401E-06** at limit **
   4  Prefactor     .10000E-03    4.5362       -.12904E-06** at limit **
   5  Prefactor     172.10        88.090       -.48590E-06   -.17369E-04
   6  Prefactor     .10000E-03    13.250        .51872E-05** at limit **
   7  Prefactor     26.709        25.407        .47283E-06    .10009E-03
   8  Prefactor     .10000E-03    18.048       -.11491E-05** at limit **
   9  Prefactor     .10000E-03    8.5818       -.44715E-07** at limit **
  10  norm          1.7738        .71233        .42211E-07    .20165E-03
  11  Prefactor     .10000E-03    49.717       -.36294E-06** at limit **
  12  Prefactor     .10000E-03    28.920       -.18358E-06** at limit **
  13  norm          .10991        7.3715       -.19189E-05    .86622E-04
  14  Prefactor     .10000E-03    17.702        .27358E-06** at limit **
  15  Prefactor     .10000E-03    20.356       -.53315E-06** at limit **
  16  Prefactor     .10000E-03    8.3963       -.76142E-07** at limit **
  17  Prefactor     .10000E-03    4.8377       -.14008E-06** at limit **
  18  norm          30.724        13.189       -.99372E-07   -.21713E-04
  19  norm          .22445        2.6436        .17516E-05   -.43450E-03
  20  Prefactor     3.1836        3.6203       -.91558E-07    .73720E-04
  21  norm          7.5825        5.8877       -.70924E-07    .14767E-04
  22  Prefactor     .10000E-03    6.0142        .34781E-07** at limit **
  23  Prefactor     3.1154        11.499       -.50601E-06    .37159E-04
  24  Prefactor     6.4503        5.2862       -.11652E-06    .41843E-04
  25  Prefactor     1.3173        26.768       -.22272E-05    .48598E-04
  26  Normalizat    .78285        .17156        .16146E-05    .22328E-03
  27  Prefactor     .97126        .76094E-01    .19984E-06    .58293E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.49252
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 172.098
  Prefactor  = 0.000100001
  Prefactor  = 26.7086
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.7738
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.109911
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 30.7242
  norm       = 0.224452
  Prefactor  = 3.18363
  norm       = 7.58253
  Prefactor  = 0.0001
  Prefactor  = 3.11537
  Prefactor  = 6.45034
  Prefactor  = 1.31728
  Normalizat = 0.782853
  Prefactor  = 0.971255
 **********
 **   18 **HESSE 
 **********

 FCN=   9072.937     FROM HESSE     STATUS=OK           500 CALLS     3838 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4835        .22296E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4925        .86710        .65522E-04   -1.5464    
   3  Prefactor     .10000E-03    19.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.5909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     172.10        88.210        .15382E-03   -1.3077    
   6  Prefactor     .10000E-03    15.021        .38576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.709        25.457        .77527E-04   -1.4674    
   8  Prefactor     .10000E-03    18.470        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.6835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.7738        .70906        .49285E-04   -1.5442    
  11  Prefactor     .10000E-03    50.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    29.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10991        9.4467        .74893E-01   -1.5642    
  14  Prefactor     .10000E-03    17.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.4090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.0383        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          30.724        13.192        .72282E-04   -1.4599    
  19  norm          .22445        8.6049        .21620E-02   -1.5613    
  20  Prefactor     3.1836        3.6105        .18672E-03   -1.5351    
  21  norm          7.5825        5.8870        .14563E-03   -1.5157    
  22  Prefactor     .10000E-03    6.0274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.1154        11.458        .22959E-03   -1.5355    
  24  Prefactor     6.4503        5.2934        .15801E-03   -1.5200    
  25  Prefactor     1.3173        27.213        .38289E-03   -1.5478    
  26  Normalizat    .78285        .18404        .38305E-03   -1.0071    
  27  Prefactor     .97126        .83031E-01    .15580E-03   -.93694    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16139e-09
Minuit parameter uncertainties:
  1  1.41111e-05
  2  0.867106
  3  8.50122e-06
  4  9.41474e-06
  5  88.278
  6  0.000277148
  7  25.467
  8  0.000132389
  9  3.54545e-05
  10  0.709064
  11  0.000136058
  12  0.000268966
  13  2.03734
  14  1.04569e-05
  15  0.000103023
  16  1.32711e-05
  17  4.62273e-05
  18  13.1928
  19  2.7793
  20  3.61073
  21  5.88744
  22  9.96114e-06
  23  11.4665
  24  5.29377
  25  11.9802
  26  0.184188
  27  0.0830415
Done.

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

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  3.072e+01  1.319e+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.713e-01  8.304e-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.829e-01  1.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.86
Ra Dec: 44.752 5.878
Photon Index (Fixed Index): 1.87 +/- 0.00
Photon Flux (Fixed Index): 5.76e-08 +/- 2.47e-08
Energy Flux (Fixed Index): 6.17e-05 +/- 2.65e-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) = 9072.71449652
delta logL = 0.222584687877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9072.70761523
delta logL = 0.229465982407

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.663       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0933       1.0000          .0000       5.0000    
     3 'Normalizat'    .77723       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97081       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=   9072.708     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      304 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.661        14.094        .79077E-04    .50893E-04
   2  alpha         2.0936        .34146        .85359E-02    .16254E-04
   3  Normalizat    .77724        .17567        .38421E-03    .53616E-04
   4  Prefactor     .97074        .79657E-01    .15579E-03    .65238E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 25.6611
  alpha      = 2.09365
  Normalizat = 0.777242
  Prefactor  = 0.970743
 **********
 **   18 **HESSE 
 **********

 FCN=   9072.708     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.661        13.680        .31631E-05   -1.4694    
   2  alpha         2.0936        .33142        .34144E-03   -.16327    
   3  Normalizat    .77724        .17569        .15369E-04   -1.0092    
   4  Prefactor     .97074        .79682E-01    .62317E-05   -.93711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.24679e-12
Minuit parameter uncertainties:
  1  13.6813
  2  0.332425
  3  0.175822
  4  0.0796913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/995408': 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) = 9072.7076136
delta logL = 0.229467611485

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  2.566e+01  1.368e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  2.094e+00  3.324e-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.707e-01  7.969e-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.772e-01  1.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.30
Ra Dec: 44.752 5.878
Photon Index (Free Index): 2.09 +/- 0.33
Photon Flux (Free Index): 7.02e-08 +/- 3.43e-08
Energy Flux (Free Index): 4.96e-05 +/- 2.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/995408/cmap_HighResolution_629164801_629424001_4FGL_J0259.0+0552_daily_bin1504.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.76e-08', energy_flux2='4.96e-05', photon_flux_error='2.47e-08', dlogl='2.29e-01', energy_flux='6.17e-05', photon_flux2='7.02e-08', job_status='DONE', time_completed='2021-08-17 06:32:22.413527', photon_index_error2='0.33', photon_index2='2.09', ts='15.86', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='2.54e-05', EG='0.78', time_epoch_completed='1629207142.41', return_code='0', job_id='995408', GAL2='0.97', EG2='0.78', return_code2='0', energy_flux_error='2.65e-05', photon_flux_error2='3.43e-08', ts2='16.30', photon_index='1.87' WHERE bin_id='1504' AND source_name='4FGL J0259.0+0552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 06:32:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 995408: <4FGL_J0259.0+0552_daily_bin1504> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0259.0+0552_daily_bin1504 44.7519 5.878 629164801 629424001 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 :                                   841.42 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             317.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            982 sec.

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

