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


Performing analysis on: 4FGL_J0259.0+0552_daily_bin1200
RA = 44.7519, Dec = 5.878
tmin = 550368001, tmax = 550627201
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='993680', job_status='RUN', time_executed='2021-08-17 06:15:50.415634', time_epoch_executed='1629206150.42' WHERE source_name='4FGL J0259.0+0552' and cadence='daily' and bin_id='1200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993680

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993680/ft1_4FGL_J0259.0+0552_daily_bin1200.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993680/ft2_4FGL_J0259.0+0552_daily_bin1200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993680/ft1_4FGL_J0259.0+0552_daily_bin1200.fits outfile=/scratch/kocevski/993680/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1200.fits ra=44.7519 dec=5.878 rad=12.0 tmin=550368001.0 tmax=550627201.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.28
user 3.78
sys 1.08

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993680/ft1_filtered_4FGL_J0259.0+0552_daily_bin1200.fits" evtable="EVENTS" scfile=/scratch/kocevski/993680/ft2_4FGL_J0259.0+0552_daily_bin1200.fits sctable="SC_DATA" outfile=/scratch/kocevski/993680/ltcube_550368001_550627201_4FGL_J0259.0+0552_daily_bin1200.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/993680/ft2_4FGL_J0259.0+0552_daily_bin1200.fits
.....................!
real 14.40
user 12.74
sys 1.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993680/ft1_filtered_4FGL_J0259.0+0552_daily_bin1200.fits evtable="EVENTS" scfile=/scratch/kocevski/993680/ft2_4FGL_J0259.0+0552_daily_bin1200.fits sctable="SC_DATA" expcube=/scratch/kocevski/993680/ltcube_550368001_550627201_4FGL_J0259.0+0552_daily_bin1200.fits outfile=/scratch/kocevski/993680/expmap_550368001_550627201_4FGL_J0259.0+0552_daily_bin1200.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/993680/ltcube_550368001_550627201_4FGL_J0259.0+0552_daily_bin1200.fits
.....................!
real 195.56
user 186.52
sys 5.88

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/993680/ft1_filtered_4FGL_J0259.0+0552_daily_bin1200.fits scfile=/scratch/kocevski/993680/ft2_4FGL_J0259.0+0552_daily_bin1200.fits outfile=/scratch/kocevski/993680/cmap_550368001_550627201_4FGL_J0259.0+0552_daily_bin1200.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.55
user 0.37
sys 1.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993680/ft1_filtered_4FGL_J0259.0+0552_daily_bin1200.fits scfile=/scratch/kocevski/993680/ft2_4FGL_J0259.0+0552_daily_bin1200.fits outfile=/scratch/kocevski/993680/cmap_HighResolution_550368001_550627201_4FGL_J0259.0+0552_daily_bin1200.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.66
user 0.36
sys 1.02

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    134.79       1.0000         .10000E-03   10000.    
     5 'Prefactor '    259.90       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11533E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    169.23       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10355E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .95497E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    32.888       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .19102E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    18.383       1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.481       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .20792E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .13077E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .35939       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2100       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=   2237.562     FROM MIGRAD    STATUS=CONVERGED    677 CALLS     3887 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.7806       -.18996E-05** at limit **
   2  norm          .10000E-03    .87591        .12777E-08** at limit **
   3  Prefactor     .10000E-03    42.336        .39802E-06** at limit **
   4  Prefactor     134.80        153.77        .96369E-06   -.71870E-05
   5  Prefactor     260.19        476.96       -.70656E-05   -.47607E-05
   6  Prefactor     .10000E-03    102.62        .21190E-05** at limit **
   7  Prefactor     .10000E-03    29.418       -.84857E-06** at limit **
   8  Prefactor     .10000E-03    49.806       -.49942E-05** at limit **
   9  Prefactor     .10000E-03    86.222       -.12944E-06** at limit **
  10  norm          .10000E-03    8.0720       -.21434E-06** at limit **
  11  Prefactor     169.07        329.74        .42015E-05    .25208E-05
  12  Prefactor     .10000E-03    16.344       -.62740E-07** at limit **
  13  norm          .10000E-03    39.582       -.92702E-06** at limit **
  14  Prefactor     .10001E-03    419.44        .21027E-04** at limit **
  15  Prefactor     .10000E-03    94.764        .22840E-05** at limit **
  16  Prefactor     .10000E-03    252.90       -.40178E-05** at limit **
  17  Prefactor     .10000E-03    6.3456        .19746E-06** at limit **
  18  norm          .10000E-03    11.496        .23761E-07** at limit **
  19  norm          32.872        15.633        .39422E-07    .50498E-04
  20  Prefactor     .44610        16.564        .55124E-05    .26092E-03
  21  norm          18.422        37.175       -.10850E-05    .27748E-04
  22  Prefactor     23.279        30.530       -.47489E-05    .34917E-04
  23  Prefactor     .10001E-03    75.351        .35314E-05** at limit **
  24  Prefactor     .10000E-03    15.673       -.10449E-05** at limit **
  25  Prefactor     .10003E-03    459.96       -.69883E-04** at limit **
  26  Normalizat    .35944        .36641       -.10086E-04   -.62054E-04
  27  Prefactor     1.2090        .19181        .10780E-05   -.34271E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 134.8
  Prefactor  = 260.191
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 169.072
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 32.8718
  Prefactor  = 0.446102
  norm       = 18.422
  Prefactor  = 23.2791
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.000100034
  Normalizat = 0.359439
  Prefactor  = 1.20899
 **********
 **   18 **HESSE 
 **********

 FCN=   2237.562     FROM HESSE     STATUS=OK           478 CALLS     4365 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.7652        .13674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .87928        .43224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    42.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     134.80        153.78        .17344E-03   -1.3381    
   5  Prefactor     260.19        476.35        .12570E-03   -1.2468    
   6  Prefactor     .10000E-03    102.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    49.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    86.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    8.0716        .13127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     169.07        329.91        .15506E-03   -1.3100    
  12  Prefactor     .10000E-03    16.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    39.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    417.68        .20792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    94.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    253.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.3611        .11639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    11.500        .15667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          32.872        15.622        .69873E-04   -1.4561    
  20  Prefactor     .44610        57.709        .34900E-02   -1.5574    
  21  norm          18.422        37.241        .93416E-04   -1.4849    
  22  Prefactor     23.279        30.393        .82664E-04   -1.4743    
  23  Prefactor     .10001E-03    76.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    15.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10003E-03    452.91        .59633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .35944        .35731        .57077E-03   -1.1945    
  27  Prefactor     1.2090        .18894        .16279E-03   -.86055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74657e-09
