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


Performing analysis on: 4FGL_J0137.0+4751_daily_bin1736
RA = 24.2603, Dec = 47.8637
tmin = 689299201, tmax = 689558401
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='951641', job_status='RUN', time_executed='2022-11-08 00:06:59.382924', time_epoch_executed='1667894819.38' WHERE source_name='4FGL J0137.0+4751' and cadence='daily' and bin_id='1736'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/951641

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/951641/ft1_4FGL_J0137.0+4751_daily_bin1736.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/951641/ft2_4FGL_J0137.0+4751_daily_bin1736.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/951641/ft1_4FGL_J0137.0+4751_daily_bin1736.fits outfile=/scratch/kocevski/951641/ft1_filteredMKT_4FGL_J0137.0+4751_daily_bin1736.fits ra=24.2603 dec=47.8637 rad=12.0 tmin=689299201.0 tmax=689558401.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.91
user 3.35
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/951641/ft2_4FGL_J0137.0+4751_daily_bin1736.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/951641/ft2_4FGL_J0137.0+4751_daily_bin1736.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/951641/ft1_filteredMKT_4FGL_J0137.0+4751_daily_bin1736.fits evtable="EVENTS" outfile="/scratch/kocevski/951641/ft1_filtered_4FGL_J0137.0+4751_daily_bin1736.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 1.26
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 1338

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/951641/ft1_filtered_4FGL_J0137.0+4751_daily_bin1736.fits" evtable="EVENTS" scfile=/scratch/kocevski/951641/ft2_4FGL_J0137.0+4751_daily_bin1736.fits sctable="SC_DATA" outfile=/scratch/kocevski/951641/ltcube_689299201_689558401_4FGL_J0137.0+4751_daily_bin1736.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/951641/ft2_4FGL_J0137.0+4751_daily_bin1736.fits
.....................!
real 13.41
user 12.38
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/951641/ft1_filtered_4FGL_J0137.0+4751_daily_bin1736.fits evtable="EVENTS" scfile=/scratch/kocevski/951641/ft2_4FGL_J0137.0+4751_daily_bin1736.fits sctable="SC_DATA" expcube=/scratch/kocevski/951641/ltcube_689299201_689558401_4FGL_J0137.0+4751_daily_bin1736.fits outfile=/scratch/kocevski/951641/expmap_689299201_689558401_4FGL_J0137.0+4751_daily_bin1736.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/951641/ltcube_689299201_689558401_4FGL_J0137.0+4751_daily_bin1736.fits
.....................!
real 192.07
user 185.63
sys 5.50

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
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W3.fits is the correct path to the extended template.
Added 177 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0137.0+4751 @ 24.2603 47.8637

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/951641/ft1_filtered_4FGL_J0137.0+4751_daily_bin1736.fits scfile=/scratch/kocevski/951641/ft2_4FGL_J0137.0+4751_daily_bin1736.fits outfile=/scratch/kocevski/951641/cmap_689299201_689558401_4FGL_J0137.0+4751_daily_bin1736.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.2603 yref=47.8637 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 1.52
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/951641/ft1_filtered_4FGL_J0137.0+4751_daily_bin1736.fits scfile=/scratch/kocevski/951641/ft2_4FGL_J0137.0+4751_daily_bin1736.fits outfile=/scratch/kocevski/951641/cmap_HighResolution_689299201_689558401_4FGL_J0137.0+4751_daily_bin1736.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.2603 yref=47.8637 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.62
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/951641/ft1_filtered_4FGL_J0137.0+4751_daily_bin1736.fits evtable="EVENTS" scfile=/scratch/kocevski/951641/ft2_4FGL_J0137.0+4751_daily_bin1736.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/951641/Model_4FGL_J0137.0+4751_daily_bin1736.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
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/951641/ft1_filtered_4FGL_J0137.0+4751_daily_bin1736.fits.....................!
real 167.62
user 162.65
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/951641/ft1_filtered_4FGL_J0137.0+4751_daily_bin1736.fits', '/scratch/kocevski/951641/ft2_4FGL_J0137.0+4751_daily_bin1736.fits', expMap='/scratch/kocevski/951641/expmap_689299201_689558401_4FGL_J0137.0+4751_daily_bin1736.fits', expCube='/scratch/kocevski/951641/ltcube_689299201_689558401_4FGL_J0137.0+4751_daily_bin1736.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/951641/Model_4FGL_J0137.0+4751_daily_bin1736.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0137.0+4751'

4FGL J0137.0+4751
   Spectrum: LogParabola
