aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 46 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0136.5+3906_daily_bin1777
RA = 24.1423, Dec = 39.1
tmin = 699926401, tmax = 700185601
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='905706', job_status='RUN', time_executed='2023-03-11 00:06:01.902959', time_epoch_executed='1678521961.9' WHERE source_name='4FGL J0136.5+3906' and cadence='daily' and bin_id='1777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905706

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905706/ft1_4FGL_J0136.5+3906_daily_bin1777.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905706/ft2_4FGL_J0136.5+3906_daily_bin1777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905706/ft1_4FGL_J0136.5+3906_daily_bin1777.fits outfile=/scratch/kocevski/905706/ft1_filteredMKT_4FGL_J0136.5+3906_daily_bin1777.fits ra=24.1423 dec=39.1 rad=12.0 tmin=699926401.0 tmax=700185601.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.66
user 3.43
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/905706/ft2_4FGL_J0136.5+3906_daily_bin1777.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/905706/ft2_4FGL_J0136.5+3906_daily_bin1777.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/905706/ft1_filteredMKT_4FGL_J0136.5+3906_daily_bin1777.fits evtable="EVENTS" outfile="/scratch/kocevski/905706/ft1_filtered_4FGL_J0136.5+3906_daily_bin1777.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

Number of photons that the gtmktime cut: 854

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905706/ft1_filtered_4FGL_J0136.5+3906_daily_bin1777.fits" evtable="EVENTS" scfile=/scratch/kocevski/905706/ft2_4FGL_J0136.5+3906_daily_bin1777.fits sctable="SC_DATA" outfile=/scratch/kocevski/905706/ltcube_699926401_700185601_4FGL_J0136.5+3906_daily_bin1777.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/905706/ft2_4FGL_J0136.5+3906_daily_bin1777.fits
.....................!
real 13.95
user 13.42
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905706/ft1_filtered_4FGL_J0136.5+3906_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/905706/ft2_4FGL_J0136.5+3906_daily_bin1777.fits sctable="SC_DATA" expcube=/scratch/kocevski/905706/ltcube_699926401_700185601_4FGL_J0136.5+3906_daily_bin1777.fits outfile=/scratch/kocevski/905706/expmap_699926401_700185601_4FGL_J0136.5+3906_daily_bin1777.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/905706/ltcube_699926401_700185601_4FGL_J0136.5+3906_daily_bin1777.fits
.....................!
real 193.48
user 185.76
sys 5.00

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 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J0136.5+3906 @ 24.1423 39.1

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/905706/ft1_filtered_4FGL_J0136.5+3906_daily_bin1777.fits scfile=/scratch/kocevski/905706/ft2_4FGL_J0136.5+3906_daily_bin1777.fits outfile=/scratch/kocevski/905706/cmap_699926401_700185601_4FGL_J0136.5+3906_daily_bin1777.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=24.1423 yref=39.1 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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905706/ft1_filtered_4FGL_J0136.5+3906_daily_bin1777.fits scfile=/scratch/kocevski/905706/ft2_4FGL_J0136.5+3906_daily_bin1777.fits outfile=/scratch/kocevski/905706/cmap_HighResolution_699926401_700185601_4FGL_J0136.5+3906_daily_bin1777.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=24.1423 yref=39.1 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/905706/ft1_filtered_4FGL_J0136.5+3906_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/905706/ft2_4FGL_J0136.5+3906_daily_bin1777.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/905706/Model_4FGL_J0136.5+3906_daily_bin1777.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/905706/ft1_filtered_4FGL_J0136.5+3906_daily_bin1777.fits.....................!
real 88.15
user 85.86
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/905706/ft1_filtered_4FGL_J0136.5+3906_daily_bin1777.fits', '/scratch/kocevski/905706/ft2_4FGL_J0136.5+3906_daily_bin1777.fits', expMap='/scratch/kocevski/905706/expmap_699926401_700185601_4FGL_J0136.5+3906_daily_bin1777.fits', expCube='/scratch/kocevski/905706/ltcube_699926401_700185601_4FGL_J0136.5+3906_daily_bin1777.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/905706/Model_4FGL_J0136.5+3906_daily_bin1777.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0136.5+3906'

4FGL J0136.5+3906
   Spectrum: LogParabola
