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


Performing analysis on: 4FGL_J0137.0+4751_weekly_bin741
RA = 24.2603, Dec = 47.8637
tmin = 687139201, tmax = 687744001
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='379001', job_status='RUN', time_executed='2022-10-18 00:37:26.920799', time_epoch_executed='1666078646.92' WHERE source_name='4FGL J0137.0+4751' and cadence='weekly' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/379001

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/379001/ft1_4FGL_J0137.0+4751_weekly_bin741.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/379001/ft2_4FGL_J0137.0+4751_weekly_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/379001/ft1_4FGL_J0137.0+4751_weekly_bin741.fits outfile=/scratch/kocevski/379001/ft1_filteredMKT_4FGL_J0137.0+4751_weekly_bin741.fits ra=24.2603 dec=47.8637 rad=12.0 tmin=687139201.0 tmax=687744001.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 6.59
user 6.33
sys 0.23

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

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

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

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

Number of photons that the gtmktime cut: 888

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/379001/ft1_filtered_4FGL_J0137.0+4751_weekly_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/379001/ft2_4FGL_J0137.0+4751_weekly_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/379001/ltcube_687139201_687744001_4FGL_J0137.0+4751_weekly_bin741.fits outfile=/scratch/kocevski/379001/expmap_687139201_687744001_4FGL_J0137.0+4751_weekly_bin741.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/379001/ltcube_687139201_687744001_4FGL_J0137.0+4751_weekly_bin741.fits
.....................!
real 190.69
user 185.87
sys 4.51

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/379001/ft1_filtered_4FGL_J0137.0+4751_weekly_bin741.fits scfile=/scratch/kocevski/379001/ft2_4FGL_J0137.0+4751_weekly_bin741.fits outfile=/scratch/kocevski/379001/cmap_687139201_687744001_4FGL_J0137.0+4751_weekly_bin741.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/379001/ft1_filtered_4FGL_J0137.0+4751_weekly_bin741.fits scfile=/scratch/kocevski/379001/ft2_4FGL_J0137.0+4751_weekly_bin741.fits outfile=/scratch/kocevski/379001/cmap_HighResolution_687139201_687744001_4FGL_J0137.0+4751_weekly_bin741.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.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.370       1.0000          .0000       .10000E+07
     2 'norm      '    .88818E-09   1.0000          .0000       .10000E+07
     3 'Prefactor '     .0000       1.0000          .0000       .10000E+07
     4 'Prefactor '    20.265       1.0000          .0000       .10000E+07
     5 'norm      '    4.0954       1.0000          .0000       .10000E+07
     6 'norm      '    153.42       1.0000          .0000       .10000E+07
     7 'Prefactor '    38.770       1.0000          .0000       .10000E+07
     8 'norm      '    .50250E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .21239E-06   1.0000          .0000       .10000E+07
    10 'norm      '    2.7624       1.0000          .0000       .10000E+07
    11 'norm      '    4.0373       1.0000          .0000       .10000E+07
    12 'Prefactor '    .42744E-08   1.0000          .0000       .10000E+07
    13 'Prefactor '    2.5598       1.0000          .0000       .10000E+07
    14 'Prefactor '    .34642       1.0000          .0000       .10000E+07
    15 'Prefactor '    118.06       1.0000          .0000       .10000E+07
    16 'norm      '    .28387       1.0000          .0000       .10000E+07
    17 'norm      '    .61062E-09   1.0000          .0000       .10000E+07
    18 'Normalizat'    .94321       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .91495       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=   9410.527     FROM MIGRAD    STATUS=CONVERGED    103 CALLS     1734 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.371        1.0273       -.13197E-08    .59480E-02
   2  norm           .0000        8.4296       -.55064E-06** at limit **
   3  Prefactor      .0000        5.4568        .47255E-06** at limit **
   4  Prefactor     20.262        1.3376        .54868E-07   -.32698E-03
   5  norm          4.0949        6.5684        .16642E-07   -.58505E-03
   6  norm          153.42        1.0003       -.27772E-09    .11219E-02
   7  Prefactor     38.767        1.0162        .68242E-08    .57961E-03
   8  norm          .22204E-09    9.9881        .45061E-06** at limit **
   9  Prefactor     .61062E-09    28.677        .16867E-05** at limit **
  10  norm          2.7623        2.2293       -.25748E-07   -.84181E-03
  11  norm          4.0369        1.4378        .27333E-07   -.24313E-02
  12  Prefactor      .0000        2.5436       -.36106E-06** at limit **
  13  Prefactor     2.5592        2.7417       -.40864E-06   -.65768E-03
  14  Prefactor     .34390        19.967       -.24044E-05   -.54045E-03
  15  Prefactor     118.07        1.0811       -.10365E-07    .15272E-01
  16  norm          .28389        .27386       -.30802E-07   -.97246E-03
  17  norm           .0000        10.748        .37419E-06** at limit **
  18  Normalizat    .94322        .25685        .88415E-05   -.80934E-04
  19  Prefactor     .91494        .65964E-01   -.14095E-08   -.28350E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.3705
  norm       = 0
  Prefactor  = 0
  Prefactor  = 20.2622
  norm       = 4.09489
  norm       = 153.421
  Prefactor  = 38.7674
  norm       = 2.22045e-10
  Prefactor  = 6.10623e-10
  norm       = 2.76227
  norm       = 4.03693
  Prefactor  = 0
  Prefactor  = 2.55924
  Prefactor  = 0.343903
  Prefactor  = 118.065
  norm       = 0.283893
  norm       = 0
  Normalizat = 0.943219
  Prefactor  = 0.914944
 **********
 **   18 **HESSE 
 **********

 FCN=   9410.527     FROM HESSE     STATUS=OK           322 CALLS     2056 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.371        45.824        .17579E-03   -1.5594    
   2  norm           .0000        8.4171        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        5.4632        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.262        14.107        .22221E-03   -1.5618    
   5  norm          4.0949        6.5685        .49792E-03   -1.5667    
   6  norm          153.42        95.644        .80742E-04   -1.5460    
   7  Prefactor     38.767        27.217        .16062E-03   -1.5583    
   8  norm          .22204E-09    1.6854        .66077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .61062E-09    28.615        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.7623        2.2285        .61214E-03   -1.5675    
  11  norm          4.0369        1.4421        .50161E-03   -1.5668    
  12  Prefactor      .0000        2.5320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.5592        44.168        .63782E-03   -1.5676    
  14  Prefactor     .34390        5.7180        .61622E-02   -1.5696    
  15  Prefactor     118.07        102.90        .92041E-04   -1.5491    
  16  norm          .28389        .29816        .10441E-02   -1.5697    
  17  norm           .0000        10.743        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .94322        .25941        .11584       -.94958    
  19  Prefactor     .91494        .63359E-01    .31457E-01   -.95621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33583e-07
