aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 23 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 = 17181
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0136.5+3906_weekly_bin418
RA = 24.1423, Dec = 39.1
tmin = 491788801, tmax = 492393601
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='199800', job_status='RUN', time_executed='2021-07-03 23:06:21.452736', time_epoch_executed='1625378781.45' WHERE source_name='4FGL J0136.5+3906' and cadence='weekly' and bin_id='418'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/199800

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/199800/ft1_4FGL_J0136.5+3906_weekly_bin418.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/199800/ft2_4FGL_J0136.5+3906_weekly_bin418.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/199800/ft1_4FGL_J0136.5+3906_weekly_bin418.fits outfile=/scratch/kocevski/199800/ft1_filteredMKT_4FGL_J0136.5+3906_weekly_bin418.fits ra=24.1423 dec=39.1 rad=12.0 tmin=491788801.0 tmax=492393601.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 8.50
user 8.08
sys 0.33

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/199800/ft2_4FGL_J0136.5+3906_weekly_bin418.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/199800/ft1_filteredMKT_4FGL_J0136.5+3906_weekly_bin418.fits evtable="EVENTS" outfile="/scratch/kocevski/199800/ft1_filtered_4FGL_J0136.5+3906_weekly_bin418.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.54
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/199800/ft1_filtered_4FGL_J0136.5+3906_weekly_bin418.fits" evtable="EVENTS" scfile=/scratch/kocevski/199800/ft2_4FGL_J0136.5+3906_weekly_bin418.fits sctable="SC_DATA" outfile=/scratch/kocevski/199800/ltcube_491788801_492393601_4FGL_J0136.5+3906_weekly_bin418.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/199800/ft2_4FGL_J0136.5+3906_weekly_bin418.fits
.....................!
real 26.01
user 25.58
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/199800/ft1_filtered_4FGL_J0136.5+3906_weekly_bin418.fits evtable="EVENTS" scfile=/scratch/kocevski/199800/ft2_4FGL_J0136.5+3906_weekly_bin418.fits sctable="SC_DATA" expcube=/scratch/kocevski/199800/ltcube_491788801_492393601_4FGL_J0136.5+3906_weekly_bin418.fits outfile=/scratch/kocevski/199800/expmap_491788801_492393601_4FGL_J0136.5+3906_weekly_bin418.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/199800/ltcube_491788801_492393601_4FGL_J0136.5+3906_weekly_bin418.fits
.....................!
real 191.40
user 186.45
sys 3.89

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/199800/ft1_filtered_4FGL_J0136.5+3906_weekly_bin418.fits scfile=/scratch/kocevski/199800/ft2_4FGL_J0136.5+3906_weekly_bin418.fits outfile=/scratch/kocevski/199800/cmap_491788801_492393601_4FGL_J0136.5+3906_weekly_bin418.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.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/199800/ft1_filtered_4FGL_J0136.5+3906_weekly_bin418.fits scfile=/scratch/kocevski/199800/ft2_4FGL_J0136.5+3906_weekly_bin418.fits outfile=/scratch/kocevski/199800/cmap_HighResolution_491788801_492393601_4FGL_J0136.5+3906_weekly_bin418.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.57
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10393E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.7215       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.260       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    40.200       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.774       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .30388E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.4414       1.0000         .10000E-03   10000.    
    14 'norm      '    .26467       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.251       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13315E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.573       1.0000         .10000E-03   10000.    
    18 'Prefactor '    233.23       1.0000         .10000E-03   10000.    
    19 'norm      '    8.2149       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.281       1.0000         .10000E-03   10000.    
    23 'norm      '    5.4563       1.0000         .10000E-03   10000.    
    24 'norm      '    .38298       1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.669       1.0000         .10000E-03   10000.    
    26 'norm      '    5.2658       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .65744       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .66458       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=   2917.081     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     4427 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    126.79        .37879E-05** at limit **
   2  norm          5.7209        8.6261        .19137E-06   -.35090E-04
   3  Prefactor     .10000E-03    15.543        .13039E-06** at limit **
   4  Prefactor     18.268        32.356        .61972E-06    .10689E-04
   5  Prefactor     .10000E-03    58.975       -.38743E-05** at limit **
   6  Prefactor     .10000E-03    77.917        .40866E-05** at limit **
   7  Prefactor     .10000E-03    153.08       -.55990E-05** at limit **
   8  norm          .10000E-03    1.1251       -.11992E-07** at limit **
   9  norm          40.196        30.709       -.47149E-06    .44259E-04
  10  Prefactor     .10000E-03    5.3303       -.71510E-07** at limit **
  11  Prefactor     29.815        214.97        .45958E-05    .42273E-04
  12  Prefactor     .10003E-03    611.66       -.16130E-04** at limit **
  13  norm          8.4437        5.5807       -.12432E-06   -.28981E-04
  14  norm          .26078        3.4928        .59011E-07   -.11653E-03
  15  Prefactor     11.270        33.643        .10116E-05    .29703E-04
  16  Prefactor     .10000E-03    23.867        .16944E-05** at limit **
  17  Prefactor     38.566        43.936       -.36368E-06   -.35887E-04
  18  Prefactor     233.34        208.02        .91277E-05    .13300E-03
  19  norm          8.2148        5.5576        .12182E-06   -.27636E-04
  20  Prefactor     .10000E-03    14.070       -.12324E-06** at limit **
  21  norm          .10000E-03    2.5517        .21376E-07** at limit **
  22  Prefactor     12.279        18.477        .44193E-06    .26222E-05
  23  norm          5.4566        1.5781        .11398E-06   -.43618E-04
  24  norm          .38300        1.2769       -.13532E-05   -.11215E-02
  25  Prefactor     11.666        25.832       -.88356E-05    .30549E-04
  26  norm          5.2681        53.837        .20998E-04   -.14633E-03
  27  Prefactor     .10000E-03    34.951        .77256E-06** at limit **
  28  Normalizat    .65744        .36178        .46301E-06    .46728E-04
  29  Prefactor     .66456        .19257       -.11991E-05    .12166E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 5.7209
  Prefactor  = 0.0001
  Prefactor  = 18.268
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 40.1955
  Prefactor  = 0.0001
  Prefactor  = 29.8146
  Prefactor  = 0.000100033
  norm       = 8.44371
  norm       = 0.260779
  Prefactor  = 11.2702
  Prefactor  = 0.000100002
  Prefactor  = 38.5656
  Prefactor  = 233.337
  norm       = 8.2148
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.2787
  norm       = 5.45662
  norm       = 0.382996
  Prefactor  = 11.666
  norm       = 5.26815
  Prefactor  = 0.0001
  Normalizat = 0.657441
  Prefactor  = 0.664564
 **********
 **   18 **HESSE 
 **********

 FCN=   2917.081     FROM HESSE     STATUS=OK           551 CALLS     4978 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    127.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.7209        8.6105        .16792E-03   -1.5230    
   3  Prefactor     .10000E-03    15.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.268        32.304        .93728E-04   -1.4853    
   5  Prefactor     .10000E-03    59.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    78.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    153.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.1502        .11144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          40.196        30.746        .63220E-04   -1.4439    
  10  Prefactor     .10000E-03    5.3437        .12171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     29.815        210.41        .73427E-04   -1.4615    
  12  Prefactor     .10003E-03    619.63        .21384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.4437        5.5935        .95858E-04   -1.5127    
  14  norm          .26078        6.6158        .18537E-02   -1.5606    
  15  Prefactor     11.270        33.405        .11944E-03   -1.5036    
  16  Prefactor     .10000E-03    24.421        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     38.566        43.950        .64535E-04   -1.4465    
  18  Prefactor     233.34        212.80        .13251E-03   -1.2641    
  19  norm          8.2148        5.5475        .95316E-04   -1.5135    
  20  Prefactor     .10000E-03    14.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.5596        .84101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.279        18.452        .11431E-03   -1.5007    
  23  norm          5.4566        1.5806        .31693E-04   -1.5241    
  24  norm          .38300        1.2569        .85641E-04   -1.5584    
  25  Prefactor     11.666        26.369        .11727E-03   -1.5025    
  26  norm          5.2681        57.462        .87579E-03   -1.5249    
  27  Prefactor     .10000E-03    34.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .65744        .40762        .38976E-03   -1.0560    
  29  Prefactor     .66456        .22261        .21008E-03   -1.0493    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45422e-08
