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 137 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 = 7702
number of fields = 31
RA_SUN column already exists. File will not be modifiedDoDone.


Performing analysis on: 4FGL_J0136.5+3906_daily_bin1672
RA = 24.1423, Dec = 39.1
tmin = 672710401, tmax = 672969601
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='153920', job_status='RUN', time_executed='2022-04-30 00:11:40.319341', time_epoch_executed='1651302700.32' WHERE source_name='4FGL J0136.5+3906' and cadence='daily' and bin_id='1672'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153920

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153920/ft1_4FGL_J0136.5+3906_daily_bin1672.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153920/ft2_4FGL_J0136.5+3906_daily_bin1672.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153920/ft1_4FGL_J0136.5+3906_daily_bin1672.fits outfile=/scratch/kocevski/153920/ft1_filteredMKT_4FGL_J0136.5+3906_daily_bin1672.fits ra=24.1423 dec=39.1 rad=12.0 tmin=672710401.0 tmax=672969601.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.09
user 2.88
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/153920/ft2_4FGL_J0136.5+3906_daily_bin1672.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/153920/ft1_filteredMKT_4FGL_J0136.5+3906_daily_bin1672.fits evtable="EVENTS" outfile="/scratch/kocevski/153920/ft1_filtered_4FGL_J0136.5+3906_daily_bin1672.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.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 292

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/153920/ft1_filtered_4FGL_J0136.5+3906_daily_bin1672.fits" evtable="EVENTS" scfile=/scratch/kocevski/153920/ft2_4FGL_J0136.5+3906_daily_bin1672.fits sctable="SC_DATA" outfile=/scratch/kocevski/153920/ltcube_672710401_672969601_4FGL_J0136.5+3906_daily_bin1672.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/153920/ft2_4FGL_J0136.5+3906_daily_bin1672.fits
.....................!
real 13.75
user 13.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153920/ft1_filtered_4FGL_J0136.5+3906_daily_bin1672.fits evtable="EVENTS" scfile=/scratch/kocevski/153920/ft2_4FGL_J0136.5+3906_daily_bin1672.fits sctable="SC_DATA" expcube=/scratch/kocevski/153920/ltcube_672710401_672969601_4FGL_J0136.5+3906_daily_bin1672.fits outfile=/scratch/kocevski/153920/expmap_672710401_672969601_4FGL_J0136.5+3906_daily_bin1672.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/153920/ltcube_672710401_672969601_4FGL_J0136.5+3906_daily_bin1672.fits
.....................!
real 192.71
user 187.42
sys 4.95

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/153920/ft1_filtered_4FGL_J0136.5+3906_daily_bin1672.fits scfile=/scratch/kocevski/153920/ft2_4FGL_J0136.5+3906_daily_bin1672.fits outfile=/scratch/kocevski/153920/cmap_672710401_672969601_4FGL_J0136.5+3906_daily_bin1672.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153920/ft1_filtered_4FGL_J0136.5+3906_daily_bin1672.fits scfile=/scratch/kocevski/153920/ft2_4FGL_J0136.5+3906_daily_bin1672.fits outfile=/scratch/kocevski/153920/cmap_HighResolution_672710401_672969601_4FGL_J0136.5+3906_daily_bin1672.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.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/153920/ft1_filtered_4FGL_J0136.5+3906_daily_bin1672.fits', '/scratch/kocevski/153920/ft2_4FGL_J0136.5+3906_daily_bin1672.fits', expMap='/scratch/kocevski/153920/expmap_672710401_672969601_4FGL_J0136.5+3906_daily_bin1672.fits', expCube='/scratch/kocevski/153920/ltcube_672710401_672969601_4FGL_J0136.5+3906_daily_bin1672.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/153920/Model_4FGL_J0136.5+3906_daily_bin1672.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  1.000e-04  1.000e+04 ( 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  0.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/153920/ft1_filtered_4FGL_J0136.5+3906_daily_bin1672.fits
Spacecraft file(s): /scratch/kocevski/153920/ft2_4FGL_J0136.5+3906_daily_bin1672.fits
Exposure map: /scratch/kocevski/153920/expmap_672710401_672969601_4FGL_J0136.5+3906_daily_bin1672.fits
Exposure cube: /scratch/kocevski/153920/ltcube_672710401_672969601_4FGL_J0136.5+3906_daily_bin1672.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/153920/Model_4FGL_J0136.5+3906_daily_bin1672.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) = 3243.60377034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.2469       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.188       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.813       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.890       1.0000         .10000E-03   10000.    
     8 'norm      '    .51866E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8869       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.1716       1.0000         .10000E-03   10000.    
    14 'norm      '    .20432       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13226E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    53.924       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .62373       1.0000         .10000E-03   10000.    
    25 'Prefactor '    35.156       1.0000         .10000E-03   10000.    
    26 'norm      '    .10579E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11297E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .66144       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0835       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3243.447     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     3729 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.889        .42068E-06** at limit **
   2  norm          5.2466        3.6602        .10129E-06   -.42161E-04
   3  Prefactor     .10000E-03    2.3690        .32371E-06** at limit **
   4  Prefactor     10.182        18.861        .27193E-06   -.13387E-03
   5  Prefactor     21.811        18.189        .32586E-06   -.61188E-04
   6  Prefactor     .10000E-03    17.047        .64936E-06** at limit **
   7  Prefactor     28.552        101.14       -.20623E-05   -.17817E-04
   8  norm          .10000E-03    1.7594        .64578E-06** at limit **
   9  norm          .10000E-03    1.1653        .29243E-07** at limit **
  10  Prefactor     4.8827        13.763        .46163E-06   -.19127E-03
  11  Prefactor     .10000E-03    15.557        .42369E-08** at limit **
  12  Prefactor     .10000E-03    25.128       -.62766E-06** at limit **
  13  norm          2.1715        2.0198       -.31748E-08    .12855E-04
  14  norm          .20424        .77556        .46373E-06    .38120E-03
  15  Prefactor     .10000E-03    11.907        .16021E-06** at limit **
  16  Prefactor     .10000E-03    3.7980        .14868E-06** at limit **
  17  Prefactor     .10000E-03    39.889        .15483E-06** at limit **
  18  Prefactor     .10000E-03    144.24        .49493E-06** at limit **
  19  norm          53.918        26.659        .57134E-08   -.17964E-04
  20  Prefactor     .10000E-03    18.333        .46019E-07** at limit **
  21  norm          .10000E-03    7.7150        .82696E-07** at limit **
  22  Prefactor     .10000E-03    37.577        .11198E-06** at limit **
  23  norm          .10000E-03    1.6317        .13546E-06** at limit **
  24  norm          .62376        .67230       -.30776E-08    .61425E-04
  25  Prefactor     35.141        30.139        .31102E-06   -.27187E-05
  26  norm          .10000E-03    42.987       -.37821E-06** at limit **
  27  Prefactor     .10000E-03    119.94        .36902E-07** at limit **
  28  Normalizat    .66178        .38517       -.12100E-04   -.11839E-03
  29  Prefactor     1.0834        .18434        .37111E-05   -.38185E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.24659
  Prefactor  = 0.0001
  Prefactor  = 10.1822
  Prefactor  = 21.8114
  Prefactor  = 0.0001
  Prefactor  = 28.5522
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 4.88265
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.17155
  norm       = 0.204239
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 53.9182
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.623762
  Prefactor  = 35.1408
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.661777
  Prefactor  = 1.08343
 **********
 **   18 **HESSE 
 **********

 FCN=   3243.447     FROM HESSE     STATUS=OK           545 CALLS     4274 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.2466        3.6595        .87568E-04   -1.5250    
   3  Prefactor     .10000E-03    2.3791        .85705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.182        18.614        .12553E-03   -1.5070    
   5  Prefactor     21.811        18.204        .85761E-04   -1.4774    
   6  Prefactor     .10000E-03    17.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.552        101.59        .37269E-03   -1.4639    
   8  norm          .10000E-03    9.0793        .13494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.1694        .60035E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.8827        13.280        .18195E-03   -1.5266    
  11  Prefactor     .10000E-03    15.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.1715        2.0248        .75956E-04   -1.5413    
  14  norm          .20424        .77255        .94668E-04   -1.5618    
  15  Prefactor     .10000E-03    11.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.8366        .10845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    39.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    144.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          53.918        26.642        .54621E-04   -1.4238    
  20  Prefactor     .10000E-03    18.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    7.7364        .15450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    37.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.6927        .14213E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .62376        .67386        .47123E-04   -1.5550    
  25  Prefactor     35.141        30.058        .67588E-04   -1.4522    
  26  norm          .10000E-03    43.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    119.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .66178        .38742        .41041E-03   -1.0542    
  29  Prefactor     1.0834        .18352        .16928E-03   -.89998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.17234e-10
