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


Performing analysis on: 4FGL_J0259.0+0552_daily_bin1622
RA = 44.7519, Dec = 5.878
tmin = 659750401, tmax = 660009601
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='168406', job_status='RUN', time_executed='2021-12-07 13:46:50.359999', time_epoch_executed='1638913610.36' WHERE source_name='4FGL J0259.0+0552' and cadence='daily' and bin_id='1622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/168406

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/168406/ft1_4FGL_J0259.0+0552_daily_bin1622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/168406/ft2_4FGL_J0259.0+0552_daily_bin1622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/168406/ft1_4FGL_J0259.0+0552_daily_bin1622.fits outfile=/scratch/kocevski/168406/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1622.fits ra=44.7519 dec=5.878 rad=12.0 tmin=659750401.0 tmax=660009601.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 2.38
user 2.19
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/168406/ft2_4FGL_J0259.0+0552_daily_bin1622.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/168406/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1622.fits evtable="EVENTS" outfile="/scratch/kocevski/168406/ft1_filtered_4FGL_J0259.0+0552_daily_bin1622.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 0.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/168406/ft1_filtered_4FGL_J0259.0+0552_daily_bin1622.fits" evtable="EVENTS" scfile=/scratch/kocevski/168406/ft2_4FGL_J0259.0+0552_daily_bin1622.fits sctable="SC_DATA" outfile=/scratch/kocevski/168406/ltcube_659750401_660009601_4FGL_J0259.0+0552_daily_bin1622.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/168406/ft2_4FGL_J0259.0+0552_daily_bin1622.fits
.....................!
real 14.54
user 14.17
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/168406/ft1_filtered_4FGL_J0259.0+0552_daily_bin1622.fits evtable="EVENTS" scfile=/scratch/kocevski/168406/ft2_4FGL_J0259.0+0552_daily_bin1622.fits sctable="SC_DATA" expcube=/scratch/kocevski/168406/ltcube_659750401_660009601_4FGL_J0259.0+0552_daily_bin1622.fits outfile=/scratch/kocevski/168406/expmap_659750401_660009601_4FGL_J0259.0+0552_daily_bin1622.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/168406/ltcube_659750401_660009601_4FGL_J0259.0+0552_daily_bin1622.fits
.....................!
real 191.86
user 186.11
sys 5.35

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/168406/ft1_filtered_4FGL_J0259.0+0552_daily_bin1622.fits scfile=/scratch/kocevski/168406/ft2_4FGL_J0259.0+0552_daily_bin1622.fits outfile=/scratch/kocevski/168406/cmap_659750401_660009601_4FGL_J0259.0+0552_daily_bin1622.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 0.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/168406/ft1_filtered_4FGL_J0259.0+0552_daily_bin1622.fits scfile=/scratch/kocevski/168406/ft2_4FGL_J0259.0+0552_daily_bin1622.fits outfile=/scratch/kocevski/168406/cmap_HighResolution_659750401_660009601_4FGL_J0259.0+0552_daily_bin1622.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 0.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.0194       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18247E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.775       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    54.452       1.0000         .10000E-03   10000.    
     8 'Prefactor '    70.162       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    213.77       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.033       1.0000         .10000E-03   10000.    
    13 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    404.00       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    82.583       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10854E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    47.901       1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.144       1.0000         .10000E-03   10000.    
    25 'Prefactor '    90.439       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .13641       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .89515       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=   1394.231     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     3267 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.483       -.56715E-06** at limit **
   2  norm          6.0207        2.8449       -.72710E-06   -.27579E-03
   3  Prefactor     .10035E-03    424.39       -.17006E-04** at limit **
   4  Prefactor     43.793        39.199        .20927E-06   -.62587E-04
   5  Prefactor     .10000E-03    163.86        .25992E-05** at limit **
   6  Prefactor     .10000E-03    37.165       -.24813E-06** at limit **
   7  Prefactor     54.551        92.820        .39770E-05    .37597E-04
   8  Prefactor     70.170        51.429       -.10459E-05   -.18875E-04
   9  Prefactor     .10000E-03    45.142        .55823E-06** at limit **
  10  norm          .10000E-03    1.7191        .29934E-07** at limit **
  11  Prefactor     213.70        220.85       -.44760E-05    .15552E-04
  12  Prefactor     26.045        48.072       -.60349E-05   -.32837E-04
  13  norm          .10000E-03    45.893        .25219E-06** at limit **
  14  Prefactor     .10000E-03    165.71        .23786E-05** at limit **
  15  Prefactor     .10000E-03    90.262       -.31863E-05** at limit **
  16  Prefactor     404.03        338.83        .17832E-05   -.30710E-04
  17  Prefactor     .10000E-03    8.5588       -.16618E-06** at limit **
  18  norm          .10000E-03    13.729       -.13053E-07** at limit **
  19  norm          .10000E-03    15.476        .15363E-07** at limit **
  20  Prefactor     .10000E-03    6.9611       -.34982E-07** at limit **
  21  norm          82.640        93.883        .54349E-05   -.21451E-03
  22  Prefactor     .10000E-03    170.28        .66385E-06** at limit **
  23  Prefactor     47.903        64.793       -.51865E-05   -.17386E-03
  24  Prefactor     14.145        27.201        .78692E-06   -.87264E-04
  25  Prefactor     90.454        62.993        .46735E-06   -.20594E-03
  26  Normalizat    .13612        .42309        .91281E-04    .59421E-06
  27  Prefactor     .89521        .24860       -.19563E-04    .59142E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 6.02069
  Prefactor  = 0.000100351
  Prefactor  = 43.7931
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 54.5511
  Prefactor  = 70.1704
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 213.705
  Prefactor  = 26.0448
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 404.033
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 82.6402
  Prefactor  = 0.0001
  Prefactor  = 47.9029
  Prefactor  = 14.1448
  Prefactor  = 90.4545
  Normalizat = 0.136118
  Prefactor  = 0.895207
 **********
 **   18 **HESSE 
 **********

 FCN=   1394.231     FROM HESSE     STATUS=OK           472 CALLS     3739 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.796        .23597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.0207        2.8584        .41090E-04   -1.5217    
   3  Prefactor     .10035E-03    444.84        .20310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     43.793        39.231        .60594E-04   -1.4383    
   5  Prefactor     .10000E-03    163.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    37.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     54.551        93.868        .27179E-03   -1.4229    
   8  Prefactor     70.170        51.447        .23962E-03   -1.4031    
   9  Prefactor     .10000E-03    45.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.7203        .47809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     213.70        220.76        .13828E-03   -1.2774    
  12  Prefactor     26.045        48.207        .78513E-04   -1.4687    
  13  norm          .10000E-03    45.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    165.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    90.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     404.03        338.73        .10158E-03   -1.1660    
  17  Prefactor     .10000E-03    8.5719        .10670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    13.729        .13516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    15.506        .14345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.9638        .96217E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          82.640        93.634        .22100E-03   -1.3887    
  22  Prefactor     .10000E-03    171.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     47.903        64.965        .57937E-04   -1.4323    
  24  Prefactor     14.145        27.224        .10650E-03   -1.4956    
  25  Prefactor     90.454        63.220        .42253E-04   -1.3803    
  26  Normalizat    .13612        .43753        .77002E-02   -1.3456    
  27  Prefactor     .89521        .25567        .17248E-03   -.96309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14037e-09
