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


Performing analysis on: 4FGL_J0259.0+0552_daily_bin1599
RA = 44.7519, Dec = 5.878
tmin = 653788801, tmax = 654048001
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='947857', job_status='RUN', time_executed='2021-09-23 00:11:12.904489', time_epoch_executed='1632381072.9' WHERE source_name='4FGL J0259.0+0552' and cadence='daily' and bin_id='1599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/947857

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/947857/ft1_4FGL_J0259.0+0552_daily_bin1599.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/947857/ft2_4FGL_J0259.0+0552_daily_bin1599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/947857/ft1_4FGL_J0259.0+0552_daily_bin1599.fits outfile=/scratch/kocevski/947857/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1599.fits ra=44.7519 dec=5.878 rad=12.0 tmin=653788801.0 tmax=654048001.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 3.28
user 3.01
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/947857/ft1_filtered_4FGL_J0259.0+0552_daily_bin1599.fits" evtable="EVENTS" scfile=/scratch/kocevski/947857/ft2_4FGL_J0259.0+0552_daily_bin1599.fits sctable="SC_DATA" outfile=/scratch/kocevski/947857/ltcube_653788801_654048001_4FGL_J0259.0+0552_daily_bin1599.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/947857/ft2_4FGL_J0259.0+0552_daily_bin1599.fits
.....................!
real 12.66
user 12.18
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/947857/ft1_filtered_4FGL_J0259.0+0552_daily_bin1599.fits evtable="EVENTS" scfile=/scratch/kocevski/947857/ft2_4FGL_J0259.0+0552_daily_bin1599.fits sctable="SC_DATA" expcube=/scratch/kocevski/947857/ltcube_653788801_654048001_4FGL_J0259.0+0552_daily_bin1599.fits outfile=/scratch/kocevski/947857/expmap_653788801_654048001_4FGL_J0259.0+0552_daily_bin1599.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/947857/ltcube_653788801_654048001_4FGL_J0259.0+0552_daily_bin1599.fits
.....................!
real 159.13
user 153.60
sys 3.48

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/947857/ft1_filtered_4FGL_J0259.0+0552_daily_bin1599.fits scfile=/scratch/kocevski/947857/ft2_4FGL_J0259.0+0552_daily_bin1599.fits outfile=/scratch/kocevski/947857/cmap_653788801_654048001_4FGL_J0259.0+0552_daily_bin1599.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.47
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/947857/ft1_filtered_4FGL_J0259.0+0552_daily_bin1599.fits scfile=/scratch/kocevski/947857/ft2_4FGL_J0259.0+0552_daily_bin1599.fits outfile=/scratch/kocevski/947857/cmap_HighResolution_653788801_654048001_4FGL_J0259.0+0552_daily_bin1599.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.47
user 0.33
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5877       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2411       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.7522       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.675       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.092       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.7972       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2046       1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.112       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.090       1.0000         .10000E-03   10000.    
    13 'norm      '    31.991       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11722E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    119.06       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .83975E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    18.517       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.9834       1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.309       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .76923       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0160       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=   8057.245     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     3270 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5885        2.7035        .96187E-06    .33080E-03
   2  norm          1.2415        1.0217       -.13998E-06   -.68656E-03
   3  Prefactor     .10000E-03    17.243        .14104E-05** at limit **
   4  Prefactor     .10000E-03    5.2848        .27671E-06** at limit **
   5  Prefactor     9.6786        114.90       -.18132E-03    .67682E-05
   6  Prefactor     15.672        11.896        .22650E-05   -.74269E-05
   7  Prefactor     16.095        20.848        .84520E-06    .43035E-04
   8  Prefactor     8.8040        15.904        .40213E-05    .90412E-04
   9  Prefactor     .10000E-03    4.8663        .71397E-07** at limit **
  10  norm          1.2043        .64240        .58942E-07    .25002E-03
  11  Prefactor     32.080        39.741       -.23223E-04   -.24932E-04
  12  Prefactor     12.097        17.404       -.22859E-05    .33728E-04
  13  norm          31.978        18.524        .23762E-05   -.11834E-05
  14  Prefactor     .10001E-03    123.55        .12886E-04** at limit **
  15  Prefactor     119.08        69.744        .14267E-04    .13095E-04
  16  Prefactor     .10000E-03    40.774       -.14393E-05** at limit **
  17  Prefactor     .10001E-03    4.0643       -.10408E-05** at limit **
  18  norm          18.520        11.010        .31852E-06    .10581E-03
  19  norm          .10000E-03    1.2013       -.22772E-07** at limit **
  20  Prefactor     .10000E-03    1.4289       -.11977E-07** at limit **
  21  norm          7.9800        9.7365       -.13322E-05   -.10115E-03
  22  Prefactor     20.315        15.463       -.11020E-05    .42335E-04
  23  Prefactor     .10000E-03    8.1675        .43961E-07** at limit **
  24  Prefactor     .10000E-03    1.9462       -.26176E-07** at limit **
  25  Prefactor     .10000E-03    6.9224       -.10127E-06** at limit **
  26  Normalizat    .76893        .21408        .23389E-05    .14267E-03
  27  Prefactor     1.0162        .86286E-01    .10229E-05    .10637E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.58853
  norm       = 1.24146
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.67862
  Prefactor  = 15.6718
  Prefactor  = 16.0954
  Prefactor  = 8.80398
  Prefactor  = 0.0001
  norm       = 1.20425
  Prefactor  = 32.0804
  Prefactor  = 12.0968
  norm       = 31.9783
  Prefactor  = 0.000100005
  Prefactor  = 119.082
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 18.5198
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.98002
  Prefactor  = 20.3153
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.768933
  Prefactor  = 1.01615
 **********
 **   18 **HESSE 
 **********

 FCN=   8057.245     FROM HESSE     STATUS=OK           490 CALLS     3760 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5885        2.7026        .99159E-04   -1.5235    
   2  norm          1.2415        1.0025        .78806E-04   -1.5485    
   3  Prefactor     .10000E-03    17.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.3210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.6786        115.24        .12832E-03   -1.5086    
   6  Prefactor     15.672        11.858        .10116E-03   -1.4916    
   7  Prefactor     16.095        20.810        .99844E-04   -1.4905    
   8  Prefactor     8.8040        15.806        .13514E-03   -1.5114    
   9  Prefactor     .10000E-03    4.8823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2043        .64457        .50811E-04   -1.5488    
  11  Prefactor     32.080        39.734        .70709E-04   -1.4575    
  12  Prefactor     12.097        17.434        .11521E-03   -1.5012    
  13  norm          31.978        18.449        .70843E-04   -1.4576    
  14  Prefactor     .10001E-03    125.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     119.08        69.931        .18440E-03   -1.3521    
  16  Prefactor     .10000E-03    42.308        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    19.445        .34714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          18.520        10.976        .93075E-04   -1.4847    
  19  norm          .10000E-03    1.2046        .96058E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.4303        .10478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.9800        9.7658        .14191E-03   -1.5143    
  22  Prefactor     20.315        15.466        .88876E-04   -1.4806    
  23  Prefactor     .10000E-03    8.1730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.9518        .12226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.9385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .76893        .22972        .42506E-03   -1.0123    
  27  Prefactor     1.0162        .94047E-01    .16186E-03   -.92193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.27347e-10
