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 72 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 17407
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0137.9+5814_weekly_bin718
RA = 24.4957, Dec = 58.2494
tmin = 673228801, tmax = 673833601
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='258191', job_status='RUN', time_executed='2022-05-10 00:40:00.974240', time_epoch_executed='1652168400.97' WHERE source_name='4FGL J0137.9+5814' and cadence='weekly' and bin_id='718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258191

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258191/ft1_4FGL_J0137.9+5814_weekly_bin718.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258191/ft2_4FGL_J0137.9+5814_weekly_bin718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258191/ft1_4FGL_J0137.9+5814_weekly_bin718.fits outfile=/scratch/kocevski/258191/ft1_filteredMKT_4FGL_J0137.9+5814_weekly_bin718.fits ra=24.4957 dec=58.2494 rad=12.0 tmin=673228801.0 tmax=673833601.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 5.44
user 5.11
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/258191/ft2_4FGL_J0137.9+5814_weekly_bin718.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/258191/ft2_4FGL_J0137.9+5814_weekly_bin718.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/258191/ft1_filteredMKT_4FGL_J0137.9+5814_weekly_bin718.fits evtable="EVENTS" outfile="/scratch/kocevski/258191/ft1_filtered_4FGL_J0137.9+5814_weekly_bin718.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.57
user 0.37
sys 0.17

Number of photons that the gtmktime cut: 3121

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258191/ft1_filtered_4FGL_J0137.9+5814_weekly_bin718.fits" evtable="EVENTS" scfile=/scratch/kocevski/258191/ft2_4FGL_J0137.9+5814_weekly_bin718.fits sctable="SC_DATA" outfile=/scratch/kocevski/258191/ltcube_673228801_673833601_4FGL_J0137.9+5814_weekly_bin718.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/258191/ft2_4FGL_J0137.9+5814_weekly_bin718.fits
.....................!
real 35.04
user 34.52
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258191/ft1_filtered_4FGL_J0137.9+5814_weekly_bin718.fits evtable="EVENTS" scfile=/scratch/kocevski/258191/ft2_4FGL_J0137.9+5814_weekly_bin718.fits sctable="SC_DATA" expcube=/scratch/kocevski/258191/ltcube_673228801_673833601_4FGL_J0137.9+5814_weekly_bin718.fits outfile=/scratch/kocevski/258191/expmap_673228801_673833601_4FGL_J0137.9+5814_weekly_bin718.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/258191/ltcube_673228801_673833601_4FGL_J0137.9+5814_weekly_bin718.fits
.....................!
real 192.01
user 185.87
sys 5.53

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_archive_v18/Templates/W3.fits is the correct path to the extended template.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 188 point sources and 4 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.9+5814 @ 24.4957 58.2494

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/258191/ft1_filtered_4FGL_J0137.9+5814_weekly_bin718.fits scfile=/scratch/kocevski/258191/ft2_4FGL_J0137.9+5814_weekly_bin718.fits outfile=/scratch/kocevski/258191/cmap_673228801_673833601_4FGL_J0137.9+5814_weekly_bin718.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.4957 yref=58.2494 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.61
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258191/ft1_filtered_4FGL_J0137.9+5814_weekly_bin718.fits scfile=/scratch/kocevski/258191/ft2_4FGL_J0137.9+5814_weekly_bin718.fits outfile=/scratch/kocevski/258191/cmap_HighResolution_673228801_673833601_4FGL_J0137.9+5814_weekly_bin718.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.4957 yref=58.2494 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.59
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/258191/ft1_filtered_4FGL_J0137.9+5814_weekly_bin718.fits evtable="EVENTS" scfile=/scratch/kocevski/258191/ft2_4FGL_J0137.9+5814_weekly_bin718.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/258191/Model_4FGL_J0137.9+5814_weekly_bin718.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/258191/ft1_filtered_4FGL_J0137.9+5814_weekly_bin718.fits.....................!
real 431.69
user 427.72
sys 1.41

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/258191/ft1_filtered_4FGL_J0137.9+5814_weekly_bin718.fits', '/scratch/kocevski/258191/ft2_4FGL_J0137.9+5814_weekly_bin718.fits', expMap='/scratch/kocevski/258191/expmap_673228801_673833601_4FGL_J0137.9+5814_weekly_bin718.fits', expCube='/scratch/kocevski/258191/ltcube_673228801_673833601_4FGL_J0137.9+5814_weekly_bin718.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/258191/Model_4FGL_J0137.9+5814_weekly_bin718.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0137.9+5814'