252         norm:  1.177e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
253        alpha:  1.561e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
254         beta:  8.196e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.870e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/905706/ft1_filtered_4FGL_J0136.5+3906_daily_bin1777.fits
Spacecraft file(s): /scratch/kocevski/905706/ft2_4FGL_J0136.5+3906_daily_bin1777.fits
Exposure map: /scratch/kocevski/905706/expmap_699926401_700185601_4FGL_J0136.5+3906_daily_bin1777.fits
Exposure cube: /scratch/kocevski/905706/ltcube_699926401_700185601_4FGL_J0136.5+3906_daily_bin1777.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/905706/Model_4FGL_J0136.5+3906_daily_bin1777.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) = 9082.16730277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10495E-02   1.0000          .0000       .10000E+07
     2 'norm      '    5.9930       1.0000          .0000       .10000E+07
     3 'Prefactor '    10.803       1.0000          .0000       .10000E+07
     4 'Prefactor '    .13235E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    10.824       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.6063       1.0000          .0000       .10000E+07
     7 'norm      '    3.8546       1.0000          .0000       .10000E+07
     8 'norm      '    .21943E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .13967       1.0000          .0000       .10000E+07
    10 'norm      '    1.0100       1.0000          .0000       .10000E+07
    11 'norm      '    1.4272       1.0000          .0000       .10000E+07
    12 'Prefactor '    .14715E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .59303E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .33552E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .18541E-04   1.0000          .0000       .10000E+07
    16 'norm      '    .23510E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .33733       1.0000          .0000       .10000E+07
    18 'norm      '    2.7502       1.0000          .0000       .10000E+07
    19 'norm      '    .41989       1.0000          .0000       .10000E+07
    20 'norm      '    .37737       1.0000          .0000       .10000E+07
    21 'Prefactor '    .47852E-03   1.0000          .0000       .10000E+07
    22 'norm      '    3.8989       1.0000          .0000       .10000E+07
    23 'Normalizat'    .73662       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0282       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9082.069     FROM MIGRAD    STATUS=CONVERGED    134 CALLS     1566 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .73030E-06    6.4745       -.11695E-06** at limit **
   2  norm          5.9786        2.3895       -.24094E-07   -.17777E-02
   3  Prefactor     10.787        6.5403       -.41868E-07   -.18403E-02
   4  Prefactor     .24925E-07    2.7380        .20210E-06** at limit **
   5  Prefactor     10.885        1.9388       -.24091E-07   -.24836E-01
   6  Prefactor     3.6638        1.2110        .31500E-07    .33482E-02
   7  norm          3.8550        1.4248        .17957E-06    .31710E-02
   8  norm          .33917E-07    3.0400       -.56728E-06** at limit **
   9  Prefactor     .27637E-04    131.02       -.64112E-05** at limit **
  10  norm          1.0100        .74809       -.64605E-07   -.26789E-02
  11  norm          1.4273        .69016       -.24275E-07    .14572E-02
  12  Prefactor     .27106E-06    7.2061       -.11241E-05** at limit **
  13  Prefactor     .21649E-08    3.0229       -.45081E-06** at limit **
  14  Prefactor     .28311E-08    6.2795        .67934E-07** at limit **
  15  Prefactor     .41178E-06    12.512       -.10122E-05** at limit **
  16  norm          .11102E-09    1.2617       -.52546E-06** at limit **
  17  Prefactor     .37273        4.9179       -.19619E-06   -.33534E-01
  18  norm          2.7524        2.5161       -.26910E-06    .71951E-03
  19  norm          .42009        .41270       -.48317E-07   -.21050E-02
  20  norm          .37749        .19723       -.45659E-07    .13250E-02
  21  Prefactor     .32196E-08    2.3443        .67713E-07** at limit **
  22  norm          3.8712        4.3290       -.15513E-06   -.68637E-03
  23  Normalizat    .73630        .19056       -.12644E-04    .11619E-04
  24  Prefactor     1.0283        .10634        .72466E-05    .26540E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.30305e-07
  norm       = 5.97858
  Prefactor  = 10.7872
  Prefactor  = 2.49245e-08
  Prefactor  = 10.8852
  Prefactor  = 3.66382
  norm       = 3.85501
  norm       = 3.39173e-08
  Prefactor  = 2.76368e-05
  norm       = 1.00997
  norm       = 1.42726
  Prefactor  = 2.71061e-07
  Prefactor  = 2.16493e-09
  Prefactor  = 2.83107e-09
  Prefactor  = 4.11782e-07
  norm       = 1.11022e-10
  Prefactor  = 0.37273
  norm       = 2.75237
  norm       = 0.420092
  norm       = 0.377487
  Prefactor  = 3.21965e-09
  norm       = 3.87121
  Normalizat = 0.7363
  Prefactor  = 1.02831
 **********
 **   18 **HESSE 
 **********

 FCN=   9082.069     FROM HESSE     STATUS=OK           461 CALLS     2027 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .73030E-06    10.564        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.9786        2.3861        .40993E-03   -1.5659    
   3  Prefactor     10.787        6.6856        .30458E-03   -1.5642    
   4  Prefactor     .24925E-07    2.8501        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.885        8.4597        .30428E-03   -1.5642    
   6  Prefactor     3.6638        15.209        .53182E-03   -1.5670    
   7  norm          3.8550        1.4272        .51376E-03   -1.5669    
   8  norm          .33917E-07    3.1974        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .27637E-04    25.643        .16649E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0100        .74746        .44119E-03   -1.5688    
  11  norm          1.4273        .69914        .90433E-03   -1.5684    
  12  Prefactor     .27106E-06    9.3871        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .21649E-08    3.0048        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .28311E-08    6.4017        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .41178E-06    13.864        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .11102E-09    1.2607        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .37273        4.2281        .62883E-02   -1.5696    
  18  norm          2.7524        2.6054        .61359E-03   -1.5675    
  19  norm          .42009        .46391        .12833E-02   -1.5695    
  20  norm          .37749        .19947        .67260E-03   -1.5696    
  21  Prefactor     .32196E-08    2.3445        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.8712        4.3457        .51073E-03   -1.5669    
  23  Normalizat    .73630        .17715        .80355E-01   -1.0248    
  24  Prefactor     1.0283        .94226E-01    .41402E-01   -.91792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58404e-07
