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


Performing analysis on: 4FGL_J0259.0+0552_daily_bin1215
RA = 44.7519, Dec = 5.878
tmin = 554256001, tmax = 554515201
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='993702', job_status='RUN', time_executed='2021-08-17 06:16:24.807460', time_epoch_executed='1629206184.81' WHERE source_name='4FGL J0259.0+0552' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993702

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993702/ft1_4FGL_J0259.0+0552_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993702/ft2_4FGL_J0259.0+0552_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993702/ft1_4FGL_J0259.0+0552_daily_bin1215.fits outfile=/scratch/kocevski/993702/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1215.fits ra=44.7519 dec=5.878 rad=12.0 tmin=554256001.0 tmax=554515201.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 8.25
user 3.88
sys 3.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993702/ft1_filtered_4FGL_J0259.0+0552_daily_bin1215.fits" evtable="EVENTS" scfile=/scratch/kocevski/993702/ft2_4FGL_J0259.0+0552_daily_bin1215.fits sctable="SC_DATA" outfile=/scratch/kocevski/993702/ltcube_554256001_554515201_4FGL_J0259.0+0552_daily_bin1215.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/993702/ft2_4FGL_J0259.0+0552_daily_bin1215.fits
.....................!
real 17.32
user 12.42
sys 3.75

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993702/ft1_filtered_4FGL_J0259.0+0552_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/993702/ft2_4FGL_J0259.0+0552_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/993702/ltcube_554256001_554515201_4FGL_J0259.0+0552_daily_bin1215.fits outfile=/scratch/kocevski/993702/expmap_554256001_554515201_4FGL_J0259.0+0552_daily_bin1215.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/993702/ltcube_554256001_554515201_4FGL_J0259.0+0552_daily_bin1215.fits
.....................!
real 200.41
user 185.44
sys 9.68

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/993702/ft1_filtered_4FGL_J0259.0+0552_daily_bin1215.fits scfile=/scratch/kocevski/993702/ft2_4FGL_J0259.0+0552_daily_bin1215.fits outfile=/scratch/kocevski/993702/cmap_554256001_554515201_4FGL_J0259.0+0552_daily_bin1215.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 6.93
user 0.38
sys 3.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993702/ft1_filtered_4FGL_J0259.0+0552_daily_bin1215.fits scfile=/scratch/kocevski/993702/ft2_4FGL_J0259.0+0552_daily_bin1215.fits outfile=/scratch/kocevski/993702/cmap_HighResolution_554256001_554515201_4FGL_J0259.0+0552_daily_bin1215.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 5.04
user 0.39
sys 3.09

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.821       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10606E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14393E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25085E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .16221E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    77.766       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    78.873       1.0000         .10000E-03   10000.    
    18 'norm      '    .10121E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    14.421       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    47.944       1.0000         .10000E-03   10000.    
    22 'Prefactor '    200.96       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10694       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0496       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .46432E-08   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=   265.9360     FROM MIGRAD    STATUS=CONVERGED   1102 CALLS     3730 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.823        21.783        .66860E-04    .86825E-05
   2  norm          .10000E-03    2.4284        .24841E-03** at limit **
   3  Prefactor     .10000E-03    75.366        .13856E-02** at limit **
   4  Prefactor     .10000E-03    27.294        .83312E-03** at limit **
   5  Prefactor     .10000E-03    231.23        .18142E-02** at limit **
   6  Prefactor     .10000E-03    34.263        .93333E-03** at limit **
   7  Prefactor     .10000E-03    61.756        .12539E-02** at limit **
   8  Prefactor     .10000E-03    41.280        .10247E-02** at limit **
   9  Prefactor     .10000E-03    41.487        .10273E-02** at limit **
  10  norm          .10000E-03    2.6614        .25998E-03** at limit **
  11  Prefactor     .10000E-03    308.66        .21464E-02** at limit **
  12  Prefactor     .10000E-03    72.941        .13629E-02** at limit **
  13  norm          .10001E-03    318.97        .18142E-02** at limit **
  14  Prefactor     77.650        236.69        .22769E-03    .14068E-04
  15  Prefactor     .10000E-03    176.94        .18142E-02** at limit **
  16  Prefactor     .10000E-03    135.07        .18142E-02** at limit **
  17  Prefactor     78.877        68.258        .22610E-03   -.43881E-04
  18  norm          .10000E-03    58.877        .12243E-02** at limit **
  19  norm          14.421        49.143        .10547E-03    .50526E-06
  20  Prefactor     .10000E-03    80.593        .14309E-02** at limit **
  21  norm          47.942        114.21        .57911E-04   -.16564E-05
  22  Prefactor     200.96        156.83        .14252E-03   -.28084E-04
  23  Prefactor     .10000E-03    314.74        .18142E-02** at limit **
  24  Prefactor     .10000E-03    36.628        .96503E-03** at limit **
  25  Prefactor     .10110E-03    631.57        .80087E-01** at limit **
  26  Normalizat    1.0498        .49156        .21418E-03    .90304E-04
  27  Prefactor     .34461E-11    .25241        .25226E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.8227
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100011
  Prefactor  = 77.6499
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 78.8768
  norm       = 0.0001
  norm       = 14.4213
  Prefactor  = 0.0001
  norm       = 47.9417
  Prefactor  = 200.956
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101096
  Normalizat = 1.04977
  Prefactor  = 3.44613e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   265.9360     FROM HESSE     STATUS=OK           470 CALLS     4200 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.823        21.783        .26744E-05   -1.4672    
   2  norm          .10000E-03    2.4284        .49682E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    75.366        .27711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.294        .16662E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    231.23        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    34.263        .18667E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    61.756        .25079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    41.280        .20494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    41.487        .20546E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.6614        .51995E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    308.66        .42927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    72.941        .27259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    318.97        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     77.650        236.62        .91075E-05   -1.3943    
  15  Prefactor     .10000E-03    176.94        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    135.07        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     78.877        68.254        .45219E-04   -1.3929    
  18  norm          .10000E-03    58.877        .24486E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.421        49.137        .42189E-05   -1.4948    
  20  Prefactor     .10000E-03    80.597        .28619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          47.942        114.18        .23164E-05   -1.4322    
  22  Prefactor     200.96        156.83        .28505E-04   -1.2863    
  23  Prefactor     .10000E-03    314.75        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    36.628        .19301E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10110E-03    499.93        .91491E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0498        .49040        .42836E-04   -.91381    
  27  Prefactor     .34461E-11    .25242        .50452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12108e-10