Minuit parameter uncertainties:
  1  45.8243
  2  2.39403e-05
  3  2.45117e-05
  4  14.1074
  5  6.56856
  6  95.6446
  7  27.217
  8  3.64264e-05
  9  0.000261981
  10  2.2285
  11  1.44212
  12  1.23683e-05
  13  21.2639
  14  2.8046
  15  102.905
  16  0.29816
  17  1.48511e-05
  18  0.259757
  19  0.0633645
Done.

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

Extracting fit parameters...

4FGL J0137.0+4751
   Spectrum: LogParabola
277         norm:  4.037e+00  1.442e+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:  9.149e-01  6.336e-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:  9.432e-01  2.598e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.00
Ra Dec: 24.260 47.864
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 1.95e-07 +/- 6.97e-08
Energy Flux (Fixed Index): 7.80e-05 +/- 2.79e-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) = 9410.32394524
delta logL = 0.203443263606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9410.32237873
delta logL = 0.205009772963

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6683       1.0000          .0000       .10000E+07
     2 'alpha     '    2.4171       1.0000          .0000       5.0000    
     3 'Normalizat'    .91605       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91840       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=   9410.322     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      288 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6684        1.4990        .60192E-05    .15526E-02
   2  alpha         2.4171        .35661        .10043E-01   -.19473E-04
   3  Normalizat    .91606        .24459        .52024E-03    .13011E-03
   4  Prefactor     .91840        .64480E-01    .13875E-03    .47852E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.66836
  alpha      = 2.41708
  Normalizat = 0.916056
  Prefactor  = 0.918401
 **********
 **   18 **HESSE 
 **********

 FCN=   9410.322     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6684        1.4660        .24077E-06   -1.5670    
   2  alpha         2.4171        .34863        .40172E-03   -.33172E-01
   3  Normalizat    .91606        .24462        .20809E-04   -.95898    
   4  Prefactor     .91840        .64485E-01    .55498E-05   -.95501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43962e-10
Minuit parameter uncertainties:
  1  1.46602
  2  0.349776
  3  0.24492
  4  0.0644901
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/379001': 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) = 9410.32237873
delta logL = 0.205009773419

Extracting fit parameters...

4FGL J0137.0+4751
   Spectrum: LogParabola
277         norm:  3.668e+00  1.466e+00  0.000e+00  1.000e+06 ( 1.000e-11)
278        alpha:  2.417e+00  3.498e-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.184e-01  6.449e-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:  9.161e-01  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.51
Ra Dec: 24.260 47.864
Photon Index (Free Index): 2.42 +/- 0.35
Photon Flux (Free Index): 2.27e-07 +/- 8.90e-08
Energy Flux (Free Index): 7.09e-05 +/- 2.60e-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/379001/cmap_HighResolution_687139201_687744001_4FGL_J0137.0+4751_weekly_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.95e-07', energy_flux2='7.09e-05', photon_flux_error='6.97e-08', dlogl='2.05e-01', energy_flux='7.80e-05', photon_flux2='2.27e-07', job_status='DONE', time_completed='2022-10-18 00:49:34.666538', photon_index_error2='0.35', photon_index2='2.42', ts='21.00', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='2.60e-05', EG='0.94', time_epoch_completed='1666079374.67', return_code='0', job_id='379001', GAL2='0.92', EG2='0.92', return_code2='0', energy_flux_error='2.79e-05', photon_flux_error2='8.90e-08', ts2='21.51', photon_index='2.20' WHERE bin_id='741' AND source_name='4FGL J0137.0+4751' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 18 00:49:34 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 379001: <4FGL_J0137.0+4751_weekly_bin741> in cluster <slac> Done

Job <4FGL_J0137.0+4751_weekly_bin741> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Oct 18 00:35:52 2022
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 00:35:53 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 18 00:35:53 2022
Terminated at Tue Oct 18 00:49:35 2022
Results reported at Tue Oct 18 00:49:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.0+4751_weekly_bin741 24.2603 47.8637 687139201 687744001 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 :                                   729.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            823 sec.

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

