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


Performing analysis on: 4FGL_J0058.4+3315_weekly_bin738
RA = 14.6101, Dec = 33.2505
tmin = 685324801, tmax = 685929601
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='250684', job_status='RUN', time_executed='2022-09-27 01:12:45.033762', time_epoch_executed='1664266365.03' WHERE source_name='4FGL J0058.4+3315' and cadence='weekly' and bin_id='738'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250684

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250684/ft1_4FGL_J0058.4+3315_weekly_bin738.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250684/ft2_4FGL_J0058.4+3315_weekly_bin738.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250684/ft1_4FGL_J0058.4+3315_weekly_bin738.fits outfile=/scratch/kocevski/250684/ft1_filteredMKT_4FGL_J0058.4+3315_weekly_bin738.fits ra=14.6101 dec=33.2505 rad=12.0 tmin=685324801.0 tmax=685929601.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 8.01
user 7.64
sys 0.32

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/250684/ft2_4FGL_J0058.4+3315_weekly_bin738.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250684/ft2_4FGL_J0058.4+3315_weekly_bin738.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/250684/ft1_filteredMKT_4FGL_J0058.4+3315_weekly_bin738.fits evtable="EVENTS" outfile="/scratch/kocevski/250684/ft1_filtered_4FGL_J0058.4+3315_weekly_bin738.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.33
sys 0.15

Number of photons that the gtmktime cut: 1487

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250684/ft1_filtered_4FGL_J0058.4+3315_weekly_bin738.fits" evtable="EVENTS" scfile=/scratch/kocevski/250684/ft2_4FGL_J0058.4+3315_weekly_bin738.fits sctable="SC_DATA" outfile=/scratch/kocevski/250684/ltcube_685324801_685929601_4FGL_J0058.4+3315_weekly_bin738.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/250684/ft2_4FGL_J0058.4+3315_weekly_bin738.fits
.....................!
real 25.57
user 24.95
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250684/ft1_filtered_4FGL_J0058.4+3315_weekly_bin738.fits evtable="EVENTS" scfile=/scratch/kocevski/250684/ft2_4FGL_J0058.4+3315_weekly_bin738.fits sctable="SC_DATA" expcube=/scratch/kocevski/250684/ltcube_685324801_685929601_4FGL_J0058.4+3315_weekly_bin738.fits outfile=/scratch/kocevski/250684/expmap_685324801_685929601_4FGL_J0058.4+3315_weekly_bin738.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/250684/ltcube_685324801_685929601_4FGL_J0058.4+3315_weekly_bin738.fits
.....................!
real 156.85
user 152.77
sys 3.63

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
Added 170 point sources and 0 extended sources