Minuit parameter uncertainties:
  1  21.7892
  2  5.77279e-07
  3  8.97464e-05
  4  2.01483e-05
  5  0.000157629
  6  4.0917e-05
  7  5.32639e-05
  8  5.47807e-05
  9  4.33177e-05
  10  5.08973e-06
  11  0.000583437
  12  1.05778e-05
  13  0.00378055
  14  239.584
  15  0.000450947
  16  0.00020097
  17  68.3218
  18  0.000121023
  19  49.2754
  20  0.000270035
  21  114.706
  22  157.157
  23  0.000259252
  24  5.91639e-05
  25  0.0472193
  26  0.492541
  27  1.8733e-06
Done.

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

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.000e-04  1.210e-04  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:  3.446e-12  1.873e-06  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.050e+00  4.925e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 44.752 5.878
Photon Flux Upper Limit: 6.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.86e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993702/likelihoodResults_554256001_554515201_4FGL_J0259.0+0552_daily_bin1215.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) = 265.936093078
delta logL = -8.03810897878e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 265.936014396
delta logL = -1.69866882516e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10164E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7464       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0497       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .24314E-08   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=   265.9360     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      273 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7103.7        .73296E-02** at limit **
   2  alpha         1.2899        3.8964        .16563        .12870E-07
   3  Normalizat    1.0498        .15734        .21416E-03   -.91273E-04
   4  Prefactor     .14243E-09    .37513E-01    .25225E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.28985
  Normalizat = 1.04976
  Prefactor  = 1.4243e-10
 **********
 **   18 **HESSE 
 **********

 FCN=   265.9360     FROM HESSE     STATUS=OK            23 CALLS      296 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    77.683        .14021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2899        4.2027        .66251E-02   -.50529    
   3  Normalizat    1.0498        .40855        .42833E-04   -.91382    
   4  Prefactor     .14243E-09    .25243        .50450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.39931e-10
Minuit parameter uncertainties:
  1  0.000111961
  2  931.212
  3  0.409782
  4  1.20434e-05
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993702': 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) = 265.936012496
delta logL = 2.00980707632e-07

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.000e-04  1.120e-04  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.290e+00  9.312e+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.424e-10  1.204e-05  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.050e+00  4.098e-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/993702/cmap_HighResolution_554256001_554515201_4FGL_J0259.0+0552_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.86e-04', job_status='DONE', photon_flux_upper_limit='6.40e-07', time_completed='2021-08-17 06:23:32.647264', job_id='993702', GAL2='0.00', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1629206612.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='2.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.87' WHERE bin_id='1215' AND source_name='4FGL J0259.0+0552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 06:23:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 993702: <4FGL_J0259.0+0552_daily_bin1215> in cluster <slac> Done

Job <4FGL_J0259.0+0552_daily_bin1215> 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) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 06:12:01 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:01 2021
Terminated at Tue Aug 17 06:23:34 2021
Results reported at Tue Aug 17 06:23:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0259.0+0552_daily_bin1215 44.7519 5.878 554256001 554515201 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 :                                   433.49 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             302.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            747 sec.

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