Minuit parameter uncertainties:
  1  0.005555
  2  2.38614
  3  6.68556
  4  0.000533111
  5  8.45972
  6  14.9296
  7  1.42715
  8  0.000658615
  9  0.0532432
  10  0.747464
  11  0.699141
  12  0.00319044
  13  0.000161988
  14  0.000268861
  15  0.00477866
  16  2.46869e-05
  17  2.51075
  18  2.60544
  19  0.463909
  20  0.199472
  21  0.000174194
  22  4.34566
  23  0.177284
  24  0.094241
Done.

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

Extracting fit parameters...

4FGL J0136.5+3906
   Spectrum: LogParabola
252         norm:  1.010e+00  7.475e-01  0.000e+00  1.000e+06 ( 1.000e-12)
253        alpha:  1.561e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
254         beta:  8.196e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.870e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  1.028e+00  9.424e-02  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  7.363e-01  1.773e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.03
Ra Dec: 24.142 39.100
Photon Index (Fixed Index): 1.56 +/- 0.00
Photon Flux (Fixed Index): 1.28e-08 +/- 9.48e-09
Energy Flux (Fixed Index): 2.71e-05 +/- 2.01e-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) = 9081.90610628
delta logL = 0.162676183574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9081.89199024
delta logL = 0.1767922241

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .87573       1.0000          .0000       .10000E+07
     2 'alpha     '    1.2144       1.0000          .0000       5.0000    
     3 'Normalizat'    .73993       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0283       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9081.892     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      205 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .87676        .76986        .47452E-03   -.47713E-02
   2  alpha         1.2146        .51055        .49185       -.30885E-04
   3  Normalizat    .73967        .16608        .80178E-01    .36421E-04
   4  Prefactor     1.0284        .93603E-01    .41393E-01   -.11666E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.87676
  alpha      = 1.21464
  Normalizat = 0.739674
  Prefactor  = 1.02838
 **********
 **   18 **HESSE 
 **********

 FCN=   9081.892     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .87676        .76015        .66649E-05   -1.5689    
   2  alpha         1.2146        .55973        .19387E-01   -.54001    
   3  Normalizat    .73967        .18631        .35500E-03   -1.0235    
   4  Prefactor     1.0284        .10559        .17167E-03   -.91789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10928e-09
Minuit parameter uncertainties:
  1  0.760152
  2  0.566292
  3  0.186466
  4  0.105609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905706': 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) = 9081.89198773
delta logL = 0.176794734278

Extracting fit parameters...

4FGL J0136.5+3906
   Spectrum: LogParabola
252         norm:  8.768e-01  7.602e-01  0.000e+00  1.000e+06 ( 1.000e-12)
253        alpha:  1.215e+00  5.663e-01  0.000e+00  5.000e+00 ( 1.000e+00)
254         beta:  8.196e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.870e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  1.028e+00  1.056e-01  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  7.397e-01  1.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.38
Ra Dec: 24.142 39.100
Photon Index (Free Index): 1.21 +/- 0.57
Photon Flux (Free Index): 8.50e-09 +/- 8.30e-09
Energy Flux (Free Index): 4.61e-05 +/- 5.44e-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/905706/cmap_HighResolution_699926401_700185601_4FGL_J0136.5+3906_daily_bin1777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.28e-08', energy_flux2='4.61e-05', photon_flux_error='9.48e-09', dlogl='1.77e-01', energy_flux='2.71e-05', photon_flux2='8.50e-09', job_status='DONE', time_completed='2023-03-11 00:16:46.565906', photon_index_error2='0.57', photon_index2='1.21', ts='9.03', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='5.44e-05', EG='0.74', time_epoch_completed='1678522606.57', return_code='0', job_id='905706', GAL2='1.03', EG2='0.74', return_code2='0', energy_flux_error='2.01e-05', photon_flux_error2='8.30e-09', ts2='9.38', photon_index='1.56' WHERE bin_id='1777' AND source_name='4FGL J0136.5+3906' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 11 00:16:46 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 905706: <4FGL_J0136.5+3906_daily_bin1777> in cluster <slac> Done

Job <4FGL_J0136.5+3906_daily_bin1777> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Mar 11 00:05:00 2023
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 11 00:05:01 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 11 00:05:01 2023
Terminated at Sat Mar 11 00:16:47 2023
Results reported at Sat Mar 11 00:16:47 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0136.5+3906_daily_bin1777 24.1423 39.1 699926401 700185601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0136.5+3906 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   641.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             365.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            707 sec.

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

