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


Performing analysis on: 4FGL_J0259.0+0552_daily_bin1220
RA = 44.7519, Dec = 5.878
tmin = 555552001, tmax = 555811201
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='993715', job_status='RUN', time_executed='2021-08-17 06:15:12.046293', time_epoch_executed='1629206112.05' WHERE source_name='4FGL J0259.0+0552' and cadence='daily' and bin_id='1220'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993715

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993715/ft1_4FGL_J0259.0+0552_daily_bin1220.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993715/ft2_4FGL_J0259.0+0552_daily_bin1220.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993715/ft1_4FGL_J0259.0+0552_daily_bin1220.fits outfile=/scratch/kocevski/993715/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1220.fits ra=44.7519 dec=5.878 rad=12.0 tmin=555552001.0 tmax=555811201.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 3.91
user 2.78
sys 0.75

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993715/ft2_4FGL_J0259.0+0552_daily_bin1220.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/993715/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1220.fits evtable="EVENTS" outfile="/scratch/kocevski/993715/ft1_filtered_4FGL_J0259.0+0552_daily_bin1220.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.26
user 0.29
sys 0.69

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993715/ft1_filtered_4FGL_J0259.0+0552_daily_bin1220.fits evtable="EVENTS" scfile=/scratch/kocevski/993715/ft2_4FGL_J0259.0+0552_daily_bin1220.fits sctable="SC_DATA" expcube=/scratch/kocevski/993715/ltcube_555552001_555811201_4FGL_J0259.0+0552_daily_bin1220.fits outfile=/scratch/kocevski/993715/expmap_555552001_555811201_4FGL_J0259.0+0552_daily_bin1220.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/993715/ltcube_555552001_555811201_4FGL_J0259.0+0552_daily_bin1220.fits
.....................!
real 158.15
user 151.53
sys 4.65

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/993715/ft1_filtered_4FGL_J0259.0+0552_daily_bin1220.fits scfile=/scratch/kocevski/993715/ft2_4FGL_J0259.0+0552_daily_bin1220.fits outfile=/scratch/kocevski/993715/cmap_555552001_555811201_4FGL_J0259.0+0552_daily_bin1220.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.31
user 0.32
sys 0.67

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993715/ft1_filtered_4FGL_J0259.0+0552_daily_bin1220.fits scfile=/scratch/kocevski/993715/ft2_4FGL_J0259.0+0552_daily_bin1220.fits outfile=/scratch/kocevski/993715/cmap_HighResolution_555552001_555811201_4FGL_J0259.0+0552_daily_bin1220.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.13
user 0.32
sys 0.68

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4671       1.0000         .10000E-03   10000.    
     2 'norm      '    .80720       1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.034       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0794       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12779E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.939       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .49820E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    66.590       1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.116       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .29921E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    2.3075       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1151       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0270       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .89829       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=   6956.925     FROM MIGRAD    STATUS=CONVERGED   1190 CALLS     3900 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4663        3.3837        .11129E-03    .63950E-04
   2  norm          .80712        .73997        .64613E-03   -.49626E-03
   3  Prefactor     32.040        29.716        .70795E-04    .22482E-05
   4  Prefactor     4.0788        4.3565        .17489E-03    .61039E-04
   5  Prefactor     .10000E-03    728.61        .36285E-03** at limit **
   6  Prefactor     .10000E-03    2.4021        .12603E-02** at limit **
   7  Prefactor     10.948        15.859        .12113E-03   -.27968E-04
   8  Prefactor     .10000E-03    3.2639        .14703E-02** at limit **
   9  Prefactor     .10000E-03    3.7666        .15762E-02** at limit **
  10  norm          .10000E-03    .14937        .61719E-04** at limit **
  11  Prefactor     .10000E-03    14.409        .18142E-02** at limit **
  12  Prefactor     .10000E-03    31.599        .98917E-01** at limit **
  13  norm          .10000E-03    5.3843        .18142E-02** at limit **
  14  Prefactor     66.585        41.329        .49183E-04    .17567E-04
  15  Prefactor     25.158        73.937        .79932E-04   -.44091E-05
  16  Prefactor     .10000E-03    21.546        .18142E-02** at limit **
  17  Prefactor     .10000E-03    2.2645        .12249E-02** at limit **
  18  norm          .10010E-03    73.194        .42655E-02** at limit **
  19  norm          2.3089        5.1211        .26496E-03    .14001E-03
  20  Prefactor     1.1154        9.6900        .22306E-02    .54806E-04
  21  norm          .10000E-03    9.9098        .18142E-02** at limit **
  22  Prefactor     .10000E-03    6.3036        .18142E-02** at limit **
  23  Prefactor     .10000E-03    9.2160        .18142E-02** at limit **
  24  Prefactor     .10000E-03    1.8919        .11192E-02** at limit **
  25  Prefactor     .10000E-03    14.096        .18142E-02** at limit **
  26  Normalizat    1.0275        .27197        .38044E-03    .91142E-05
  27  Prefactor     .89821        .96531E-01    .15807E-03    .14525E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.4663
  norm       = 0.807125
  Prefactor  = 32.0401
  Prefactor  = 4.07885
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.9476
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 66.585
  Prefactor  = 25.1581
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100102
  norm       = 2.30893
  Prefactor  = 1.11541
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.02748
  Prefactor  = 0.89821
 **********
 **   18 **HESSE 
 **********

 FCN=   6956.925     FROM HESSE     STATUS=OK           474 CALLS     4374 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4663        3.3834        .44515E-05   -1.5240    
   2  norm          .80712        .73996        .12923E-03   -1.5528    
   3  Prefactor     32.040        29.714        .28318E-05   -1.4575    
   4  Prefactor     4.0788        4.3564        .69956E-05   -1.5304    
   5  Prefactor     .10000E-03    728.61        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4022        .25206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.948        15.855        .48453E-05   -1.5046    
   8  Prefactor     .10000E-03    3.2640        .29407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.7672        .31524E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .14937        .12344E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.409        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    29.012        .10397       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.3852        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     66.585        41.327        .19673E-05   -1.4074    
  15  Prefactor     25.158        73.945        .31973E-05   -1.4704    
  16  Prefactor     .10000E-03    21.551        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.2646        .24498E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10010E-03    75.671        .17062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.3089        5.1174        .10598E-04   -1.5404    
  20  Prefactor     1.1154        9.6729        .89223E-04   -1.5497    
  21  norm          .10000E-03    9.9158        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.3037        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.2161        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.8919        .22383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    14.098        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0275        .27187        .15218E-04   -.92116    
  27  Prefactor     .89821        .96523E-01    .31614E-04   -.96204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40131e-09
