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


Performing analysis on: 4FGL_J0136.5+3906_daily_bin1742
RA = 24.1423, Dec = 39.1
tmin = 690854401, tmax = 691113601
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='217340', job_status='RUN', time_executed='2022-11-26 00:11:38.817422', time_epoch_executed='1669450298.82' WHERE source_name='4FGL J0136.5+3906' and cadence='daily' and bin_id='1742'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217340

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217340/ft1_4FGL_J0136.5+3906_daily_bin1742.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217340/ft2_4FGL_J0136.5+3906_daily_bin1742.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217340/ft1_4FGL_J0136.5+3906_daily_bin1742.fits outfile=/scratch/kocevski/217340/ft1_filteredMKT_4FGL_J0136.5+3906_daily_bin1742.fits ra=24.1423 dec=39.1 rad=12.0 tmin=690854401.0 tmax=691113601.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.91
user 2.68
sys 0.21

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

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

Number of photons that the gtmktime cut: 519

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217340/ft1_filtered_4FGL_J0136.5+3906_daily_bin1742.fits evtable="EVENTS" scfile=/scratch/kocevski/217340/ft2_4FGL_J0136.5+3906_daily_bin1742.fits sctable="SC_DATA" expcube=/scratch/kocevski/217340/ltcube_690854401_691113601_4FGL_J0136.5+3906_daily_bin1742.fits outfile=/scratch/kocevski/217340/expmap_690854401_691113601_4FGL_J0136.5+3906_daily_bin1742.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/217340/ltcube_690854401_691113601_4FGL_J0136.5+3906_daily_bin1742.fits
.....................!
real 194.32
user 187.20
sys 5.54

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/217340/ft1_filtered_4FGL_J0136.5+3906_daily_bin1742.fits scfile=/scratch/kocevski/217340/ft2_4FGL_J0136.5+3906_daily_bin1742.fits outfile=/scratch/kocevski/217340/cmap_690854401_691113601_4FGL_J0136.5+3906_daily_bin1742.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217340/ft1_filtered_4FGL_J0136.5+3906_daily_bin1742.fits scfile=/scratch/kocevski/217340/ft2_4FGL_J0136.5+3906_daily_bin1742.fits outfile=/scratch/kocevski/217340/cmap_HighResolution_690854401_691113601_4FGL_J0136.5+3906_daily_bin1742.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.56
user 0.37
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/217340/ft1_filtered_4FGL_J0136.5+3906_daily_bin1742.fits', '/scratch/kocevski/217340/ft2_4FGL_J0136.5+3906_daily_bin1742.fits', expMap='/scratch/kocevski/217340/expmap_690854401_691113601_4FGL_J0136.5+3906_daily_bin1742.fits', expCube='/scratch/kocevski/217340/ltcube_690854401_691113601_4FGL_J0136.5+3906_daily_bin1742.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/217340/Model_4FGL_J0136.5+3906_daily_bin1742.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/217340/ft1_filtered_4FGL_J0136.5+3906_daily_bin1742.fits
Spacecraft file(s): /scratch/kocevski/217340/ft2_4FGL_J0136.5+3906_daily_bin1742.fits
Exposure map: /scratch/kocevski/217340/expmap_690854401_691113601_4FGL_J0136.5+3906_daily_bin1742.fits
Exposure cube: /scratch/kocevski/217340/ltcube_690854401_691113601_4FGL_J0136.5+3906_daily_bin1742.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/217340/Model_4FGL_J0136.5+3906_daily_bin1742.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) = 5670.14954252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.782       1.0000          .0000       .10000E+07
     2 'norm      '    5.4517       1.0000          .0000       .10000E+07
     3 'Prefactor '    .50642E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .44484E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .57556E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    25.544       1.0000          .0000       .10000E+07
     7 'norm      '    10.319       1.0000          .0000       .10000E+07
     8 'norm      '    3.3128       1.0000          .0000       .10000E+07
     9 'Prefactor '    .12735E-04   1.0000          .0000       .10000E+07
    10 'norm      '    2.6783       1.0000          .0000       .10000E+07
    11 'norm      '    2.0905       1.0000          .0000       .10000E+07
    12 'Prefactor '    21.466       1.0000          .0000       .10000E+07
    13 'Prefactor '    .23537E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    .99040E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    62.704       1.0000          .0000       .10000E+07
    16 'norm      '    .39606E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .33392E-02   1.0000          .0000       .10000E+07
    18 'norm      '    2.0644       1.0000          .0000       .10000E+07
    19 'norm      '    .24536E-07   1.0000          .0000       .10000E+07
    20 'norm      '    1.0965       1.0000          .0000       .10000E+07
    21 'Prefactor '    .40007E-04   1.0000          .0000       .10000E+07
    22 'norm      '    24.859       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0157       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91267       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=   5670.046     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     2018 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.639        36.169       -.15134E-05    .36784E-01
   2  norm          5.4538        3.1791        .82986E-08   -.44361E-03
   3  Prefactor     .22204E-09    4.5938        .42297E-06** at limit **
   4  Prefactor     .36988E-03    115.43        .86533E-05** at limit **
   5  Prefactor     .38858E-09    6.7461       -.52948E-06** at limit **
   6  Prefactor     25.713        2.3125       -.17127E-06   -.21099E-01
   7  norm          10.323        2.7944        .25547E-07   -.33532E-02
   8  norm          3.3139        3.3931        .29037E-06   -.66292E-02
   9  Prefactor     .18133E-05    9.6795        .14709E-05** at limit **
  10  norm          2.6790        1.6903        .23555E-06   -.17401E-01
  11  norm          2.0913        1.0183       -.35231E-07    .59747E-02
  12  Prefactor     21.428        2.4656        .31591E-06    .39279E-01
  13  Prefactor     .33307E-09    2.6889        .46798E-06** at limit **
  14  Prefactor     .26685E-05    16.741       -.24927E-05** at limit **
  15  Prefactor     62.283        63.237       -.52565E-05    .61881E-01
  16  norm          .15543E-08    16.548        .24414E-05** at limit **
  17  Prefactor      .0000        11.291       -.26706E-06** at limit **
  18  norm          2.0685        5.5042        .23861E-06   -.15160E-02
  19  norm          .55511E-10    .76749        .15378E-06** at limit **
  20  norm          1.0971        .69900        .14355E-07    .19688E-02
  21  Prefactor     .11102E-09    7.4810        .26831E-06** at limit **
  22  norm          24.860        2.5750        .31046E-06    .35522E-01
  23  Normalizat    1.0151        .29769        .51511E-05    .80648E-04
  24  Prefactor     .91266        .15063       -.29433E-05    .22626E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.639
  norm       = 5.45376
  Prefactor  = 2.22045e-10
  Prefactor  = 0.00036988
  Prefactor  = 3.88578e-10
  Prefactor  = 25.7131
  norm       = 10.3232
  norm       = 3.3139
  Prefactor  = 1.81327e-06
  norm       = 2.67901
  norm       = 2.09127
  Prefactor  = 21.4283
  Prefactor  = 3.33067e-10
  Prefactor  = 2.66848e-06
  Prefactor  = 62.283
  norm       = 1.55431e-09
  Prefactor  = 0
  norm       = 2.06852
  norm       = 5.55112e-11
  norm       = 1.0971
  Prefactor  = 1.11022e-10
  norm       = 24.8596
  Normalizat = 1.01507
  Prefactor  = 0.912662
 **********
 **   18 **HESSE 
 **********

 FCN=   5670.046     FROM HESSE     STATUS=OK           453 CALLS     2471 TOTAL
                     EDM=   .96E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.639        36.867        .17468E-03   -1.5592    
   2  norm          5.4538        3.2020        .43011E-03   -1.5661    
   3  Prefactor     .22204E-09    4.5787        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .36988E-03    9.4914        .13079E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .38858E-09    6.7388        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     25.713        23.693        .19790E-03   -1.5607    
   7  norm          10.323        2.8269        .31167E-03   -1.5644    
   8  norm          3.3139        3.4080        .55594E-03   -1.5672    
   9  Prefactor     .18133E-05    20.857        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.6790        1.6931        .62240E-03   -1.5675    
  11  norm          2.0913        1.0191        .71371E-03   -1.5679    
  12  Prefactor     21.428        19.936        .21590E-03   -1.5615    
  13  Prefactor     .33307E-09    2.6991        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .26685E-05    21.478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     62.283        70.988        .12629E-03   -1.5550    
  16  norm          .15543E-08    23.361        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        11.290        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.0685        5.5646        .71884E-03   -1.5679    
  19  norm          .55511E-10    .76665        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.0971        .72398        .10993E-02   -1.5687    
  21  Prefactor     .11102E-09    7.4746        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          24.860        20.948        .20061E-03   -1.5608    
  23  Normalizat    1.0151        .26960        .82464E-01   -.92527    
  24  Prefactor     .91266        .13037        .45166E-01   -.95700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.55292e-07