Minuit parameter uncertainties:
  1  5.62437e-05
  2  5.26714e-06
  3  0.000150693
  4  154.24
  5  483.76
  6  0.000591724
  7  6.91477e-05
  8  0.000428268
  9  0.000129387
  10  6.64067e-06
  11  333.624
  12  3.04228e-05
  13  9.3867e-05
  14  0.00437888
  15  0.000642535
  16  0.000930326
  17  2.20286e-05
  18  3.30722e-06
  19  15.624
  20  10.1566
  21  37.2876
  22  30.4135
  23  0.00178444
  24  5.49116e-05
  25  0.00788829
  26  0.359607
  27  0.189046
Done.

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

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.000e-04  3.307e-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:  1.209e+00  1.890e-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.594e-01  3.596e-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: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993680/likelihoodResults_550368001_550627201_4FGL_J0259.0+0552_daily_bin1200.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) = 2237.56193356
delta logL = -0.000376643095933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2237.56155692
delta logL = -3.77349351766e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8577       1.0000          .0000       5.0000    
     3 'Normalizat'    .35945       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2090       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=   2237.562     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      242 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    406.67        .15781E-01** at limit **
   2  alpha         1.4811        2.7415        .17206       -.20813E-08
   3  Normalizat    .35944        .59070E-01    .57076E-03   -.21512E-05
   4  Prefactor     1.2090        .30070E-01    .16279E-03   -.97421E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.48111
  Normalizat = 0.359438
  Prefactor  = 1.20899
 **********
 **   18 **HESSE 
 **********

 FCN=   2237.562     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.917        .16575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4811        2.5477        .68824E-02   -.41977    
   3  Normalizat    .35944        .35100        .22831E-04   -1.1945    
   4  Prefactor     1.2090        .17967        .65116E-05   -.86055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8584e-12
Minuit parameter uncertainties:
  1  4.0699e-05
  2  406.988
  3  0.353177
  4  0.179758
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993680': 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) = 2237.56155645
delta logL = 4.64434378955e-07

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.000e-04  4.070e-05  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.481e+00  4.070e+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:  1.209e+00  1.798e-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.594e-01  3.532e-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/993680/cmap_HighResolution_550368001_550627201_4FGL_J0259.0+0552_daily_bin1200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-04', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-08-17 06:24:18.564667', job_id='993680', GAL2='1.21', fit_tolerance='1e-08', EG2='0.36', EG='0.36', time_epoch_completed='1629206658.56', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='4.64e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.87' WHERE bin_id='1200' AND source_name='4FGL J0259.0+0552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 06:24:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 993680: <4FGL_J0259.0+0552_daily_bin1200> in cluster <slac> Done

Job <4FGL_J0259.0+0552_daily_bin1200> 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) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 06:11:47 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:47 2021
Terminated at Tue Aug 17 06:24:19 2021
Results reported at Tue Aug 17 06:24:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0259.0+0552_daily_bin1200 44.7519 5.878 550368001 550627201 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 :                                   494.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             277.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            794 sec.

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