Minuit parameter uncertainties:
  1  0.00106946
  2  8.61235
  3  2.15387e-05
  4  32.3348
  5  0.000614012
  6  0.000930531
  7  0.0016556
  8  1.39075e-06
  9  30.7583
  10  4.00766e-06
  11  159.21
  12  0.0090752
  13  5.59384
  14  2.6268
  15  33.4601
  16  0.000465888
  17  43.9873
  18  213.51
  19  5.54783
  20  5.0053e-05
  21  1.99915e-06
  22  18.4609
  23  1.58063
  24  1.25701
  25  26.3949
  26  34.8399
  27  0.000128044
  28  0.409513
  29  0.222906
Done.

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

Extracting fit parameters...

4FGL J0136.5+3906
   Spectrum: LogParabola
252         norm:  8.444e+00  5.594e+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:  6.646e-01  2.229e-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.574e-01  4.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.65
Ra Dec: 24.142 39.100
Photon Index (Fixed Index): 1.56 +/- 0.00
Photon Flux (Fixed Index): 1.07e-07 +/- 7.10e-08
Energy Flux (Fixed Index): 2.27e-04 +/- 1.50e-04

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) = 2914.53524692
delta logL = 2.54535689159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2914.53470118
delta logL = 2.54590263249

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3708       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5238       1.0000          .0000       5.0000    
     3 'Normalizat'    .52737       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68007       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=   2914.535     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      269 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3736        40.081        .43352E-02   -.42650E-03
   2  alpha         2.5240        3.6756        .11132       -.11916E-04
   3  Normalizat    .52769        .22770        .96951E-01   -.37527E-04
   4  Prefactor     .67981        .10491        .42135E-01   -.15978E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.37362
  alpha      = 2.52402
  Normalizat = 0.527688
  Prefactor  = 0.679807
 **********
 **   18 **HESSE 
 **********

 FCN=   2914.535     FROM HESSE     STATUS=OK            31 CALLS      300 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3736        4.2759        .50496E-04   -1.5244    
   2  alpha         2.5240        .45357        .47732E-02    .96077E-02
   3  Normalizat    .52769        .38926        .42980E-03   -1.1115    
   4  Prefactor     .67981        .21160        .20648E-03   -1.0432    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.9401e-11