Minuit parameter uncertainties:
  1  36.8671
  2  3.20199
  3  6.32001e-05
  4  0.118502
  5  0.000104113
  6  23.6926
  7  2.82688
  8  3.40797
  9  0.0122995
  10  1.6931
  11  1.01907
  12  19.9362
  13  5.88057e-05
  14  0.0151411
  15  70.9889
  16  0.000382097
  17  3.38937e-06
  18  5.56458
  19  1.14919e-05
  20  0.723982
  21  5.92358e-05
  22  20.9476
  23  0.26996
  24  0.130419
Done.

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

Extracting fit parameters...

4FGL J0136.5+3906
   Spectrum: LogParabola
252         norm:  2.679e+00  1.693e+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

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  9.127e-01  1.304e-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:  1.015e+00  2.700e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.24
Ra Dec: 24.142 39.100
Photon Index (Fixed Index): 1.56 +/- 0.00
Photon Flux (Fixed Index): 3.40e-08 +/- 2.15e-08
Energy Flux (Fixed Index): 7.19e-05 +/- 4.55e-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) = 5668.93982939
delta logL = 1.10614967716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5668.48333722
delta logL = 1.56264184768

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .80136       1.0000          .0000       .10000E+07
     2 'alpha     '    .56732       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0236       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91927       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=   5668.483     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      215 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80122        .71299        .52834E-03   -.35175E-02
   2  alpha         .56715        .38636        .30540       -.16358E-04
   3  Normalizat    1.0238        .25054        .82144E-01    .38853E-04
   4  Prefactor     .91919        .12753        .45250E-01    .50282E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.801221
  alpha      = 0.567152
  Normalizat = 1.02378
  Prefactor  = 0.919193
 **********
 **   18 **HESSE 
 **********

 FCN=   5668.483     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .80122        1.0876        .45577E-05   -1.5690    
   2  alpha         .56715        .55150        .14086E-01   -.88378    
   3  Normalizat    1.0238        .28799        .36365E-03   -.92238    
   4  Prefactor     .91919        .14691        .19309E-03   -.95474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.58521e-12
