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


Performing analysis on: 4FGL_J0259.0+0552_daily_bin1321
RA = 44.7519, Dec = 5.878
tmin = 581731201, tmax = 581990401
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='993865', job_status='RUN', time_executed='2021-08-17 06:17:29.312056', time_epoch_executed='1629206249.31' WHERE source_name='4FGL J0259.0+0552' and cadence='daily' and bin_id='1321'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993865

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993865/ft1_4FGL_J0259.0+0552_daily_bin1321.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993865/ft2_4FGL_J0259.0+0552_daily_bin1321.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993865/ft1_4FGL_J0259.0+0552_daily_bin1321.fits outfile=/scratch/kocevski/993865/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1321.fits ra=44.7519 dec=5.878 rad=12.0 tmin=581731201.0 tmax=581990401.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.50
user 2.41
sys 1.78

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993865/ft2_4FGL_J0259.0+0552_daily_bin1321.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/993865/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1321.fits evtable="EVENTS" outfile="/scratch/kocevski/993865/ft1_filtered_4FGL_J0259.0+0552_daily_bin1321.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.28
user 0.35
sys 1.78

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993865/ft1_filtered_4FGL_J0259.0+0552_daily_bin1321.fits" evtable="EVENTS" scfile=/scratch/kocevski/993865/ft2_4FGL_J0259.0+0552_daily_bin1321.fits sctable="SC_DATA" outfile=/scratch/kocevski/993865/ltcube_581731201_581990401_4FGL_J0259.0+0552_daily_bin1321.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/993865/ft2_4FGL_J0259.0+0552_daily_bin1321.fits
.....................!
real 16.27
user 13.84
sys 2.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993865/ft1_filtered_4FGL_J0259.0+0552_daily_bin1321.fits evtable="EVENTS" scfile=/scratch/kocevski/993865/ft2_4FGL_J0259.0+0552_daily_bin1321.fits sctable="SC_DATA" expcube=/scratch/kocevski/993865/ltcube_581731201_581990401_4FGL_J0259.0+0552_daily_bin1321.fits outfile=/scratch/kocevski/993865/expmap_581731201_581990401_4FGL_J0259.0+0552_daily_bin1321.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/993865/ltcube_581731201_581990401_4FGL_J0259.0+0552_daily_bin1321.fits
.....................!
real 193.93
user 185.61
sys 6.73

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/993865/ft1_filtered_4FGL_J0259.0+0552_daily_bin1321.fits scfile=/scratch/kocevski/993865/ft2_4FGL_J0259.0+0552_daily_bin1321.fits outfile=/scratch/kocevski/993865/cmap_581731201_581990401_4FGL_J0259.0+0552_daily_bin1321.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.31
user 0.38
sys 1.70

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993865/ft1_filtered_4FGL_J0259.0+0552_daily_bin1321.fits scfile=/scratch/kocevski/993865/ft2_4FGL_J0259.0+0552_daily_bin1321.fits outfile=/scratch/kocevski/993865/cmap_HighResolution_581731201_581990401_4FGL_J0259.0+0552_daily_bin1321.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.19
user 0.38
sys 1.72

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4571       1.0000         .10000E-03   10000.    
     2 'norm      '    3.7221       1.0000         .10000E-03   10000.    
     3 'Prefactor '    51.684       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.622       1.0000         .10000E-03   10000.    
     5 'Prefactor '    103.34       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10542E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6182       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.768       1.0000         .10000E-03   10000.    
    13 'norm      '    30.999       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .11037E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.2239       1.0000         .10000E-03   10000.    
    21 'norm      '    2.5633       1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.192       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10996E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .38747E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    51.256       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .74893       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96676       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=   3644.193     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3299 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4549        3.1395       -.87135E-06   -.50209E-03
   2  norm          3.7220        1.5393       -.68095E-08    .88618E-04
   3  Prefactor     51.689        43.257        .23014E-05    .90275E-04
   4  Prefactor     10.624        11.065       -.34950E-06   -.50952E-04
   5  Prefactor     103.36        91.636        .10899E-04    .15474E-04
   6  Prefactor     .10000E-03    9.5674       -.10970E-05** at limit **
   7  Prefactor     .10000E-03    27.068       -.22076E-04** at limit **
   8  Prefactor     4.6184        10.160       -.62988E-06   -.74778E-04
   9  Prefactor     .10000E-03    7.1319       -.15895E-06** at limit **
  10  norm          .10000E-03    .36348       -.10593E-07** at limit **
  11  Prefactor     .10000E-03    25.365        .65338E-05** at limit **
  12  Prefactor     16.764        30.204       -.17017E-05    .74659E-04
  13  norm          31.000        22.163       -.80966E-06   -.12937E-03
  14  Prefactor     .10000E-03    68.095        .64847E-04** at limit **
  15  Prefactor     .10000E-03    24.690        .17067E-04** at limit **
  16  Prefactor     .10000E-03    16.984       -.32964E-05** at limit **
  17  Prefactor     .10000E-03    4.2522       -.32391E-07** at limit **
  18  norm          .10000E-03    7.5886        .21037E-06** at limit **
  19  norm          .10000E-03    4.6615        .40235E-06** at limit **
  20  Prefactor     6.2233        7.7951        .55442E-07    .71436E-04
  21  norm          2.5342        39.695        .78934E-05    .51292E-04
  22  Prefactor     20.188        23.296        .11536E-05    .19946E-03
  23  Prefactor     .10000E-03    52.658       -.32951E-04** at limit **
  24  Prefactor     .10093E-03    13.774       -.32103E-05** at limit **
  25  Prefactor     51.252        38.318       -.22042E-05    .93535E-04
  26  Normalizat    .74920        .30060       -.68258E-07    .10574E-03
  27  Prefactor     .96659        .13826       -.27819E-06    .42968E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.45492
  norm       = 3.722
  Prefactor  = 51.6889
  Prefactor  = 10.6244
  Prefactor  = 103.356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.61837
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.7644
  norm       = 30.9999
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 6.22329
  norm       = 2.53417
  Prefactor  = 20.1876
  Prefactor  = 0.0001
  Prefactor  = 0.00010093
  Prefactor  = 51.252
  Normalizat = 0.7492
  Prefactor  = 0.966588
 **********
 **   18 **HESSE 
 **********

 FCN=   3644.193     FROM HESSE     STATUS=OK           482 CALLS     3781 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4549        3.0870        .14668E-03   -1.5467    
   2  norm          3.7220        1.5443        .45638E-04   -1.5322    
   3  Prefactor     51.689        43.062        .55786E-04   -1.4269    
   4  Prefactor     10.624        11.050        .12293E-03   -1.5056    
   5  Prefactor     103.36        91.628        .19777E-03   -1.3671    
   6  Prefactor     .10000E-03    9.6011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.6184        10.138        .18729E-03   -1.5278    
   9  Prefactor     .10000E-03    7.1459        .15745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .36841        .35528E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.764        30.387        .97809E-04   -1.4889    
  13  norm          31.000        22.156        .71965E-04   -1.4594    
  14  Prefactor     .10000E-03    68.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.2674        .12155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.5951        .16242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    10.752        .25219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.2233        7.7885        .16091E-03   -1.5209    
  21  norm          2.5342        37.286        .25498E-03   -1.5390    
  22  Prefactor     20.188        23.301        .89135E-04   -1.4809    
  23  Prefactor     .10000E-03    52.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10093E-03    133.53        .40467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     51.252        38.358        .56018E-04   -1.4275    
  26  Normalizat    .74920        .32615        .40745E-03   -1.0198    
  27  Prefactor     .96659        .15028        .17377E-03   -.93852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.13266e-09