4FGL J0137.9+5814
   Spectrum: PowerLaw
263    Prefactor:  1.430e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.951e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  3.260e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/258191/ft1_filtered_4FGL_J0137.9+5814_weekly_bin718.fits
Spacecraft file(s): /scratch/kocevski/258191/ft2_4FGL_J0137.9+5814_weekly_bin718.fits
Exposure map: /scratch/kocevski/258191/expmap_673228801_673833601_4FGL_J0137.9+5814_weekly_bin718.fits
Exposure cube: /scratch/kocevski/258191/ltcube_673228801_673833601_4FGL_J0137.9+5814_weekly_bin718.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/258191/Model_4FGL_J0137.9+5814_weekly_bin718.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) = 29326.5995866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.784       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0192       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    49.770       1.0000         .10000E-03   10000.    
     5 'norm      '    86.785       1.0000         .10000E-03   10000.    
     6 'norm      '    56.034       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.981       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.4632       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.141       1.0000         .10000E-03   10000.    
    13 'Prefactor '    834.75       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6466       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.9470       1.0000         .10000E-03   10000.    
    17 'norm      '    .61374E-02   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97743       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   29326.59     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     1951 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.767        35.376       -.29807E-05   -.84215E-04
   2  norm          2.0197        2.3256        .36198E-06   -.12291E-02
   3  norm          .10000E-03    16.130        .83796E-07** at limit **
   4  norm          49.767        18.669       -.21429E-05   -.16839E-03
   5  norm          86.768        98.310       -.13623E-04   -.22247E-04
   6  norm          56.034        27.108        .63703E-06   -.14826E-03
   7  norm          .10000E-03    1.6280        .19299E-08** at limit **
   8  Prefactor     10.981        10.709        .21220E-05   -.24835E-04
   9  Prefactor     .10000E-03    38.745        .19572E-07** at limit **
  10  norm          .10000E-03    4.0332       -.23564E-07** at limit **
  11  norm          3.4624        3.6389        .57449E-07   -.11490E-03
  12  Prefactor     14.117        27.855        .56003E-05   -.22924E-04
  13  Prefactor     834.73        309.98       -.60658E-05   -.48874E-04
  14  Prefactor     1.6465        .69662       -.23056E-07   -.81768E-03
  15  Prefactor     .10000E-03    93.616        .37423E-06** at limit **
  16  norm          2.9469        .51725       -.25557E-08   -.10028E-02
  17  norm          .10003E-03    9.4035       -.45657E-07** at limit **
  18  Normalizat    .10000E-01    .76287E-01    .28228E-05** at limit **
  19  Prefactor     .97740        .25271E-01    .18301E-07   -.17757E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.7667
  norm       = 2.01974
  norm       = 0.0001
  norm       = 49.7674
  norm       = 86.7679
  norm       = 56.0343
  norm       = 0.0001
  Prefactor  = 10.9808
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.46239
  Prefactor  = 14.1171
  Prefactor  = 834.727
  Prefactor  = 1.64652
  Prefactor  = 0.0001
  norm       = 2.94694
  norm       = 0.000100026
  Normalizat = 0.01
  Prefactor  = 0.977404
 **********
 **   18 **HESSE 
 **********

 FCN=   29326.59     FROM HESSE     STATUS=OK           276 CALLS     2227 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.767        35.517        .66080E-04   -1.4495    
   2  norm          2.0197        7.4663        .14562E-02   -1.5424    
   3  norm          .10000E-03    16.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          49.767        18.671        .56844E-04   -1.4296    
   5  norm          86.768        97.944        .21563E-03   -1.3842    
   6  norm          56.034        27.043        .53589E-04   -1.4209    
   7  norm          .10000E-03    1.6286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.981        10.688        .12090E-03   -1.5045    
   9  Prefactor     .10000E-03    38.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.0553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4624        3.6251        .21731E-03   -1.5336    
  12  Prefactor     14.117        27.760        .10651E-03   -1.4956    
  13  Prefactor     834.73        308.57        .72307E-04   -.98461    
  14  Prefactor     1.6465        .69185        .89009E-04   -1.5451    
  15  Prefactor     .10000E-03    93.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9469        .51691        .49316E-04   -1.5365    
  17  norm          .10003E-03    9.2310        .18039       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .10000E-01    .13986        .23694E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .97740        .22345E-01    .11283E-03   -.93487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29188e-09
