/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 22 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 = 7383
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0259.0+0552_daily_bin276
RA = 44.7519, Dec = 5.878
tmin = 310867201, tmax = 311126401
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='988789', job_status='RUN', time_executed='2021-08-17 05:58:35.765230', time_epoch_executed='1629205115.77' WHERE source_name='4FGL J0259.0+0552' and cadence='daily' and bin_id='276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/988789

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/988789/ft1_4FGL_J0259.0+0552_daily_bin276.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/988789/ft2_4FGL_J0259.0+0552_daily_bin276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/988789/ft1_4FGL_J0259.0+0552_daily_bin276.fits outfile=/scratch/kocevski/988789/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin276.fits ra=44.7519 dec=5.878 rad=12.0 tmin=310867201.0 tmax=311126401.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.77
user 3.32
sys 1.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/988789/ft1_filtered_4FGL_J0259.0+0552_daily_bin276.fits" evtable="EVENTS" scfile=/scratch/kocevski/988789/ft2_4FGL_J0259.0+0552_daily_bin276.fits sctable="SC_DATA" outfile=/scratch/kocevski/988789/ltcube_310867201_311126401_4FGL_J0259.0+0552_daily_bin276.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/988789/ft2_4FGL_J0259.0+0552_daily_bin276.fits
.....................!
real 14.11
user 12.31
sys 1.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/988789/ft1_filtered_4FGL_J0259.0+0552_daily_bin276.fits evtable="EVENTS" scfile=/scratch/kocevski/988789/ft2_4FGL_J0259.0+0552_daily_bin276.fits sctable="SC_DATA" expcube=/scratch/kocevski/988789/ltcube_310867201_311126401_4FGL_J0259.0+0552_daily_bin276.fits outfile=/scratch/kocevski/988789/expmap_310867201_311126401_4FGL_J0259.0+0552_daily_bin276.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/988789/ltcube_310867201_311126401_4FGL_J0259.0+0552_daily_bin276.fits
.....................!
real 192.96
user 185.43
sys 5.50

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/988789/ft1_filtered_4FGL_J0259.0+0552_daily_bin276.fits scfile=/scratch/kocevski/988789/ft2_4FGL_J0259.0+0552_daily_bin276.fits outfile=/scratch/kocevski/988789/cmap_310867201_311126401_4FGL_J0259.0+0552_daily_bin276.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.88
user 0.37
sys 1.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/988789/ft1_filtered_4FGL_J0259.0+0552_daily_bin276.fits scfile=/scratch/kocevski/988789/ft2_4FGL_J0259.0+0552_daily_bin276.fits outfile=/scratch/kocevski/988789/cmap_HighResolution_310867201_311126401_4FGL_J0259.0+0552_daily_bin276.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.86
user 0.40
sys 1.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2879       1.0000         .10000E-03   10000.    
     2 'norm      '    .95378       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.2494       1.0000         .10000E-03   10000.    
    10 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.7412       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5261       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13513       1.0000         .10000E-03   10000.    
    18 'norm      '    11.612       1.0000         .10000E-03   10000.    
    19 'norm      '    4.3849       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10652E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.5848       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .44482E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    16.643       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0965       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96199       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=   7026.785     FROM MIGRAD    STATUS=CONVERGED    664 CALLS     3362 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2879        2.8586        .11890E-06   -.23871E-04
   2  norm          .95380        .82823        .67594E-07    .82158E-04
   3  Prefactor     .10000E-03    6.9681        .21406E-05** at limit **
   4  Prefactor     .10000E-03    6.4816       -.82540E-06** at limit **
   5  Prefactor     .10000E-03    36.454        .84424E-07** at limit **
   6  Prefactor     .10000E-03    1.7075       -.15067E-07** at limit **
   7  Prefactor     .10000E-03    6.3952       -.21368E-05** at limit **
   8  Prefactor     .10000E-03    7.6866       -.19144E-05** at limit **
   9  Prefactor     9.2483        9.6940       -.51144E-06   -.32810E-04
  10  norm          .10000E-03    .23166        .74724E-07** at limit **
  11  Prefactor     .10000E-03    11.495        .57745E-06** at limit **
  12  Prefactor     9.7417        17.677       -.76443E-06    .95426E-05
  13  norm          .10000E-03    2.6688        .22068E-06** at limit **
  14  Prefactor     .10000E-03    7.6533        .13380E-05** at limit **
  15  Prefactor     3.5165        149.32       -.18065E-04    .45354E-06
  16  Prefactor     .10000E-03    23.262       -.36230E-06** at limit **
  17  Prefactor     .12873        .18813        .70132E-07   -.65392E-03
  18  norm          11.613        10.960        .74460E-06   -.20687E-05
  19  norm          4.3848        4.8493       -.70974E-06   -.44883E-04
  20  Prefactor     .10000E-03    2.5334        .21846E-07** at limit **
  21  norm          2.5857        7.1608       -.95680E-06   -.66406E-04
  22  Prefactor     .10000E-03    5.0378       -.22887E-07** at limit **
  23  Prefactor     .10000E-03    6.1946        .11576E-05** at limit **
  24  Prefactor     .10006E-03    5.6388        .45983E-06** at limit **
  25  Prefactor     16.643        19.693        .11701E-06   -.15985E-04
  26  Normalizat    1.0965        .21303        .83576E-06   -.52983E-04
  27  Prefactor     .96203        .88898E-01   -.41432E-06   -.41217E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.28794
  norm       = 0.953796
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.2483
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.74166
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.51651
  Prefactor  = 0.0001
  Prefactor  = 0.128729
  norm       = 11.613
  norm       = 4.38483
  Prefactor  = 0.0001
  norm       = 2.58575
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100057
  Prefactor  = 16.6427
  Normalizat = 1.09645
  Prefactor  = 0.962033
 **********
 **   18 **HESSE 
 **********

 FCN=   7026.785     FROM HESSE     STATUS=OK           506 CALLS     3868 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2879        2.8549        .15160E-03   -1.5405    
   2  norm          .95380        .80089        .68845E-03   -1.5513    
   3  Prefactor     .10000E-03    6.9698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.7400        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    36.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.7088        .10697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.3965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.7973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.2483        9.6380        .13178E-03   -1.5100    
  10  norm          .10000E-03    .23487        .78290E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.7417        17.803        .12839E-03   -1.5084    
  13  norm          .10000E-03    2.6751        .13375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.6592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.5165        149.22        .21528E-03   -1.5333    
  16  Prefactor     .10000E-03    23.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .12873        2.6698        .73408E-01   -1.5636    
  18  norm          11.613        10.960        .11756E-03   -1.5026    
  19  norm          4.3848        4.8411        .18310E-03   -1.5289    
  20  Prefactor     .10000E-03    5.0916        .25953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.5857        7.1655        .25383E-03   -1.5386    
  22  Prefactor     .10000E-03    5.0430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.1982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10006E-03    7.1903        .52732E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     16.643        19.716        .98176E-04   -1.4892    
  26  Normalizat    1.0965        .23825        .34991E-03   -.89866    
  27  Prefactor     .96203        .99987E-01    .15993E-03   -.94006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.03514e-11
