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


Performing analysis on: 4FGL_J0259.0+0552_daily_bin1376
RA = 44.7519, Dec = 5.878
tmin = 595987201, tmax = 596246401
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='993947', job_status='RUN', time_executed='2021-08-17 06:16:11.246861', time_epoch_executed='1629206171.25' WHERE source_name='4FGL J0259.0+0552' and cadence='daily' and bin_id='1376'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993947

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993947/ft1_4FGL_J0259.0+0552_daily_bin1376.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993947/ft2_4FGL_J0259.0+0552_daily_bin1376.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993947/ft1_4FGL_J0259.0+0552_daily_bin1376.fits outfile=/scratch/kocevski/993947/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1376.fits ra=44.7519 dec=5.878 rad=12.0 tmin=595987201.0 tmax=596246401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.90
user 2.92
sys 1.80

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993947/ft2_4FGL_J0259.0+0552_daily_bin1376.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/993947/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1376.fits evtable="EVENTS" outfile="/scratch/kocevski/993947/ft1_filtered_4FGL_J0259.0+0552_daily_bin1376.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.60
user 0.33
sys 1.61

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993947/ft1_filtered_4FGL_J0259.0+0552_daily_bin1376.fits" evtable="EVENTS" scfile=/scratch/kocevski/993947/ft2_4FGL_J0259.0+0552_daily_bin1376.fits sctable="SC_DATA" outfile=/scratch/kocevski/993947/ltcube_595987201_596246401_4FGL_J0259.0+0552_daily_bin1376.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/993947/ft2_4FGL_J0259.0+0552_daily_bin1376.fits
.....................!
real 17.71
user 14.25
sys 2.20

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993947/ft1_filtered_4FGL_J0259.0+0552_daily_bin1376.fits evtable="EVENTS" scfile=/scratch/kocevski/993947/ft2_4FGL_J0259.0+0552_daily_bin1376.fits sctable="SC_DATA" expcube=/scratch/kocevski/993947/ltcube_595987201_596246401_4FGL_J0259.0+0552_daily_bin1376.fits outfile=/scratch/kocevski/993947/expmap_595987201_596246401_4FGL_J0259.0+0552_daily_bin1376.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/993947/ltcube_595987201_596246401_4FGL_J0259.0+0552_daily_bin1376.fits
.....................!
real 198.80
user 186.03
sys 9.44

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/993947/ft1_filtered_4FGL_J0259.0+0552_daily_bin1376.fits scfile=/scratch/kocevski/993947/ft2_4FGL_J0259.0+0552_daily_bin1376.fits outfile=/scratch/kocevski/993947/cmap_595987201_596246401_4FGL_J0259.0+0552_daily_bin1376.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.53
user 0.38
sys 1.56

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993947/ft1_filtered_4FGL_J0259.0+0552_daily_bin1376.fits scfile=/scratch/kocevski/993947/ft2_4FGL_J0259.0+0552_daily_bin1376.fits outfile=/scratch/kocevski/993947/cmap_HighResolution_595987201_596246401_4FGL_J0259.0+0552_daily_bin1376.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.67
user 0.39
sys 1.56

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6205       1.0000         .10000E-03   10000.    
     2 'norm      '    .11261E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.821       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12396E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .66364E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.1782       1.0000         .10000E-03   10000.    
    10 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.8359       1.0000         .10000E-03   10000.    
    13 'norm      '    11.579       1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.706       1.0000         .10000E-03   10000.    
    15 'Prefactor '    136.49       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.5916       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.9476       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    28.298       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .35068       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0479       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=   2803.041     FROM MIGRAD    STATUS=CONVERGED    657 CALLS     3351 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6183        5.8178        .24352E-05    .24249E-03
   2  norm          .10001E-03    1.0743        .16857E-06** at limit **
   3  Prefactor     22.797        45.488       -.80320E-05    .16080E-04
   4  Prefactor     .10000E-03    4.9618       -.23391E-06** at limit **
   5  Prefactor     .10003E-03    1736.9       -.37580E-04** at limit **
   6  Prefactor     .10019E-03    15.774       -.11934E-05** at limit **
   7  Prefactor     .10000E-03    106.82       -.29345E-05** at limit **
   8  Prefactor     .10000E-03    50.047       -.33769E-05** at limit **
   9  Prefactor     8.1692        19.591        .70846E-06    .65229E-04
  10  norm          .10000E-03    .82479       -.21805E-07** at limit **
  11  Prefactor     .10000E-03    59.550       -.68554E-06** at limit **
  12  Prefactor     7.8474        24.753        .45298E-06    .15088E-04
  13  norm          11.574        18.840       -.89343E-06    .54318E-04
  14  Prefactor     31.682        73.866       -.97391E-06    .23245E-04
  15  Prefactor     136.61        121.22        .10033E-05    .24600E-04
  16  Prefactor     .10000E-03    21.922       -.11689E-06** at limit **
  17  Prefactor     7.5928        11.046        .24136E-06    .15309E-04
  18  norm          .10000E-03    12.689       -.16218E-07** at limit **
  19  norm          .10000E-03    12.012       -.44187E-06** at limit **
  20  Prefactor     7.9477        7.6804        .53098E-07    .97920E-05
  21  norm          .10000E-03    7.6890       -.79556E-07** at limit **
  22  Prefactor     .10000E-03    42.224       -.73824E-07** at limit **
  23  Prefactor     .10000E-03    23.400       -.82511E-09** at limit **
  24  Prefactor     .10000E-03    8.6816       -.34280E-07** at limit **
  25  Prefactor     28.303        30.511        .12937E-06    .47926E-05
  26  Normalizat    .35055        .32382       -.28635E-05    .26164E-04
  27  Prefactor     1.0479        .13743       -.20380E-06    .85706E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.61829
  norm       = 0.000100008
  Prefactor  = 22.7969
  Prefactor  = 0.0001
  Prefactor  = 0.000100032
  Prefactor  = 0.000100186
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 8.16921
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.84738
  norm       = 11.5745
  Prefactor  = 31.682
  Prefactor  = 136.608
  Prefactor  = 0.0001
  Prefactor  = 7.59278
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.94769
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.3026
  Normalizat = 0.350553
  Prefactor  = 1.04786
 **********
 **   18 **HESSE 
 **********

 FCN=   2803.041     FROM HESSE     STATUS=OK           494 CALLS     3845 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6183        5.9098        .76443E-03   -1.5328    
   2  norm          .10001E-03    3.0520        .18827E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.797        45.061        .83848E-04   -1.4753    
   4  Prefactor     .10000E-03    4.9630        .11517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10003E-03    1765.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10019E-03    80.689        .39398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    107.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    50.785        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.1692        19.057        .14019E-03   -1.5136    
  10  norm          .10000E-03    .83614        .92184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    59.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.8474        24.618        .14324E-03   -1.5148    
  13  norm          11.574        18.768        .11773E-03   -1.5027    
  14  Prefactor     31.682        73.464        .71160E-04   -1.4582    
  15  Prefactor     136.61        120.53        .17237E-03   -1.3365    
  16  Prefactor     .10000E-03    21.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.5928        11.008        .14555E-03   -1.5157    
  18  norm          .10000E-03    12.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    12.401        .35790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.9477        7.6766        .13926E-03   -1.5144    
  21  norm          .10000E-03    7.7040        .14337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    42.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    23.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.7292        .15231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     28.303        30.540        .75312E-04   -1.4643    
  26  Normalizat    .35055        .31504        .50962E-03   -1.1994    
  27  Prefactor     1.0479        .13847        .14556E-03   -.91151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34437e-09