Setting source of interest to:
4FGL J0058.4+3315 @ 14.6101 33.2505

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/250684/ft1_filtered_4FGL_J0058.4+3315_weekly_bin738.fits scfile=/scratch/kocevski/250684/ft2_4FGL_J0058.4+3315_weekly_bin738.fits outfile=/scratch/kocevski/250684/cmap_685324801_685929601_4FGL_J0058.4+3315_weekly_bin738.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=14.6101 yref=33.2505 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.52
user 0.34
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250684/ft1_filtered_4FGL_J0058.4+3315_weekly_bin738.fits scfile=/scratch/kocevski/250684/ft2_4FGL_J0058.4+3315_weekly_bin738.fits outfile=/scratch/kocevski/250684/cmap_HighResolution_685324801_685929601_4FGL_J0058.4+3315_weekly_bin738.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=14.6101 yref=33.2505 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.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/250684/ft1_filtered_4FGL_J0058.4+3315_weekly_bin738.fits evtable="EVENTS" scfile=/scratch/kocevski/250684/ft2_4FGL_J0058.4+3315_weekly_bin738.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/250684/Model_4FGL_J0058.4+3315_weekly_bin738.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
Working on...
/scratch/kocevski/250684/ft1_filtered_4FGL_J0058.4+3315_weekly_bin738.fits.....................!
real 124.23
user 122.65
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/250684/ft1_filtered_4FGL_J0058.4+3315_weekly_bin738.fits', '/scratch/kocevski/250684/ft2_4FGL_J0058.4+3315_weekly_bin738.fits', expMap='/scratch/kocevski/250684/expmap_685324801_685929601_4FGL_J0058.4+3315_weekly_bin738.fits', expCube='/scratch/kocevski/250684/ltcube_685324801_685929601_4FGL_J0058.4+3315_weekly_bin738.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/250684/Model_4FGL_J0058.4+3315_weekly_bin738.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0058.4+3315'

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  1.596e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
190        Index:  2.343e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
191        Scale:  1.298e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/250684/ft1_filtered_4FGL_J0058.4+3315_weekly_bin738.fits
Spacecraft file(s): /scratch/kocevski/250684/ft2_4FGL_J0058.4+3315_weekly_bin738.fits
Exposure map: /scratch/kocevski/250684/expmap_685324801_685929601_4FGL_J0058.4+3315_weekly_bin738.fits
Exposure cube: /scratch/kocevski/250684/ltcube_685324801_685929601_4FGL_J0058.4+3315_weekly_bin738.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/250684/Model_4FGL_J0058.4+3315_weekly_bin738.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) = 16573.7029933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15876E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    .70155E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    12.212       1.0000          .0000       .10000E+07
     4 'Prefactor '    .88691E-03   1.0000          .0000       .10000E+07
     5 'norm      '    3.4730       1.0000          .0000       .10000E+07
     6 'Prefactor '    5.2137       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13912E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .24207E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    7.6577       1.0000          .0000       .10000E+07
    10 'Prefactor '    .47979       1.0000          .0000       .10000E+07
    11 'norm      '    1.0009       1.0000          .0000       .10000E+07
    12 'norm      '    1.9710       1.0000          .0000       .10000E+07
    13 'Prefactor '    46.519       1.0000          .0000       .10000E+07
    14 'Prefactor '    .23674E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    8.9230       1.0000          .0000       .10000E+07
    16 'norm      '    .26647       1.0000          .0000       .10000E+07
    17 'norm      '    .99228       1.0000          .0000       .10000E+07
    18 'Prefactor '    .61694E-02   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0596       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98824       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16573.70     FROM MIGRAD    STATUS=CONVERGED    104 CALLS     1512 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11435E-06    10.516        .14335E-05** at limit **
   2  Prefactor      .0000        1.6778        .21011E-07** at limit **
   3  Prefactor     12.185        2.0797       -.18092E-07   -.97813E-01
   4  Prefactor     .23870E-08    10.786        .14989E-05** at limit **
   5  norm          3.4721        1.7547       -.34428E-07    .15713E-02
   6  Prefactor     5.2374        5.1090        .89496E-07   -.56460E-03
   7  Prefactor     .17386E-06    21.858        .36071E-06** at limit **
   8  Prefactor      .0000        5.1716       -.98015E-07** at limit **
   9  Prefactor     7.6819        5.5206       -.80515E-07   -.30745E-02
  10  Prefactor     .43324        1.3843        .34433E-07    .29213E-01
  11  norm          1.0008        .43449       -.30137E-07    .31936E-02
  12  norm          1.9719        .87962        .44900E-07   -.98357E-03
  13  Prefactor     46.722        12.790       -.25098E-08   -.96690E-01
  14  Prefactor      .0000        2.7875       -.17024E-06** at limit **
  15  Prefactor     8.9119        7.8611        .84085E-07    .90267E-02
  16  norm          .26680        .28383       -.91828E-07    .15339E-01
  17  norm          .99291        .45633        .11255E-07    .15811E-02
  18  Prefactor     .61062E-09    9.1860       -.19289E-06** at limit **
  19  Normalizat    1.0593        .14973       -.19645E-05   -.11087E-03
  20  Prefactor     .98842        .92633E-01    .36565E-06   -.61678E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.14353e-07
  Prefactor  = 0
  Prefactor  = 12.1847
  Prefactor  = 2.38698e-09
  norm       = 3.47208
  Prefactor  = 5.23738
  Prefactor  = 1.73861e-07
  Prefactor  = 0
  Prefactor  = 7.68188
  Prefactor  = 0.433236
  norm       = 1.00077
  norm       = 1.97189
  Prefactor  = 46.722
  Prefactor  = 0
  Prefactor  = 8.91189
  norm       = 0.266803
  norm       = 0.99291
  Prefactor  = 6.10623e-10
  Normalizat = 1.05934
  Prefactor  = 0.988415
 **********
 **   18 **HESSE 
 **********

 FCN=   16573.70     FROM HESSE     STATUS=OK           349 CALLS     1861 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11435E-06    21.645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.6775        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.185        14.375        .28640E-03   -1.5638    
   4  Prefactor     .23870E-08    20.914        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.4721        1.7530        .54237E-03   -1.5671    
   6  Prefactor     5.2374        5.1079        .44000E-03   -1.5662    
   7  Prefactor     .17386E-06    1.3588        .57142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        5.1850        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.6819        5.5964        .36215E-03   -1.5653    
  10  Prefactor     .43324        4.8520        .10353E-01   -1.5695    
  11  norm          1.0008        .43428        .43797E-04   -1.5688    
  12  norm          1.9719        .88359        .73828E-03   -1.5680    
  13  Prefactor     46.722        26.861        .14663E-03   -1.5571    
  14  Prefactor      .0000        2.7820        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.9119        7.9201        .33530E-03   -1.5648    
  16  norm          .26680        .41510        .17123E-02   -1.5698    
  17  norm          .99291        .45790        .43492E-03   -1.5688    
  18  Prefactor     .61062E-09    9.1851        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0593        .12878        .68478E-01   -.91068    
  20  Prefactor     .98842        .78449E-01    .46120E-01   -.93117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46886e-07
