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


Performing analysis on: 4FGL_J0137.0+4751_daily_bin1780
RA = 24.2603, Dec = 47.8637
tmin = 700704001, tmax = 700963201
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='55184', job_status='RUN', time_executed='2023-03-20 00:26:12.221126', time_epoch_executed='1679297172.22' WHERE source_name='4FGL J0137.0+4751' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55184

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55184/ft1_4FGL_J0137.0+4751_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55184/ft2_4FGL_J0137.0+4751_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55184/ft1_4FGL_J0137.0+4751_daily_bin1780.fits outfile=/scratch/kocevski/55184/ft1_filteredMKT_4FGL_J0137.0+4751_daily_bin1780.fits ra=24.2603 dec=47.8637 rad=12.0 tmin=700704001.0 tmax=700963201.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 4.09
user 3.87
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/55184/ft2_4FGL_J0137.0+4751_daily_bin1780.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/55184/ft1_filteredMKT_4FGL_J0137.0+4751_daily_bin1780.fits evtable="EVENTS" outfile="/scratch/kocevski/55184/ft1_filtered_4FGL_J0137.0+4751_daily_bin1780.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 1133

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55184/ft1_filtered_4FGL_J0137.0+4751_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/55184/ft2_4FGL_J0137.0+4751_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/55184/ltcube_700704001_700963201_4FGL_J0137.0+4751_daily_bin1780.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/55184/ft2_4FGL_J0137.0+4751_daily_bin1780.fits
.....................!
real 12.36
user 11.99
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55184/ft1_filtered_4FGL_J0137.0+4751_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/55184/ft2_4FGL_J0137.0+4751_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/55184/ltcube_700704001_700963201_4FGL_J0137.0+4751_daily_bin1780.fits outfile=/scratch/kocevski/55184/expmap_700704001_700963201_4FGL_J0137.0+4751_daily_bin1780.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/55184/ltcube_700704001_700963201_4FGL_J0137.0+4751_daily_bin1780.fits
.....................!
real 191.49
user 185.65
sys 5.37

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/55184/ft1_filtered_4FGL_J0137.0+4751_daily_bin1780.fits scfile=/scratch/kocevski/55184/ft2_4FGL_J0137.0+4751_daily_bin1780.fits outfile=/scratch/kocevski/55184/cmap_700704001_700963201_4FGL_J0137.0+4751_daily_bin1780.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 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55184/ft1_filtered_4FGL_J0137.0+4751_daily_bin1780.fits scfile=/scratch/kocevski/55184/ft2_4FGL_J0137.0+4751_daily_bin1780.fits outfile=/scratch/kocevski/55184/cmap_HighResolution_700704001_700963201_4FGL_J0137.0+4751_daily_bin1780.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/55184/ft1_filtered_4FGL_J0137.0+4751_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/55184/ft2_4FGL_J0137.0+4751_daily_bin1780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/55184/Model_4FGL_J0137.0+4751_daily_bin1780.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/55184/ft1_filtered_4FGL_J0137.0+4751_daily_bin1780.fits.....................!
real 136.41
user 134.85
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/55184/ft1_filtered_4FGL_J0137.0+4751_daily_bin1780.fits', '/scratch/kocevski/55184/ft2_4FGL_J0137.0+4751_daily_bin1780.fits', expMap='/scratch/kocevski/55184/expmap_700704001_700963201_4FGL_J0137.0+4751_daily_bin1780.fits', expCube='/scratch/kocevski/55184/ltcube_700704001_700963201_4FGL_J0137.0+4751_daily_bin1780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/55184/Model_4FGL_J0137.0+4751_daily_bin1780.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/55184/ft1_filtered_4FGL_J0137.0+4751_daily_bin1780.fits
Spacecraft file(s): /scratch/kocevski/55184/ft2_4FGL_J0137.0+4751_daily_bin1780.fits
Exposure map: /scratch/kocevski/55184/expmap_700704001_700963201_4FGL_J0137.0+4751_daily_bin1780.fits
Exposure cube: /scratch/kocevski/55184/ltcube_700704001_700963201_4FGL_J0137.0+4751_daily_bin1780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/55184/Model_4FGL_J0137.0+4751_daily_bin1780.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) = 11384.2243797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18314E-02   1.0000          .0000       .10000E+07
     2 'norm      '    37.430       1.0000          .0000       .10000E+07
     3 'Prefactor '    .16902E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .35180E-01   1.0000          .0000       .10000E+07
     5 'norm      '    3.5789       1.0000          .0000       .10000E+07
     6 'norm      '    68.913       1.0000          .0000       .10000E+07
     7 'Prefactor '    14.858       1.0000          .0000       .10000E+07
     8 'norm      '    .10223E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    27.439       1.0000          .0000       .10000E+07
    10 'norm      '    .11799E-05   1.0000          .0000       .10000E+07
    11 'norm      '    .86186       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.2784       1.0000          .0000       .10000E+07
    13 'Prefactor '    10.730       1.0000          .0000       .10000E+07
    14 'Prefactor '    .16332E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    31.294       1.0000          .0000       .10000E+07
    16 'norm      '    .93777       1.0000          .0000       .10000E+07
    17 'norm      '    .21191E-02   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.4350       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .90389       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=   11384.22     FROM MIGRAD    STATUS=CONVERGED     95 CALLS     1456 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22204E-08    16.971        .85366E-07** at limit **
   2  norm          37.443        1.0027        .62565E-09   -.12930E-01
   3  Prefactor     .89928E-08    3.7245       -.36002E-07** at limit **
   4  Prefactor     .11174E-06    30.267       -.63074E-07** at limit **
   5  norm          3.5428        4.5649        .90467E-07    .36130E-02
   6  norm          68.909        1.0066       -.77922E-09    .37906E-01
   7  Prefactor     14.961        1.0787        .18860E-08   -.27425E-01
   8  norm          .66613E-09    1.8114       -.12387E-06** at limit **
   9  Prefactor     27.452        1.0005        .14072E-09   -.11573E-02
  10  norm           .0000        .78717       -.64238E-08** at limit **
  11  norm          .86228        .82504        .40867E-07    .11673E-01
  12  Prefactor     2.2784        2.9232        .47350E-07    .26845E-02
  13  Prefactor     10.685        2.2117       -.26204E-07    .16523    
  14  Prefactor      .0000        2.9208       -.91201E-07** at limit **
  15  Prefactor     31.291        1.0001        .68390E-10   -.31219E-02
  16  norm          .93802        .33437       -.20750E-07   -.55265E-01
  17  norm          .10159E-07    4.7427       -.33952E-07** at limit **
  18  Normalizat    1.4353        .22419       -.18735E-05   -.38641E-03
  19  Prefactor     .90388        .64828E-01   -.25295E-06   -.84412E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22045e-09
  norm       = 37.4429
  Prefactor  = 8.99281e-09
  Prefactor  = 1.11744e-07
  norm       = 3.5428
  norm       = 68.9091
  Prefactor  = 14.9611
  norm       = 6.66134e-10
  Prefactor  = 27.4524
  norm       = 0
  norm       = 0.862284
  Prefactor  = 2.2784
  Prefactor  = 10.6853
  Prefactor  = 0
  Prefactor  = 31.2907
  norm       = 0.938016
  norm       = 1.01585e-08
  Normalizat = 1.43526
  Prefactor  = 0.903883
 **********
 **   18 **HESSE 
 **********

 FCN=   11384.22     FROM HESSE     STATUS=OK           314 CALLS     1770 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22204E-08    16.959        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          37.443        26.998        .16347E-03   -1.5586    
   3  Prefactor     .89928E-08    3.7487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11174E-06    7.6423        .92608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.5428        4.5952        .53394E-03   -1.5670    
   6  norm          68.909        55.095        .12047E-03   -1.5542    
   7  Prefactor     14.961        20.989        .25958E-03   -1.5631    
   8  norm          .66613E-09    1.8088        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.452        40.062        .19094E-03   -1.5603    
  10  norm           .0000        .78390        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .86228        .83234        .48434E-03   -1.5689    
  12  Prefactor     2.2784        2.9343        .67998E-03   -1.5678    
  13  Prefactor     10.685        12.174        .30562E-03   -1.5643    
  14  Prefactor      .0000        2.8956        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     31.291        42.381        .17878E-03   -1.5596    
  16  norm          .93802        .33492        .43183E-03   -1.5689    
  17  norm          .10159E-07    4.7599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4353        .21793        .95553E-01   -.79614    
  19  Prefactor     .90388        .60522E-01    .33622E-01   -.96006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75094e-07