Minuit parameter uncertainties:
  1  2.52977e-05
  2  3.65964
  3  7.32655e-06
  4  18.6245
  5  18.2081
  6  5.70395e-05
  7  102.216
  8  0.000228575
  9  1.32188e-07
  10  13.288
  11  2.14778e-06
  12  1.54053e-05
  13  2.02486
  14  0.772588
  15  1.4164e-05
  16  1.5452e-05
  17  1.02776e-05
  18  0.000156648
  19  26.6483
  20  1.38415e-05
  21  8.94707e-06
  22  1.75905e-05
  23  5.93646e-06
  24  0.673865
  25  30.0712
  26  2.3544e-05
  27  7.56567e-05
  28  0.389029
  29  0.183623
Done.

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

Extracting fit parameters...

4FGL J0136.5+3906
   Spectrum: LogParabola
252         norm:  2.172e+00  2.025e+00  1.000e-04  1.000e+04 ( 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  0.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.083e+00  1.836e-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:  6.618e-01  3.890e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.63
Ra Dec: 24.142 39.100
Photon Index (Fixed Index): 1.56 +/- 0.00
Photon Flux (Fixed Index): 2.75e-08 +/- 2.57e-08
Energy Flux (Fixed Index): 5.83e-05 +/- 5.44e-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) = 3243.08871184
delta logL = 0.358341906196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3243.05405758
delta logL = 0.392996165466

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6187       1.0000         .10000E-03   10000.    
     2 'alpha     '    .99371       1.0000          .0000       5.0000    
     3 'Normalizat'    .67022       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0838       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=   3243.054     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      194 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6187        1.5586        .83176E-02   -.58109E-04
   2  alpha         .99369        .49520        .31339       -.79213E-05
   3  Normalizat    .67023        .30436        .92050E-01    .25281E-04
   4  Prefactor     1.0837        .15850        .38239E-01   -.60002E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.61869
  alpha      = 0.993693
  Normalizat = 0.670232
  Prefactor  = 1.08375
 **********
 **   18 **HESSE 
 **********

 FCN=   3243.054     FROM HESSE     STATUS=OK            31 CALLS      225 TOTAL
                     EDM=   .81E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6187        1.9540        .66354E-04   -1.5454    
   2  alpha         .99369        .62466        .13586E-02   -.64666    
   3  Normalizat    .67023        .33332        .40787E-03   -1.0508    
   4  Prefactor     1.0837        .17427        .16924E-03   -.89988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.10547e-12