Minuit parameter uncertainties:
  1  2.85512
  2  0.800898
  3  3.65376e-07
  4  1.11577e-05
  5  5.46325e-07
  6  6.00178e-07
  7  2.15955e-06
  8  1.45541e-05
  9  9.63958
  10  8.88543e-07
  11  2.26685e-06
  12  17.8127
  13  1.017e-06
  14  1.94952e-06
  15  45.9361
  16  7.17467e-06
  17  1.1721
  18  10.9621
  19  4.84156
  20  2.62209e-06
  21  7.16791
  22  8.06305e-08
  23  1.56873e-07
  24  0.00127733
  25  19.7242
  26  0.238486
  27  0.100006
Done.

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

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.161e+01  1.096e+01  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.620e-01  1.000e-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:  1.096e+00  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.83
Ra Dec: 44.752 5.878
Photon Index (Fixed Index): 1.87 +/- 0.00
Photon Flux (Fixed Index): 2.18e-08 +/- 2.05e-08
Energy Flux (Fixed Index): 2.33e-05 +/- 2.20e-05

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

Saving results to:
/scratch/kocevski/988789/likelihoodResults_310867201_311126401_4FGL_J0259.0+0552_daily_bin276.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) = 7026.75657325
delta logL = 0.0285875586378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7026.75085868
delta logL = 0.0343021207827

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.403       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0372       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0947       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96180       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=   7026.751     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      250 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.403        11.508        .12423E-03   -.64610E-04
   2  alpha         2.0371        .65681        .15201E-01    .20179E-03
   3  Normalizat    1.0947        .22015        .35014E-03    .93511E-05
   4  Prefactor     .96180        .95741E-01    .15993E-03    .26159E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.4029
  alpha      = 2.03713
  Normalizat = 1.09468
  Prefactor  = 0.961798
 **********
 **   18 **HESSE 
 **********

 FCN=   7026.751     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.403        11.153        .49691E-05   -1.5063    
   2  alpha         2.0371        .63714        .30402E-02   -.18622    
   3  Normalizat    1.0947        .22022        .14005E-04   -.89923    
   4  Prefactor     .96180        .95786E-01    .63973E-05   -.94014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.28351e-12
Minuit parameter uncertainties:
  1  11.1551
  2  0.644512
  3  0.220401
  4  0.0958024
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/988789': 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) = 7026.75085868
delta logL = 0.0343021237441

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.040e+01  1.116e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  2.037e+00  6.445e-01  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.618e-01  9.580e-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.095e+00  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.89
Ra Dec: 44.752 5.878
Photon Index (Free Index): 2.04 +/- 0.64
Photon Flux (Free Index): 2.57e-08 +/- 2.76e-08
Energy Flux (Free Index): 2.01e-05 +/- 2.17e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/988789/cmap_HighResolution_310867201_311126401_4FGL_J0259.0+0552_daily_bin276.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.75e-05', comment='SUCCESS', photon_flux='2.18e-08', energy_flux2='2.01e-05', photon_flux_error='2.05e-08', dlogl='3.43e-02', energy_flux='2.33e-05', photon_flux2='2.57e-08', job_status='DONE', time_completed='2021-08-17 06:12:38.467582', photon_index_error2='0.64', photon_index2='2.04', ts='1.83', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='7.24e-08', energy_flux_error2='2.17e-05', EG='1.10', time_epoch_completed='1629205958.47', return_code='0', job_id='988789', GAL2='0.96', EG2='1.09', return_code2='0', energy_flux_error='2.20e-05', photon_flux_error2='2.76e-08', ts2='1.89', photon_index='1.87' WHERE bin_id='276' AND source_name='4FGL J0259.0+0552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 06:12:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0016>
Subject: Job 988789: <4FGL_J0259.0+0552_daily_bin276> in cluster <slac> Done

Job <4FGL_J0259.0+0552_daily_bin276> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 17 05:56:27 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 05:57:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 17 05:57:31 2021
Terminated at Tue Aug 17 06:12:39 2021
Results reported at Tue Aug 17 06:12:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0259.0+0552_daily_bin276 44.7519 5.878 310867201 311126401 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 :                                   844.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             329.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            972 sec.

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