Minuit parameter uncertainties:
  1  3.3835
  2  0.739967
  3  29.7281
  4  4.35672
  5  0.00133687
  6  9.89756e-06
  7  15.8613
  8  7.61662e-06
  9  6.68922e-06
  10  2.99134e-07
  11  5.07803e-05
  12  0.000495258
  13  1.41261e-05
  14  41.3452
  15  74.2163
  16  5.34905e-06
  17  1.55389e-06
  18  0.00555779
  19  5.11839
  20  6.57054
  21  3.21074e-05
  22  2.92365e-06
  23  5.07136e-07
  24  2.28882e-06
  25  5.41142e-05
  26  0.272242
  27  0.0965414
Done.

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

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.001e-04  5.558e-03  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:  8.982e-01  9.654e-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:  1.027e+00  2.722e-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: 5.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.86e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993715/likelihoodResults_555552001_555811201_4FGL_J0259.0+0552_daily_bin1220.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) = 6956.92484722
delta logL = -6.33048412055e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6956.14892986
delta logL = 0.775854057759

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5249       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3520       1.0000          .0000       5.0000    
     3 'Normalizat'    .98534       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89767       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6956.149     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      258 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5317        30.566        .86459E-02    .36817E-03
   2  alpha         3.3502        4.0229        .24128        .65040E-04
   3  Normalizat    .98495        .75535E-01    .87468E-01    .52286E-03
   4  Prefactor     .89775        .27282E-01    .44975E-01   -.27556E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.53168
  alpha      = 3.35023
  Normalizat = 0.984954
  Prefactor  = 0.897752
 **********
 **   18 **HESSE 
 **********

 FCN=   6956.149     FROM HESSE     STATUS=OK            33 CALLS      291 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5317        5.0549        .93699E-04   -1.5460    
   2  alpha         3.3502        1.4079        .11995E-01    .34701    
   3  Normalizat    .98495        .24151        .19365E-02   -.93536    
   4  Prefactor     .89775        .93040E-01    .15792E-03   -.96220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.7791e-08
Minuit parameter uncertainties:
  1  5.05627
  2  1.50947
  3  0.241774
  4  0.0930564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993715': 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) = 6956.14892572
delta logL = 0.775858195044

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.532e+00  5.056e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  3.350e+00  1.509e+00  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:  8.978e-01  9.306e-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:  9.850e-01  2.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.57
Ra Dec: 44.752 5.878
Photon Index (Free Index): 3.35 +/- 1.51
Photon Flux (Free Index): 6.83e-08 +/- 7.64e-08
Energy Flux (Free Index): 1.44e-05 +/- 1.38e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/993715/cmap_HighResolution_555552001_555811201_4FGL_J0259.0+0552_daily_bin1220.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.86e-05', comment='SUCCESS', energy_flux2='1.44e-05', dlogl='7.76e-01', photon_flux2='6.83e-08', job_status='DONE', time_completed='2021-08-17 06:26:53.615098', photon_index_error2='1.51', photon_index2='3.35', ts='-0.00', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='5.47e-08', energy_flux_error2='1.38e-05', EG='1.03', time_epoch_completed='1629206813.62', return_code='0', job_id='993715', GAL2='0.90', EG2='0.98', return_code2='0', photon_flux_error2='7.64e-08', ts2='1.57', photon_index='1.87' WHERE bin_id='1220' AND source_name='4FGL J0259.0+0552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 06:26:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 993715: <4FGL_J0259.0+0552_daily_bin1220> in cluster <slac> Done

Job <4FGL_J0259.0+0552_daily_bin1220> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Aug 17 06:11:07 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 06:12:08 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:12:08 2021
Terminated at Tue Aug 17 06:26:54 2021
Results reported at Tue Aug 17 06:26:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0259.0+0552_daily_bin1220 44.7519 5.878 555552001 555811201 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 :                                   688.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            947 sec.

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