Minuit parameter uncertainties:
  1  0.000222363
  2  2.85848
  3  0.0251878
  4  39.2543
  5  0.000968389
  6  0.00011302
  7  94.1241
  8  51.4801
  9  1.22759e-05
  10  5.0031e-06
  11  221.624
  12  48.2787
  13  0.00027667
  14  0.000985221
  15  0.000606681
  16  340.424
  17  2.64979e-05
  18  1.97603e-05
  19  0.00021465
  20  1.34291e-05
  21  93.8017
  22  0.000283946
  23  65.0613
  24  27.2482
  25  63.2675
  26  0.449613
  27  0.256016
Done.

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

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.000e-04  1.976e-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:  8.952e-01  2.560e-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.361e-01  4.496e-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.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.58e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/168406/likelihoodResults_659750401_660009601_4FGL_J0259.0+0552_daily_bin1622.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) = 1394.23167414
delta logL = -0.000331724807211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1394.23134242
delta logL = -1.38186351251e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8626       1.0000          .0000       5.0000    
     3 'Normalizat'    .13616       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89520       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=   1394.231     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      201 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.794        .90712E-02** at limit **
   2  alpha         1.8540        3.3685        .42984        .29670E-05
   3  Normalizat    .13612        .48021        .17888        .23563E-04
   4  Prefactor     .89521        .29006        .44944E-01   -.55374E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.85402
  Normalizat = 0.13612
  Prefactor  = 0.895206
 **********
 **   18 **HESSE 
 **********

 FCN=   1394.231     FROM HESSE     STATUS=OK            35 CALLS      236 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.739        .13554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8540        3.3678        .50000       -.26136    
   3  Normalizat    .13612        .38545        .77005E-02   -1.3456    
   4  Prefactor     .89521        .22415        .17248E-03   -.96309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21047e-09
Minuit parameter uncertainties:
  1  1.30389e-05
  2  2.41593
  3  0.393564
  4  0.224383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/168406': 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) = 1394.23134239
delta logL = 2.01214334083e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
494    Prefactor:  8.952e-01  2.244e-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.361e-01  3.936e-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/168406/cmap_HighResolution_659750401_660009601_4FGL_J0259.0+0552_daily_bin1622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-04', job_status='DONE', photon_flux_upper_limit='1.47e-07', time_completed='2021-12-07 13:53:26.508177', job_id='168406', GAL2='0.90', fit_tolerance='1e-08', EG2='0.14', EG='0.14', time_epoch_completed='1638914006.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.01e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.87' WHERE bin_id='1622' AND source_name='4FGL J0259.0+0552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 13:53:26 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 168406: <4FGL_J0259.0+0552_daily_bin1622> in cluster <slac> Done

Job <4FGL_J0259.0+0552_daily_bin1622> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec  7 13:40:32 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 13:43:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 13:43:24 2021
Terminated at Tue Dec  7 13:53:27 2021
Results reported at Tue Dec  7 13:53:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0259.0+0552_daily_bin1622 44.7519 5.878 659750401 660009601 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 :                                   396.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   602 sec.
    Turnaround time :                            775 sec.

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