Minuit parameter uncertainties:
  1  1.08756
  2  0.563272
  3  0.288425
  4  0.146978
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217340': 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) = 5668.48333701
delta logL = 1.56264206262

Extracting fit parameters...

4FGL J0136.5+3906
   Spectrum: LogParabola
252         norm:  8.012e-01  1.088e+00  0.000e+00  1.000e+06 ( 1.000e-12)
253        alpha:  5.672e-01  5.633e-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:  9.192e-01  1.470e-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:  1.024e+00  2.884e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.35
Ra Dec: 24.142 39.100
Photon Index (Free Index): 0.57 +/- 0.56
Photon Flux (Free Index): 1.14e-08 +/- 8.70e-09
Energy Flux (Free Index): 2.45e-04 +/- 2.18e-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/217340/cmap_HighResolution_690854401_691113601_4FGL_J0136.5+3906_daily_bin1742.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.40e-08', energy_flux2='2.45e-04', photon_flux_error='2.15e-08', dlogl='1.56e+00', energy_flux='7.19e-05', photon_flux2='1.14e-08', job_status='DONE', time_completed='2022-11-26 00:20:46.015232', photon_index_error2='0.56', photon_index2='0.57', ts='24.24', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='2.18e-04', EG='1.02', time_epoch_completed='1669450846.02', return_code='0', job_id='217340', GAL2='0.92', EG2='1.02', return_code2='0', energy_flux_error='4.55e-05', photon_flux_error2='8.70e-09', ts2='27.35', photon_index='1.56' WHERE bin_id='1742' AND source_name='4FGL J0136.5+3906' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Nov 26 00:20:46 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 217340: <4FGL_J0136.5+3906_daily_bin1742> in cluster <slac> Done

Job <4FGL_J0136.5+3906_daily_bin1742> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Nov 26 00:04:54 2022
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Nov 26 00:10:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Nov 26 00:10:26 2022
Terminated at Sat Nov 26 00:20:46 2022
Results reported at Sat Nov 26 00:20:46 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0136.5+3906_daily_bin1742 24.1423 39.1 690854401 691113601 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 :                                   548.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   620 sec.
    Turnaround time :                            952 sec.

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