Minuit parameter uncertainties:
  1  0.000389066
  2  26.9982
  3  0.000367452
  4  0.00184816
  5  4.59523
  6  55.0954
  7  20.9896
  8  6.90327e-05
  9  40.0628
  10  3.87052e-06
  11  0.83234
  12  2.93426
  13  12.1742
  14  3.97142e-06
  15  42.3813
  16  0.334923
  17  0.000440367
  18  0.218074
  19  0.0605265
Done.

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

Extracting fit parameters...

4FGL J0137.0+4751
   Spectrum: LogParabola
277         norm:  8.623e-01  8.323e-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.039e-01  6.053e-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.435e+00  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.58
Ra Dec: 24.260 47.864
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 4.17e-08 +/- 4.02e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 1.61e-05

TS (Fixed Index): 1.58
Ra Dec: 24.260 47.864
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/55184/likelihoodResults_700704001_700963201_4FGL_J0137.0+4751_daily_bin1780.txt

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) = 11384.0589168
delta logL = 0.165412767239

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11384.0551935
delta logL = 0.169136114451

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .28713       1.0000          .0000       .10000E+07
     2 'alpha     '    3.5299       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3826       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91318       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11384.06     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      288 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28724        8.9706        .45723E-04    .93195E-01
   2  alpha         3.5299        3.2112        .20731E-01    .19153E-03
   3  Normalizat    1.3825        .19602        .42988E-03    .24166E-03
   4  Prefactor     .91320        .55741E-01    .14791E-03    .60063E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.287244
  alpha      = 3.52992
  Normalizat = 1.38249
  Prefactor  = 0.913198
 **********
 **   18 **HESSE 
 **********

 FCN=   11384.06     FROM HESSE     STATUS=OK            27 CALLS      315 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .28724        1.0191        .18289E-05   -1.5697    
   2  alpha         3.5299        3.7817        .82925E-03    .42461    
   3  Normalizat    1.3825        .23131        .17195E-04   -.81136    
   4  Prefactor     .91320        .64870E-01    .29582E-04   -.95681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13255e-09