Minuit parameter uncertainties:
  1  3.08731
  2  1.54429
  3  43.0876
  4  11.0522
  5  91.7534
  6  6.38821e-06
  7  7.67092e-06
  8  10.142
  9  4.87397e-06
  10  4.84642e-07
  11  7.57784e-06
  12  30.4147
  13  22.1618
  14  0.000109153
  15  1.21064e-06
  16  2.00655e-06
  17  4.24989e-06
  18  1.71368e-07
  19  0.000201816
  20  7.78978
  21  19.4552
  22  23.3115
  23  8.89737e-05
  24  0.0223396
  25  38.3764
  26  0.326997
  27  0.150344
Done.

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

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.000e-04  1.714e-07  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.666e-01  1.503e-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:  7.492e-01  3.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 44.752 5.878
Photon Flux Upper Limit: 6.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.46e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993865/likelihoodResults_581731201_581990401_4FGL_J0259.0+0552_daily_bin1321.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): 0
logL (Free Index) = 3644.19397875
delta logL = -0.000625986745035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3644.19335308
delta logL = -3.16954810842e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8649       1.0000          .0000       5.0000    
     3 'Normalizat'    .74897       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96668       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=   3644.193     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      236 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    32.370        .16260E-02** at limit **
   2  alpha         1.5214        2.7353        .17188       -.29765E-08
   3  Normalizat    .74920        .28716        .40745E-03   -.12024E-03
   4  Prefactor     .96659        .13902        .17377E-03   -.18963E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.52142
  Normalizat = 0.7492
  Prefactor  = 0.966586
 **********
 **   18 **HESSE 
 **********

 FCN=   3644.193     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.9252        .32520E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5214        3.0713        .68751E-02   -.40219    
   3  Normalizat    .74920        .28723        .16298E-04   -1.0198    
   4  Prefactor     .96659        .13906        .34754E-04   -.93852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.08523e-11
Minuit parameter uncertainties:
  1  4.84014e-06
  2  420.588
  3  0.287813
  4  0.139112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993865': 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) = 3644.19335249
delta logL = 2.73655132332e-07

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.000e-04  4.840e-06  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.521e+00  4.206e+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:  9.666e-01  1.391e-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:  7.492e-01  2.878e-01  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/993865/cmap_HighResolution_581731201_581990401_4FGL_J0259.0+0552_daily_bin1321.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.46e-05', job_status='DONE', photon_flux_upper_limit='6.96e-08', time_completed='2021-08-17 06:27:55.229093', job_id='993865', GAL2='0.97', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1629206875.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.74e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.87' WHERE bin_id='1321' AND source_name='4FGL J0259.0+0552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 06:27:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 993865: <4FGL_J0259.0+0552_daily_bin1321> in cluster <slac> Done

Job <4FGL_J0259.0+0552_daily_bin1321> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Aug 17 06:11:17 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 06:14:35 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:14:35 2021
Terminated at Tue Aug 17 06:27:56 2021
Results reported at Tue Aug 17 06:27:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0259.0+0552_daily_bin1321 44.7519 5.878 581731201 581990401 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 :                                   596.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            999 sec.

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