Minuit parameter uncertainties:
  1  2.70269
  2  1.00253
  3  0.000156504
  4  6.0566e-05
  5  66.954
  6  11.8599
  7  20.8197
  8  15.8134
  9  2.04267e-05
  10  0.64457
  11  39.7668
  12  17.4411
  13  18.4518
  14  0.00163787
  15  69.9797
  16  2.9628e-05
  17  0.000831109
  18  10.977
  19  2.14321e-06
  20  1.3715e-06
  21  9.76773
  22  15.4691
  23  3.94148e-06
  24  2.66744e-06
  25  1.814e-05
  26  0.230006
  27  0.0940627
Done.

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

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.852e+01  1.098e+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:  1.016e+00  9.406e-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:  7.689e-01  2.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.60
Ra Dec: 44.752 5.878
Photon Index (Fixed Index): 1.87 +/- 0.00
Photon Flux (Fixed Index): 3.47e-08 +/- 2.06e-08
Energy Flux (Fixed Index): 3.72e-05 +/- 2.20e-05

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) = 8056.80920871
delta logL = 0.436054055586

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8056.80706505
delta logL = 0.438197720438

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.735       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2993       1.0000          .0000       5.0000    
     3 'Normalizat'    .77562       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0189       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=   8056.807     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      214 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.727        15.248        .23776E-02   -.88076E-05
   2  alpha         1.2985        .60866        .48658       -.22938E-04
   3  Normalizat    .77560        .19516        .95563E-01    .31545E-04
   4  Prefactor     1.0189        .84291E-01    .42254E-01   -.10709E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.7272
  alpha      = 1.29853
  Normalizat = 0.775603
  Prefactor  = 1.01887
 **********
 **   18 **HESSE 
 **********

 FCN=   8056.807     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.727        13.185        .95105E-04   -1.4866    
   2  alpha         1.2985        .60222        .18599E-01   -.50133    
   3  Normalizat    .77560        .20839        .42347E-03   -1.0098    
   4  Prefactor     1.0189        .91144E-01    .16175E-03   -.92103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.99565e-10
Minuit parameter uncertainties:
  1  13.187
  2  0.610061
  3  0.208608
  4  0.0911577
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/947857': 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) = 8056.8070642
delta logL = 0.438198572853

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.773e+01  1.319e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.299e+00  6.101e-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:  1.019e+00  9.116e-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:  7.756e-01  2.086e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.46
Ra Dec: 44.752 5.878
Photon Index (Free Index): 1.30 +/- 0.61
Photon Flux (Free Index): 1.75e-08 +/- 1.69e-08
Energy Flux (Free Index): 6.81e-05 +/- 6.66e-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/947857/cmap_HighResolution_653788801_654048001_4FGL_J0259.0+0552_daily_bin1599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.47e-08', energy_flux2='6.81e-05', photon_flux_error='2.06e-08', dlogl='4.38e-01', energy_flux='3.72e-05', photon_flux2='1.75e-08', job_status='DONE', time_completed='2021-09-23 00:21:44.370646', photon_index_error2='0.61', photon_index2='1.30', ts='15.60', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='6.66e-05', EG='0.77', time_epoch_completed='1632381704.37', return_code='0', job_id='947857', GAL2='1.02', EG2='0.78', return_code2='0', energy_flux_error='2.20e-05', photon_flux_error2='1.69e-08', ts2='16.46', photon_index='1.87' WHERE bin_id='1599' AND source_name='4FGL J0259.0+0552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 00:21:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 947857: <4FGL_J0259.0+0552_daily_bin1599> in cluster <slac> Done

Job <4FGL_J0259.0+0552_daily_bin1599> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 23 00:06:43 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 00:07:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 00:07:30 2021
Terminated at Thu Sep 23 00:21:45 2021
Results reported at Thu Sep 23 00:21:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0259.0+0552_daily_bin1599 44.7519 5.878 653788801 654048001 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 :                                   627.50 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            902 sec.

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