Minuit parameter uncertainties:
  1  4.2761
  2  0.456101
  3  0.391292
  4  0.211851
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/199800': 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) = 2914.53469802
delta logL = 2.54590579436

Extracting fit parameters...

4FGL J0136.5+3906
   Spectrum: LogParabola
252         norm:  5.374e+00  4.276e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  2.524e+00  4.561e-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:  6.798e-01  2.119e-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:  5.277e-01  3.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.52
Ra Dec: 24.142 39.100
Photon Index (Free Index): 2.52 +/- 0.46
Photon Flux (Free Index): 3.68e-07 +/- 1.95e-07
Energy Flux (Free Index): 1.22e-04 +/- 5.69e-05

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/199800/cmap_HighResolution_491788801_492393601_4FGL_J0136.5+3906_weekly_bin418.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.07e-07', energy_flux2='1.22e-04', photon_flux_error='7.10e-08', dlogl='2.55e+00', energy_flux='2.27e-04', photon_flux2='3.68e-07', job_status='DONE', time_completed='2021-07-03 23:15:47.102277', photon_index_error2='0.46', photon_index2='2.52', ts='5.65', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='5.69e-05', EG='0.66', time_epoch_completed='1625379347.1', return_code='0', job_id='199800', GAL2='0.68', EG2='0.53', return_code2='0', energy_flux_error='1.50e-04', photon_flux_error2='1.95e-07', ts2='10.52', photon_index='1.56' WHERE bin_id='418' AND source_name='4FGL J0136.5+3906' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 23:15:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 199800: <4FGL_J0136.5+3906_weekly_bin418> in cluster <slac> Done

Job <4FGL_J0136.5+3906_weekly_bin418> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Jul  3 23:05:43 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 23:05:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  3 23:05:45 2021
Terminated at Sat Jul  3 23:15:47 2021
Results reported at Sat Jul  3 23:15:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0136.5+3906_weekly_bin418 24.1423 39.1 491788801 492393601 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 :                                   550.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   602 sec.
    Turnaround time :                            604 sec.

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

