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


Performing analysis on: 4FGL_J0259.0+0552_daily_bin1204
RA = 44.7519, Dec = 5.878
tmin = 551404801, tmax = 551664001
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='993685', job_status='RUN', time_executed='2021-08-17 06:16:15.856710', time_epoch_executed='1629206175.86' WHERE source_name='4FGL J0259.0+0552' and cadence='daily' and bin_id='1204'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993685

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993685/ft1_4FGL_J0259.0+0552_daily_bin1204.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993685/ft2_4FGL_J0259.0+0552_daily_bin1204.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993685/ft1_4FGL_J0259.0+0552_daily_bin1204.fits outfile=/scratch/kocevski/993685/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1204.fits ra=44.7519 dec=5.878 rad=12.0 tmin=551404801.0 tmax=551664001.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.93
user 3.36
sys 1.10

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993685/ft1_filtered_4FGL_J0259.0+0552_daily_bin1204.fits" evtable="EVENTS" scfile=/scratch/kocevski/993685/ft2_4FGL_J0259.0+0552_daily_bin1204.fits sctable="SC_DATA" outfile=/scratch/kocevski/993685/ltcube_551404801_551664001_4FGL_J0259.0+0552_daily_bin1204.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/993685/ft2_4FGL_J0259.0+0552_daily_bin1204.fits
.....................!
real 14.14
user 11.77
sys 1.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993685/ft1_filtered_4FGL_J0259.0+0552_daily_bin1204.fits evtable="EVENTS" scfile=/scratch/kocevski/993685/ft2_4FGL_J0259.0+0552_daily_bin1204.fits sctable="SC_DATA" expcube=/scratch/kocevski/993685/ltcube_551404801_551664001_4FGL_J0259.0+0552_daily_bin1204.fits outfile=/scratch/kocevski/993685/expmap_551404801_551664001_4FGL_J0259.0+0552_daily_bin1204.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/993685/ltcube_551404801_551664001_4FGL_J0259.0+0552_daily_bin1204.fits
.....................!
real 194.82
user 185.18
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/993685/ft1_filtered_4FGL_J0259.0+0552_daily_bin1204.fits scfile=/scratch/kocevski/993685/ft2_4FGL_J0259.0+0552_daily_bin1204.fits outfile=/scratch/kocevski/993685/cmap_551404801_551664001_4FGL_J0259.0+0552_daily_bin1204.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.55
user 0.37
sys 0.95

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993685/ft1_filtered_4FGL_J0259.0+0552_daily_bin1204.fits scfile=/scratch/kocevski/993685/ft2_4FGL_J0259.0+0552_daily_bin1204.fits outfile=/scratch/kocevski/993685/cmap_HighResolution_551404801_551664001_4FGL_J0259.0+0552_daily_bin1204.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.92
user 0.38
sys 1.05

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3576       1.0000         .10000E-03   10000.    
     2 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.203       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    154.90       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.0682       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.418       1.0000         .10000E-03   10000.    
    10 'norm      '    .10885E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    43.751       1.0000         .10000E-03   10000.    
    13 'norm      '    3.3549       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14195E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9119       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.876       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .28873E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .78798       1.0000         .10000E-03   10000.    
    21 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10428E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    108.38       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .42864       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .93066       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=   3320.749     FROM MIGRAD    STATUS=CONVERGED    676 CALLS     3330 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3578        3.0415        .44731E-06    .54569E-04
   2  norm          .10000E-03    1.1401       -.67388E-07** at limit **
   3  Prefactor     20.204        26.083        .11123E-05    .41337E-05
   4  Prefactor     .10000E-03    2.6995       -.24525E-07** at limit **
   5  Prefactor     154.87        113.18       -.22334E-04   -.93327E-05
   6  Prefactor     .10000E-03    11.444       -.47423E-07** at limit **
   7  Prefactor     1.0868        28.520       -.64053E-06    .15830E-04
   8  Prefactor     .10000E-03    6.9698        .58042E-07** at limit **
   9  Prefactor     36.457        21.793        .75492E-06    .13690E-03
  10  norm          .10000E-03    .94869       -.28099E-06** at limit **
  11  Prefactor     .10000E-03    87.220        .12376E-04** at limit **
  12  Prefactor     43.748        43.475       -.72524E-06    .16617E-04
  13  norm          3.3550        12.243        .10367E-05   -.14557E-03
  14  Prefactor     .10000E-03    32.265       -.13981E-05** at limit **
  15  Prefactor     .10000E-03    442.98       -.41513E-03** at limit **
  16  Prefactor     5.9250        43.826       -.62591E-05   -.89385E-05
  17  Prefactor     20.875        16.131        .17778E-06    .11028E-04
  18  norm          .10000E-03    6.5113       -.11160E-07** at limit **
  19  norm          .10307E-03    3.9373        .21882E-05** at limit **
  20  Prefactor     .78926        17.203       -.51906E-05    .73057E-04
  21  norm          .10000E-03    13.967       -.11527E-06** at limit **
  22  Prefactor     .10000E-03    73.178       -.43449E-04** at limit **
  23  Prefactor     .10000E-03    213.34        .17399E-03** at limit **
  24  Prefactor     .10000E-03    7.5573       -.70774E-09** at limit **
  25  Prefactor     108.37        55.652       -.37585E-05   -.61875E-04
  26  Normalizat    .42855        .44164        .71462E-05    .40458E-04
  27  Prefactor     .93067        .13969       -.10525E-06   -.15131E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.35782
  norm       = 0.0001
  Prefactor  = 20.2036
  Prefactor  = 0.0001
  Prefactor  = 154.869
  Prefactor  = 0.0001
  Prefactor  = 1.08681
  Prefactor  = 0.0001
  Prefactor  = 36.4565
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.7481
  norm       = 3.35496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.92498
  Prefactor  = 20.8746
  norm       = 0.0001
  norm       = 0.000103073
  Prefactor  = 0.789258
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 108.37
  Normalizat = 0.428552
  Prefactor  = 0.930671
 **********
 **   18 **HESSE 
 **********

 FCN=   3320.749     FROM HESSE     STATUS=OK           494 CALLS     3824 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3578        3.0373        .91621E-04   -1.5341    
   2  norm          .10000E-03    1.8440        .11881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.204        26.045        .89109E-04   -1.4809    
   4  Prefactor     .10000E-03    2.7026        .92459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     154.87        112.73        .16195E-03   -1.3213    
   6  Prefactor     .10000E-03    11.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.0868        144.10        .56816E-02   -1.5499    
   8  Prefactor     .10000E-03    6.9858        .14856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     36.457        19.564        .66410E-04   -1.4500    
  10  norm          .10000E-03    1.7297        .96918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    87.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     43.748        42.992        .60611E-04   -1.4384    
  13  norm          3.3550        12.175        .22095E-03   -1.5342    
  14  Prefactor     .10000E-03    32.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    443.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.9250        42.813        .16516E-03   -1.5221    
  17  Prefactor     20.875        16.027        .87662E-04   -1.4794    
  18  norm          .10000E-03    6.5127        .14362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10307E-03    61.054        .22002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .78926        62.793        .44640E-02   -1.5530    
  21  norm          .10000E-03    14.303        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    73.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    214.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.5956        .15465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     108.37        55.465        .38633E-04   -1.3622    
  26  Normalizat    .42855        .40778        .58670E-03   -1.1585    
  27  Prefactor     .93067        .13649        .14769E-03   -.95077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.73009e-08
