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


Performing analysis on: 4FGL_J0137.0+4751_daily_bin1740
RA = 24.2603, Dec = 47.8637
tmin = 690336001, tmax = 690595201
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='822719', job_status='RUN', time_executed='2022-11-20 00:08:25.700712', time_epoch_executed='1668931705.7' WHERE source_name='4FGL J0137.0+4751' and cadence='daily' and bin_id='1740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/822719

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/822719/ft1_4FGL_J0137.0+4751_daily_bin1740.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/822719/ft2_4FGL_J0137.0+4751_daily_bin1740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/822719/ft1_4FGL_J0137.0+4751_daily_bin1740.fits outfile=/scratch/kocevski/822719/ft1_filteredMKT_4FGL_J0137.0+4751_daily_bin1740.fits ra=24.2603 dec=47.8637 rad=12.0 tmin=690336001.0 tmax=690595201.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.02
user 2.75
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/822719/ft2_4FGL_J0137.0+4751_daily_bin1740.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/822719/ft1_filteredMKT_4FGL_J0137.0+4751_daily_bin1740.fits evtable="EVENTS" outfile="/scratch/kocevski/822719/ft1_filtered_4FGL_J0137.0+4751_daily_bin1740.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.51
user 0.35
sys 0.14

Number of photons that the gtmktime cut: 676

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/822719/ft1_filtered_4FGL_J0137.0+4751_daily_bin1740.fits evtable="EVENTS" scfile=/scratch/kocevski/822719/ft2_4FGL_J0137.0+4751_daily_bin1740.fits sctable="SC_DATA" expcube=/scratch/kocevski/822719/ltcube_690336001_690595201_4FGL_J0137.0+4751_daily_bin1740.fits outfile=/scratch/kocevski/822719/expmap_690336001_690595201_4FGL_J0137.0+4751_daily_bin1740.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/822719/ltcube_690336001_690595201_4FGL_J0137.0+4751_daily_bin1740.fits
.....................!
real 191.86
user 185.35
sys 5.38

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/822719/ft1_filtered_4FGL_J0137.0+4751_daily_bin1740.fits scfile=/scratch/kocevski/822719/ft2_4FGL_J0137.0+4751_daily_bin1740.fits outfile=/scratch/kocevski/822719/cmap_690336001_690595201_4FGL_J0137.0+4751_daily_bin1740.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/822719/ft1_filtered_4FGL_J0137.0+4751_daily_bin1740.fits scfile=/scratch/kocevski/822719/ft2_4FGL_J0137.0+4751_daily_bin1740.fits outfile=/scratch/kocevski/822719/cmap_HighResolution_690336001_690595201_4FGL_J0137.0+4751_daily_bin1740.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.58
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55080E-01   1.0000          .0000       .10000E+07
     2 'norm      '    .53254E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .65781E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    .19948E-03   1.0000          .0000       .10000E+07
     5 'norm      '    8.4000       1.0000          .0000       .10000E+07
     6 'norm      '    10.508       1.0000          .0000       .10000E+07
     7 'Prefactor '    16.735       1.0000          .0000       .10000E+07
     8 'norm      '    4.5781       1.0000          .0000       .10000E+07
     9 'Prefactor '    .37517E-01   1.0000          .0000       .10000E+07
    10 'norm      '    .11324E-06   1.0000          .0000       .10000E+07
    11 'norm      '    2.0890       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.2637       1.0000          .0000       .10000E+07
    13 'Prefactor '    .82282E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .17947E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    148.36       1.0000          .0000       .10000E+07
    16 'norm      '    .46993       1.0000          .0000       .10000E+07
    17 'norm      '    .21837E-01   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0620       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0393       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=   7316.314     FROM MIGRAD    STATUS=CONVERGED    155 CALLS     1420 TOTAL
                     EDM=   .52E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        54.227        .37852E-06** at limit **
   2  norm           .0000        11.477        .31827E-06** at limit **
   3  Prefactor      .0000        5.6579       -.25433E-07** at limit **
   4  Prefactor      .0000        34.122       -.14705E-06** at limit **
   5  norm          8.5495        6.9473        .10616E-07    .35641E-05
   6  norm          10.334        47.026       -.27147E-06   -.21535E-04
   7  Prefactor     16.740        25.073       -.69585E-06    .73491E-04
   8  norm          4.5816        4.4778        .14182E-06   -.12539E-03
   9  Prefactor      .0000        49.593       -.75168E-06** at limit **
  10  norm           .0000        1.3960       -.23893E-07** at limit **
  11  norm          2.0898        1.3708        .41082E-07   -.30363E-03
  12  Prefactor     3.2638        2.8964       -.48158E-07   -.25247E-04
  13  Prefactor      .0000        11.694       -.35189E-06** at limit **
  14  Prefactor      .0000        1.9999       -.83216E-07** at limit **
  15  Prefactor     150.07        121.34        .99971E-06   -.37639E-04
  16  norm          .46961        .46550       -.20558E-08   -.26041E-04
  17  norm           .0000        19.175       -.39906E-06** at limit **
  18  Normalizat    1.0616        .31529        .99316E-05   -.62525E-05
  19  Prefactor     1.0391        .88407E-01   -.53852E-06   -.13409E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 8.54949
  norm       = 10.3337
  Prefactor  = 16.7398
  norm       = 4.58157
  Prefactor  = 0
  norm       = 0
  norm       = 2.08982
  Prefactor  = 3.26377
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 150.074
  norm       = 0.469606
  norm       = 0
  Normalizat = 1.0616
  Prefactor  = 1.03913
 **********
 **   18 **HESSE 
 **********

 FCN=   7316.314     FROM HESSE     STATUS=OK           306 CALLS     1726 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        53.881        .15344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        11.479        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        5.6560        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        33.998        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.5495        6.9277        .34565E-03   -1.5649    
   6  norm          10.334        46.380        .30884E-03   -1.5644    
   7  Prefactor     16.740        25.007        .24456E-03   -1.5626    
   8  norm          4.5816        4.4833        .47021E-03   -1.5665    
   9  Prefactor      .0000        49.381        .16078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        1.3821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.0898        1.3775        .71400E-03   -1.5679    
  12  Prefactor     3.2638        2.8884        .56032E-03   -1.5672    
  13  Prefactor      .0000        11.694        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        1.9972        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     150.07        121.19        .82105E-04   -1.5463    
  16  norm          .46961        .45135        .12471E-02   -1.5694    
  17  norm           .0000        19.063        .16919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0616        .29276        .11803       -.90995    
  19  Prefactor     1.0391        .81237E-01    .40581E-01   -.91436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17281e-10