Minuit parameter uncertainties:
  1  0.00314677
  2  8.95267e-06
  3  14.3748
  4  0.000447013
  5  1.75296
  6  5.10785
  7  0.000972056
  8  1.91992e-06
  9  5.59641
  10  2.8997
  11  0.434281
  12  0.883588
  13  26.8607
  14  1.22956e-05
  15  7.92008
  16  0.415104
  17  0.457899
  18  0.00015314
  19  0.128817
  20  0.0784577
Done.

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

Extracting fit parameters...

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  0.000e+00  1.920e-06  0.000e+00  1.000e+06 ( 1.000e-13)
190        Index:  2.343e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
191        Scale:  1.298e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  9.884e-01  7.846e-02  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.059e+00  1.288e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 14.610 33.251
Photon Flux Upper Limit: 4.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250684/likelihoodResults_685324801_685929601_4FGL_J0058.4+3315_weekly_bin738.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) = 16573.6953156
delta logL = -0.000105466253444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16573.4103351
delta logL = 0.284875055582

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40688E-01   1.0000          .0000       .10000E+07
     2 'Index     '    4.9118       1.0000          .0000       10.000    
     3 'Normalizat'    1.0212       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0027       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   16573.41     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      402 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40852E-01    .36097        .75296E-03** at limit **
   2  Index         4.9101        1.6381        .14670        .29478E-03
   3  Normalizat    1.0212        .16526E-01    .69604E-01    .44479E-05
   4  Prefactor     1.0027        .10284E-01    .44756E-01   -.19347E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0408518
  Index      = 4.91014
  Normalizat = 1.02123
  Prefactor  = 1.00265
 **********
 **   18 **HESSE 
 **********

 FCN=   16573.41     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      437 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .40852E-01    3.3562        .30951E-04   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.9101        7.4543        .85991E-02   -.17973E-01
   3  Normalizat    1.0212        .87643E-01    .30794E-03   -.92323    
   4  Prefactor     1.0027        .53674E-01    .19227E-03   -.92641    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.62068e-08
Minuit parameter uncertainties:
  1  0.740558
  2  7.64288
  3  0.0876549
  4  0.0536764
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250684': 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) = 16573.4103347
delta logL = 0.284875376015

Extracting fit parameters...

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  4.085e-02  7.406e-01  0.000e+00  1.000e+06 ( 1.000e-13)
190        Index:  4.910e+00  7.643e+00  0.000e+00  1.000e+01 (-1.000e+00)
191        Scale:  1.298e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.003e+00  5.368e-02  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.021e+00  8.765e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 14.610 33.251

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/250684/cmap_HighResolution_685324801_685929601_4FGL_J0058.4+3315_weekly_bin738.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.77e-03', job_status='DONE', photon_flux_upper_limit='4.90e-08', time_completed='2022-09-27 01:27:00.787149', job_id='250684', GAL2='1.00', fit_tolerance='1e-08', EG2='1.02', EG='1.06', time_epoch_completed='1664267220.79', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.85e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='738' AND source_name='4FGL J0058.4+3315' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 27 01:27:00 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 250684: <4FGL_J0058.4+3315_weekly_bin738> in cluster <slac> Done

Job <4FGL_J0058.4+3315_weekly_bin738> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 27 01:10:33 2022
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 27 01:11:50 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 27 01:11:50 2022
Terminated at Tue Sep 27 01:27:02 2022
Results reported at Tue Sep 27 01:27:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0058.4+3315_weekly_bin738 14.6101 33.2505 685324801 685929601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0058.4+3315 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   851.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             333.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            989 sec.

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