Minuit parameter uncertainties:
  1  5.91079
  2  0.000321318
  3  45.1279
  4  4.1623e-06
  5  0.0155123
  6  0.00774896
  7  0.000847337
  8  0.000332267
  9  19.071
  10  8.75501e-07
  11  3.50921e-05
  12  24.65
  13  18.7776
  14  73.6753
  15  120.75
  16  1.83565e-05
  17  11.0111
  18  1.27952e-05
  19  3.24764e-05
  20  7.67753
  21  7.45196e-06
  22  8.46784e-05
  23  4.26212e-05
  24  1.09759e-05
  25  30.5567
  26  0.316644
  27  0.138521
Done.

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

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.000e-04  1.280e-05  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.870e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
287         beta:  1.393e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  2.098e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
494    Prefactor:  1.048e+00  1.385e-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:  3.506e-01  3.166e-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: 9.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993947/likelihoodResults_595987201_596246401_4FGL_J0259.0+0552_daily_bin1376.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) = 2803.04124825
delta logL = -0.000374086388092

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2803.04087417
delta logL = -1.9758772396e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8800       1.0000          .0000       5.0000    
     3 'Normalizat'    .35051       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0479       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=   2803.041     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      199 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.005        .90712E-02** at limit **
   2  alpha         1.8898        3.3842        .42877       -.37056E-05
   3  Normalizat    .35055        .27167        .11494        .21592E-04
   4  Prefactor     1.0479        .13213        .40035E-01   -.38691E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.88978
  Normalizat = 0.350553
  Prefactor  = 1.04786
 **********
 **   18 **HESSE 
 **********

 FCN=   2803.041     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8898        3.3802        .50000       -.24658    
   3  Normalizat    .35055        .27226        .50967E-03   -1.1994    
   4  Prefactor     1.0479        .13292        .14556E-03   -.91151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43773e-11
Minuit parameter uncertainties:
  1  5.25973e-06
  2  2.42721
  3  0.273297
  4  0.132959
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993947': 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) = 2803.04087414
delta logL = 2.98232407658e-08

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.000e-04  5.260e-06  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.890e+00  2.427e+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:  1.048e+00  1.330e-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:  3.506e-01  2.733e-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/993947/cmap_HighResolution_595987201_596246401_4FGL_J0259.0+0552_daily_bin1376.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.79e-05', job_status='DONE', photon_flux_upper_limit='9.14e-08', time_completed='2021-08-17 06:25:33.417170', job_id='993947', GAL2='1.05', fit_tolerance='1e-08', EG2='0.35', EG='0.35', time_epoch_completed='1629206733.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.98e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.87' WHERE bin_id='1376' AND source_name='4FGL J0259.0+0552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 06:25:33 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0259.0+0552_daily_bin1376 44.7519 5.878 595987201 596246401 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 :                                   550.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   630 sec.
    Turnaround time :                            852 sec.

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