277         norm:  1.175e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
278        alpha:  2.196e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
279         beta:  9.871e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  6.877e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/951641/ft1_filtered_4FGL_J0137.0+4751_daily_bin1736.fits
Spacecraft file(s): /scratch/kocevski/951641/ft2_4FGL_J0137.0+4751_daily_bin1736.fits
Exposure map: /scratch/kocevski/951641/expmap_689299201_689558401_4FGL_J0137.0+4751_daily_bin1736.fits
Exposure cube: /scratch/kocevski/951641/ltcube_689299201_689558401_4FGL_J0137.0+4751_daily_bin1736.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/951641/Model_4FGL_J0137.0+4751_daily_bin1736.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) = 13880.9135842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37107E-01   1.0000          .0000       .10000E+07
     2 'norm      '    6.3109       1.0000          .0000       .10000E+07
     3 'Prefactor '    .86597E-08   1.0000          .0000       .10000E+07
     4 'Prefactor '    4.1529       1.0000          .0000       .10000E+07
     5 'norm      '    .37630E-01   1.0000          .0000       .10000E+07
     6 'norm      '    .48323       1.0000          .0000       .10000E+07
     7 'Prefactor '    5.6835       1.0000          .0000       .10000E+07
     8 'norm      '    .12850E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .12293E-04   1.0000          .0000       .10000E+07
    10 'norm      '    1.9429       1.0000          .0000       .10000E+07
    11 'norm      '    1.6076       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.7721       1.0000          .0000       .10000E+07
    13 'Prefactor '    .62728E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    5.8103       1.0000          .0000       .10000E+07
    15 'Prefactor '    66.391       1.0000          .0000       .10000E+07
    16 'norm      '    .54511       1.0000          .0000       .10000E+07
    17 'norm      '    .31863E-07   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.1849       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98858       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13880.88     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     1133 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53846E-08    42.350        .59035E-06** at limit **
   2  norm          6.2540        2.7993       -.11712E-06   -.17836E-01
   3  Prefactor      .0000        2.3075       -.39190E-07** at limit **
   4  Prefactor     4.0494        8.9205       -.31573E-05   -.36263E-02
   5  norm          .15304E-06    47.553       -.12402E-04** at limit **
   6  norm          .53772E-05    270.09        .51635E-04** at limit **
   7  Prefactor     5.7085        5.8385        .33503E-05    .75673E-01
   8  norm          .55511E-10    6.6822       -.14210E-06** at limit **
   9  Prefactor     .16054E-06    82.925       -.12437E-04** at limit **
  10  norm          1.9427        1.1415        .54250E-07   -.38011E-02
  11  norm          1.6071        .85738       -.19620E-07    .69821E-02
  12  Prefactor     1.7714        2.5411       -.59092E-07    .62606E-02
  13  Prefactor      .0000        3.6100        .97403E-07** at limit **
  14  Prefactor     5.8061        3.8906       -.12374E-06   -.52445E-02
  15  Prefactor     66.547        9.7124        .20765E-05   -.43817E-01
  16  norm          .54500        .26549        .34410E-09    .16875E-01
  17  norm          .38858E-09    10.967        .19264E-06** at limit **
  18  Normalizat    1.1851        .22252        .96376E-05    .18135E-03
  19  Prefactor     .98871        .62300E-01   -.21934E-05    .34596E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.38458e-09
  norm       = 6.25396
  Prefactor  = 0
  Prefactor  = 4.04938
  norm       = 1.53044e-07
  norm       = 5.3772e-06
  Prefactor  = 5.70855
  norm       = 5.55112e-11
  Prefactor  = 1.60538e-07
  norm       = 1.94267
  norm       = 1.60714
  Prefactor  = 1.77136
  Prefactor  = 0
  Prefactor  = 5.8061
  Prefactor  = 66.5467
  norm       = 0.544997
  norm       = 3.88578e-10
  Normalizat = 1.18507
  Prefactor  = 0.988709  **********
 **   18 **HESSE 
 **********

 FCN=   13880.88     FROM HESSE     STATUS=OK           326 CALLS     1459 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53846E-08    41.521        .16097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.2540        9.0939        .39933E-03   -1.5658    
   3  Prefactor      .0000        2.3177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.0494        9.4186        .49436E-03   -1.5668    
   5  norm          .15304E-06    1.9211        .10862E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .53772E-05    22.165        .18808E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.7085        18.257        .42111E-03   -1.5660    
   8  norm          .55511E-10    6.5784        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .16054E-06    84.383        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9427        1.1393        .74446E-03   -1.5680    
  11  norm          1.6071        .86592        .83532E-03   -1.5683    
  12  Prefactor     1.7714        2.5677        .78627E-03   -1.5681    
  13  Prefactor      .0000        3.6105        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.8061        3.9251        .41642E-03   -1.5660    
  15  Prefactor     66.547        53.942        .12274E-03   -1.5545    
  16  norm          .54500        .26429        .74295E-03   -1.5693    
  17  norm          .38858E-09    10.969        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1851        .20941        .10447       -.87065    
  19  Prefactor     .98871        .58565E-01    .33297E-01   -.93107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65525e-07