Minuit parameter uncertainties:
  1  1.01914
  2  2.4715
  3  0.231482
  4  0.0648756
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55184': 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) = 11384.0551933
delta logL = 0.16913628691

Extracting fit parameters...

4FGL J0137.0+4751
   Spectrum: LogParabola
277         norm:  2.872e-01  1.019e+00  0.000e+00  1.000e+06 ( 1.000e-11)
278        alpha:  3.530e+00  2.472e+00  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.132e-01  6.488e-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.382e+00  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.01
Ra Dec: 24.260 47.864
Photon Index (Free Index): 3.53 +/- 2.47
Photon Flux (Free Index): 8.06e-08 +/- 6.90e-08
Energy Flux (Free Index): 1.40e-05 +/- 1.30e-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/55184/cmap_HighResolution_700704001_700963201_4FGL_J0137.0+4751_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.17e-05', comment='SUCCESS', photon_flux='4.17e-08', energy_flux2='1.40e-05', photon_flux_error='4.02e-08', dlogl='1.69e-01', energy_flux='1.67e-05', photon_flux2='8.06e-08', job_status='DONE', time_completed='2023-03-20 00:39:49.656779', photon_index_error2='2.47', photon_index2='3.53', ts='1.58', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.30e-05', EG='1.44', time_epoch_completed='1679297989.66', return_code='0', job_id='55184', GAL2='0.91', EG2='1.38', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='6.90e-08', ts2='2.01', photon_index='2.20' WHERE bin_id='1780' AND source_name='4FGL J0137.0+4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 00:39:49 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 55184: <4FGL_J0137.0+4751_daily_bin1780> in cluster <slac> Done

Job <4FGL_J0137.0+4751_daily_bin1780> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Mar 20 00:25:13 2023
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 00:25:14 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 00:25:14 2023
Terminated at Mon Mar 20 00:39:50 2023
Results reported at Mon Mar 20 00:39:50 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.0+4751_daily_bin1780 24.2603 47.8637 700704001 700963201 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 :                                   819.01 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             369.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            877 sec.

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