Minuit parameter uncertainties:
  1  7.22827e-06
  2  4.43237e-06
  3  1.38497e-06
  4  1.61108e-05
  5  6.92773
  6  43.7854
  7  25.0067
  8  4.48327
  9  2.35538e-05
  10  2.17712e-07
  11  1.37751
  12  2.88842
  13  6.45263e-06
  14  6.13433e-07
  15  121.192
  16  0.451352
  17  3.57863e-06
  18  0.293204
  19  0.0812468
Done.

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

Extracting fit parameters...

4FGL J0137.0+4751
   Spectrum: LogParabola
277         norm:  2.090e+00  1.378e+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

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.039e+00  8.125e-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.062e+00  2.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.49
Ra Dec: 24.260 47.864
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 1.01e-07 +/- 6.66e-08
Energy Flux (Fixed Index): 4.04e-05 +/- 2.66e-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) = 7315.99527725
delta logL = 0.318370092019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7315.98884502
delta logL = 0.324802322372

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1805       1.0000          .0000       .10000E+07
     2 'alpha     '    1.7675       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0882       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0355       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=   7315.989     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      200 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1805        1.9811        .69690E-03   -.34178E-01
   2  alpha         1.7675        .56496        .38510       -.81972E-04
   3  Normalizat    1.0881        .28443        .11678       -.14566E-03
   4  Prefactor     1.0355        .79687E-01    .40847E-01   -.70263E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.18045
  alpha      = 1.76754
  Normalizat = 1.08809
  Prefactor  = 1.03549
 **********
 **   18 **HESSE 
 **********

 FCN=   7315.989     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1805        1.4893        .80880E-05   -1.5678    
   2  alpha         1.7675        .50263        .14394E-01   -.29735    
   3  Normalizat    1.0881        .30576        .51799E-03   -.90135    
   4  Prefactor     1.0355        .85812E-01    .14794E-03   -.91556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7785e-09
Minuit parameter uncertainties:
  1  1.48931
  2  0.506406
  3  0.306259
  4  0.0858232
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/822719': 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) = 7315.98884498
delta logL = 0.324802355535

Extracting fit parameters...

4FGL J0137.0+4751
   Spectrum: LogParabola
277         norm:  2.180e+00  1.489e+00  0.000e+00  1.000e+06 ( 1.000e-11)
278        alpha:  1.768e+00  5.064e-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:  1.035e+00  8.582e-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.088e+00  3.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.13
Ra Dec: 24.260 47.864
Photon Index (Free Index): 1.77 +/- 0.51
Photon Flux (Free Index): 7.22e-08 +/- 6.07e-08
Energy Flux (Free Index): 5.81e-05 +/- 4.82e-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/822719/cmap_HighResolution_690336001_690595201_4FGL_J0137.0+4751_daily_bin1740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.01e-07', energy_flux2='5.81e-05', photon_flux_error='6.66e-08', dlogl='3.25e-01', energy_flux='4.04e-05', photon_flux2='7.22e-08', job_status='DONE', time_completed='2022-11-20 00:18:05.580480', photon_index_error2='0.51', photon_index2='1.77', ts='4.49', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='4.82e-05', EG='1.06', time_epoch_completed='1668932285.58', return_code='0', job_id='822719', GAL2='1.04', EG2='1.09', return_code2='0', energy_flux_error='2.66e-05', photon_flux_error2='6.07e-08', ts2='5.13', photon_index='2.20' WHERE bin_id='1740' AND source_name='4FGL J0137.0+4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Nov 20 00:18:05 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 822719: <4FGL_J0137.0+4751_daily_bin1740> in cluster <slac> Done

Job <4FGL_J0137.0+4751_daily_bin1740> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Nov 20 00:05:07 2022
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:08:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:08:15 2022
Terminated at Sun Nov 20 00:18:06 2022
Results reported at Sun Nov 20 00:18:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.0+4751_daily_bin1740 24.2603 47.8637 690336001 690595201 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 :                                   581.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             379.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   590 sec.
    Turnaround time :                            779 sec.

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