Minuit parameter uncertainties:
  1  3.0374
  2  1.05142e-05
  3  26.0594
  4  2.96266e-06
  5  112.883
  6  2.00737e-05
  7  25.0898
  8  1.75886e-05
  9  19.5674
  10  3.08795e-05
  11  0.000220967
  12  43.0228
  13  12.1839
  14  6.20614e-05
  15  0.000770497
  16  31.8859
  17  16.0299
  18  2.40133e-06
  19  0.027421
  20  14.0942
  21  5.41335e-05
  22  2.07991e-05
  23  0.000202432
  24  1.13777e-05
  25  55.4916
  26  0.410659
  27  0.136542
Done.

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

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.000e-04  2.401e-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:  9.307e-01  1.365e-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:  4.286e-01  4.107e-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.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993685/likelihoodResults_551404801_551664001_4FGL_J0259.0+0552_daily_bin1204.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) = 3320.75019983
delta logL = -0.000719678489986

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3320.74948013
delta logL = 2.55727172771e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8601       1.0000          .0000       5.0000    
     3 'Normalizat'    .42854       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93067       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=   3320.749     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      249 TOTAL
                     EDM=   .92E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    290.33        .14421E-01** at limit **
   2  alpha         1.4791        3.2393        .17200        .38006E-08
   3  Normalizat    .42855        .62558E-01    .58670E-03    .58908E-05
   4  Prefactor     .93067        .22949E-01    .14769E-03    .22900E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.47911
  Normalizat = 0.428548
  Prefactor  = 0.930672
 **********
 **   18 **HESSE 
 **********

 FCN=   3320.749     FROM HESSE     STATUS=OK            23 CALLS      272 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.0975        .14977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4791        3.1065        .68800E-02   -.42065    
   3  Normalizat    .42855        .36399        .23468E-04   -1.1585    
   4  Prefactor     .93067        .13421        .59077E-05   -.95077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04421e-12
Minuit parameter uncertainties:
  1  7.93165e-06
  2  345.688
  3  0.366029
  4  0.134254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993685': 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) = 3320.74947954
delta logL = 6.17443220108e-07

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.000e-04  7.932e-06  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.479e+00  3.457e+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.307e-01  1.343e-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:  4.285e-01  3.660e-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/993685/cmap_HighResolution_551404801_551664001_4FGL_J0259.0+0552_daily_bin1204.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.33e-05', job_status='DONE', photon_flux_upper_limit='6.84e-08', time_completed='2021-08-17 06:25:51.014507', job_id='993685', GAL2='0.93', fit_tolerance='1e-08', EG2='0.43', EG='0.43', time_epoch_completed='1629206751.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='6.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.87' WHERE bin_id='1204' AND source_name='4FGL J0259.0+0552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 06:25:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 993685: <4FGL_J0259.0+0552_daily_bin1204> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0259.0+0552_daily_bin1204 44.7519 5.878 551404801 551664001 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 :                                   562.20 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             236.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            887 sec.

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