Minuit parameter uncertainties:
  1  0.000945258
  2  9.09391
  3  5.98421e-06
  4  9.41868
  5  0.00108446
  6  0.0218345
  7  18.2571
  8  2.85121e-05
  9  0.00736119
  10  1.13934
  11  0.865924
  12  2.56774
  13  1.52367e-05
  14  3.92514
  15  53.9425
  16  0.264292
  17  0.000127355
  18  0.209555
  19  0.0585692
Done.

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

Extracting fit parameters...

4FGL J0137.0+4751
   Spectrum: LogParabola
277         norm:  1.607e+00  8.659e-01  0.000e+00  1.000e+06 ( 1.000e-11)
278        alpha:  2.196e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
279         beta:  9.871e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  6.877e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.887e-01  5.857e-02  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.185e+00  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.80
Ra Dec: 24.260 47.864
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 7.77e-08 +/- 4.18e-08
Energy Flux (Fixed Index): 3.11e-05 +/- 1.67e-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) = 13880.3485972
delta logL = 0.528963385761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13880.3458399
delta logL = 0.531720704903

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13880.35     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      243 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4081        7.0295        .91254E-03    .79621E-02
   2  alpha         2.7187        3.7337        .39362        .81685E-04
   3  Normalizat    1.1332        .73313E-01    .10646        .22621E-04
   4  Prefactor     .99554        .19944E-01    .33190E-01   -.32073E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.40809
  alpha      = 2.7187
  Normalizat = 1.13322
  Prefactor  = 0.995541
 **********
 **   18 **HESSE 
 **********

 FCN=   13880.35     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4081        .85849        .60339E-05   -1.5684    
   2  alpha         2.7187        .53290        .13703E-01    .87590E-01
   3  Normalizat    1.1332        .21460        .47193E-03   -.88692    
   4  Prefactor     .99554        .61397E-01    .14666E-03   -.92878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.95158e-09
Minuit parameter uncertainties:
  1  0.85849
  2  0.537053
  3  0.21477
  4  0.0614017
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/951641': 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) = 13880.3458362
delta logL = 0.531724403181

Extracting fit parameters...

4FGL J0137.0+4751
   Spectrum: LogParabola
277         norm:  1.408e+00  8.585e-01  0.000e+00  1.000e+06 ( 1.000e-11)
278        alpha:  2.719e+00  5.371e-01  0.000e+00  5.000e+00 ( 1.000e+00)
279         beta:  9.871e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  6.877e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.955e-01  6.140e-02  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.133e+00  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.01
Ra Dec: 24.260 47.864
Photon Index (Free Index): 2.72 +/- 0.54
Photon Flux (Free Index): 1.26e-07 +/- 6.76e-08
Energy Flux (Free Index): 3.10e-05 +/- 1.42e-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/951641/cmap_HighResolution_689299201_689558401_4FGL_J0137.0+4751_daily_bin1736.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.77e-08', energy_flux2='3.10e-05', photon_flux_error='4.18e-08', dlogl='5.32e-01', energy_flux='3.11e-05', photon_flux2='1.26e-07', job_status='DONE', time_completed='2022-11-08 00:20:08.829656', photon_index_error2='0.54', photon_index2='2.72', ts='6.80', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.42e-05', EG='1.19', time_epoch_completed='1667895608.83', return_code='0', job_id='951641', GAL2='1.00', EG2='1.13', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='6.76e-08', ts2='8.01', photon_index='2.20' WHERE bin_id='1736' AND source_name='4FGL J0137.0+4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Nov  8 00:20:08 PST 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 951757: <4FGL_J0137.0+4751_daily_bin1736> in cluster <slac> Done

Job <4FGL_J0137.0+4751_daily_bin1736> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Nov  8 00:05:26 2022
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Nov  8 00:05:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Nov  8 00:05:37 2022
Terminated at Tue Nov  8 00:19:30 2022
Results reported at Tue Nov  8 00:19:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.0+4751_daily_bin1736 24.2603 47.8637 689299201 689558401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0137.0+4751 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   784.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             375.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            844 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 951641: <4FGL_J0137.0+4751_daily_bin1736> in cluster <slac> Done

Job <4FGL_J0137.0+4751_daily_bin1736> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Nov  8 00:05:19 2022
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Nov  8 00:05:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Nov  8 00:05:22 2022
Terminated at Tue Nov  8 00:20:09 2022
Results reported at Tue Nov  8 00:20:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.0+4751_daily_bin1736 24.2603 47.8637 689299201 689558401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0137.0+4751 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   782.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             355.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            890 sec.

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