Minuit parameter uncertainties:
  1  35.5375
  2  7.46974
  3  4.21814e-05
  4  18.6728
  5  98.1269
  6  27.0491
  7  8.17178e-07
  8  10.69
  9  6.84453e-06
  10  4.94385e-06
  11  3.62529
  12  27.7855
  13  309.214
  14  0.691851
  15  1.58745e-05
  16  0.516908
  17  0.000975821
  18  3.78315e-06
  19  0.0223452
Done.

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

Extracting fit parameters...

4FGL J0137.9+5814
   Spectrum: PowerLaw
263    Prefactor:  1.412e+01  2.779e+01  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.951e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  3.260e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
646    Prefactor:  9.774e-01  2.235e-02  0.000e+00  1.000e+01 ( 1.000e+00)
647        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
648        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.000e-02  3.783e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.33
Ra Dec: 24.496 58.249
Photon Flux Upper Limit: 7.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.28e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/258191/likelihoodResults_673228801_673833601_4FGL_J0137.9+5814_weekly_bin718.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): 102
logL (Free Index) = 29301.1674086
delta logL = 25.4247685467

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 29301.1339315
delta logL = 25.4582456468

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17220E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.3544       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95050       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   29301.13     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      334 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17199E-01    .36270E-01    .91088E-03    .21044E-01
   2  Index         5.3548        .60896        .41284E-01    .14180E-02
   3  Normalizat    .10000E-01    .14230E-01    .32094    ** at limit **
   4  Prefactor     .95051        .12398E-01    .25636E-01   -.98402E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0171989
  Index      = 5.3548
  Normalizat = 0.01
  Prefactor  = 0.950507
 **********
 **   18 **HESSE 
 **********

 FCN=   29301.13     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      367 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17199E-01    .47785E-01    .39804E-05   -1.5682    
   2  Index         5.3548        .84863        .17555E-02    .71020E-01
   3  Normalizat    .10000E-01    .43198E-01    .20229E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .95051        .19957E-01    .11331E-03   -.94398    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.40168e-09
Minuit parameter uncertainties:
  1  0.0477853
  2  0.852783
  3  2.51567e-08
  4  0.019957
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258191': 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): 102
logL (Free Index) = 29301.1339301
delta logL = 25.4582470661

Extracting fit parameters...

4FGL J0137.9+5814
   Spectrum: PowerLaw
263    Prefactor:  1.720e-02  4.779e-02  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  5.355e+00  8.528e-01  0.000e+00  1.000e+01 (-1.000e+00)
265        Scale:  3.260e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
646    Prefactor:  9.505e-01  1.996e-02  0.000e+00  1.000e+01 ( 1.000e+00)
647        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
648        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.000e-02  2.516e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 51.25
Ra Dec: 24.496 58.249
Photon Index (Free Index): 5.35 +/- 0.85
Photon Flux (Free Index): 5.04e-06 +/- 9.00e-07
Energy Flux (Free Index): 6.53e-04 +/- 1.22e-04

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/258191/cmap_HighResolution_673228801_673833601_4FGL_J0137.9+5814_weekly_bin718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.28e-02', comment='SUCCESS', energy_flux2='6.53e-04', dlogl='2.55e+01', photon_flux2='5.04e-06', job_status='DONE', time_completed='2022-05-10 01:17:16.001557', photon_index_error2='0.85', photon_index2='5.35', ts='0.33', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='7.07e-07', energy_flux_error2='1.22e-04', EG='0.01', time_epoch_completed='1652170636.0', return_code='0', job_id='258191', GAL2='0.95', EG2='0.01', return_code2='102', photon_flux_error2='9.00e-07', ts2='51.25', photon_index='1.95' WHERE bin_id='718' AND source_name='4FGL J0137.9+5814' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 10 01:17:16 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0157>
Subject: Job 258191: <4FGL_J0137.9+5814_weekly_bin718> in cluster <slac> Done

Job <4FGL_J0137.9+5814_weekly_bin718> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue May 10 00:05:16 2022
Job was executed on host(s) <bullet0157>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 10 00:38:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 10 00:38:31 2022
Terminated at Tue May 10 01:17:16 2022
Results reported at Tue May 10 01:17:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.9+5814_weekly_bin718 24.4957 58.2494 673228801 673833601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0137.9+5814 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2228.81 sec.
    Max Memory :                                 790 MB
    Average Memory :                             389.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2938 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   2325 sec.
    Turnaround time :                            4320 sec.

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