Minuit parameter uncertainties:
  1  1.95409
  2  0.635343
  3  0.33433
  4  0.174362
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153920': 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) = 3243.05405758
delta logL = 0.392996166827

Extracting fit parameters...

4FGL J0136.5+3906
   Spectrum: LogParabola
252         norm:  1.619e+00  1.954e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  9.937e-01  6.353e-01  0.000e+00  5.000e+00 ( 1.000e+00)
254         beta:  8.196e-02  0.000e+00  0.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.084e+00  1.744e-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:  6.702e-01  3.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.41
Ra Dec: 24.142 39.100
Photon Index (Free Index): 0.99 +/- 0.64
Photon Flux (Free Index): 1.56e-08 +/- 1.72e-08
Energy Flux (Free Index): 1.47e-04 +/- 1.93e-04

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/153920/cmap_HighResolution_672710401_672969601_4FGL_J0136.5+3906_daily_bin1672.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.75e-08', energy_flux2='1.47e-04', photon_flux_error='2.57e-08', dlogl='3.93e-01', energy_flux='5.83e-05', photon_flux2='1.56e-08', job_status='DONE', time_completed='2022-04-30 00:20:07.844877', photon_index_error2='0.64', photon_index2='0.99', ts='4.63', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.93e-04', EG='0.66', time_epoch_completed='1651303207.84', return_code='0', job_id='153920', GAL2='1.08', EG2='0.67', return_code2='0', energy_flux_error='5.44e-05', photon_flux_error2='1.72e-08', ts2='5.41', photon_index='1.56' WHERE bin_id='1672' AND source_name='4FGL J0136.5+3906' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Apr 30 00:20:07 PDT 2022

----------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 154000: <4FGL_J0136.5+3906_daily_bin1672> in cluster <slac> Done

Job <4FGL_J0136.5+3906_daily_bin1672> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Apr 30 00:05:50 2022
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Apr 30 00:10:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Apr 30 00:10:48 2022
Terminated at Sat Apr 30 00:19:45 2022
Results reported at Sat Apr 30 00:19:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0136.5+3906_daily_bin1672 24.1423 39.1 672710401 672969601 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 :                                   524.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             295.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   537 sec.
    Turnaround time :                            835 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 153920: <4FGL_J0136.5+3906_daily_bin1672> in cluster <slac> Done

Job <4FGL_J0136.5+3906_daily_bin1672> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Apr 30 00:05:46 2022
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Apr 30 00:09:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Apr 30 00:09:15 2022
Terminated at Sat Apr 30 00:20:08 2022
Results reported at Sat Apr 30 00:20:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0136.5+3906_daily_bin1672 24.1423 39.1 672710401 672969601 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 :                                   510.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   653 sec.
    Turnaround time :                            862 sec.

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

