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


Performing analysis on: 4FGL_J0058.4+3315_weekly_bin762
RA = 14.6101, Dec = 33.2505
tmin = 699840001, tmax = 700444801
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='958609', job_status='RUN', time_executed='2023-03-14 00:41:10.107944', time_epoch_executed='1678779670.11' WHERE source_name='4FGL J0058.4+3315' and cadence='weekly' and bin_id='762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958609

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958609/ft1_4FGL_J0058.4+3315_weekly_bin762.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958609/ft2_4FGL_J0058.4+3315_weekly_bin762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958609/ft1_4FGL_J0058.4+3315_weekly_bin762.fits outfile=/scratch/kocevski/958609/ft1_filteredMKT_4FGL_J0058.4+3315_weekly_bin762.fits ra=14.6101 dec=33.2505 rad=12.0 tmin=699840001.0 tmax=700444801.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.03
user 7.71
sys 0.29

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

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

Number of photons that the gtmktime cut: 1747

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/958609/ft1_filtered_4FGL_J0058.4+3315_weekly_bin762.fits" evtable="EVENTS" scfile=/scratch/kocevski/958609/ft2_4FGL_J0058.4+3315_weekly_bin762.fits sctable="SC_DATA" outfile=/scratch/kocevski/958609/ltcube_699840001_700444801_4FGL_J0058.4+3315_weekly_bin762.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/958609/ft2_4FGL_J0058.4+3315_weekly_bin762.fits
.....................!
real 26.47
user 26.08
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958609/ft1_filtered_4FGL_J0058.4+3315_weekly_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/958609/ft2_4FGL_J0058.4+3315_weekly_bin762.fits sctable="SC_DATA" expcube=/scratch/kocevski/958609/ltcube_699840001_700444801_4FGL_J0058.4+3315_weekly_bin762.fits outfile=/scratch/kocevski/958609/expmap_699840001_700444801_4FGL_J0058.4+3315_weekly_bin762.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/958609/ltcube_699840001_700444801_4FGL_J0058.4+3315_weekly_bin762.fits
.....................!
real 190.62
user 185.46
sys 4.85

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/958609/ft1_filtered_4FGL_J0058.4+3315_weekly_bin762.fits scfile=/scratch/kocevski/958609/ft2_4FGL_J0058.4+3315_weekly_bin762.fits outfile=/scratch/kocevski/958609/cmap_699840001_700444801_4FGL_J0058.4+3315_weekly_bin762.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.58
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/958609/ft1_filtered_4FGL_J0058.4+3315_weekly_bin762.fits scfile=/scratch/kocevski/958609/ft2_4FGL_J0058.4+3315_weekly_bin762.fits outfile=/scratch/kocevski/958609/cmap_HighResolution_699840001_700444801_4FGL_J0058.4+3315_weekly_bin762.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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/958609/ft1_filtered_4FGL_J0058.4+3315_weekly_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/958609/ft2_4FGL_J0058.4+3315_weekly_bin762.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/958609/Model_4FGL_J0058.4+3315_weekly_bin762.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/958609/ft1_filtered_4FGL_J0058.4+3315_weekly_bin762.fits.....................!
real 158.31
user 156.86
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/958609/ft1_filtered_4FGL_J0058.4+3315_weekly_bin762.fits', '/scratch/kocevski/958609/ft2_4FGL_J0058.4+3315_weekly_bin762.fits', expMap='/scratch/kocevski/958609/expmap_699840001_700444801_4FGL_J0058.4+3315_weekly_bin762.fits', expCube='/scratch/kocevski/958609/ltcube_699840001_700444801_4FGL_J0058.4+3315_weekly_bin762.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/958609/Model_4FGL_J0058.4+3315_weekly_bin762.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/958609/ft1_filtered_4FGL_J0058.4+3315_weekly_bin762.fits
Spacecraft file(s): /scratch/kocevski/958609/ft2_4FGL_J0058.4+3315_weekly_bin762.fits
Exposure map: /scratch/kocevski/958609/expmap_699840001_700444801_4FGL_J0058.4+3315_weekly_bin762.fits
Exposure cube: /scratch/kocevski/958609/ltcube_699840001_700444801_4FGL_J0058.4+3315_weekly_bin762.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/958609/Model_4FGL_J0058.4+3315_weekly_bin762.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) = 18621.0638582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .70867E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.4994       1.0000          .0000       .10000E+07
     3 'Prefactor '    6.7303       1.0000          .0000       .10000E+07
     4 'Prefactor '    .22747E-03   1.0000          .0000       .10000E+07
     5 'norm      '    5.5256       1.0000          .0000       .10000E+07
     6 'Prefactor '    25.417       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.8102       1.0000          .0000       .10000E+07
     8 'Prefactor '    .10288E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    7.7555       1.0000          .0000       .10000E+07
    10 'Prefactor '    13.059       1.0000          .0000       .10000E+07
    11 'norm      '    2.3729       1.0000          .0000       .10000E+07
    12 'norm      '    3.3961       1.0000          .0000       .10000E+07
    13 'Prefactor '    9.3819       1.0000          .0000       .10000E+07
    14 'Prefactor '    .12212E-08   1.0000          .0000       .10000E+07
    15 'Prefactor '    13.518       1.0000          .0000       .10000E+07
    16 'norm      '    .82685       1.0000          .0000       .10000E+07
    17 'norm      '    2.9423       1.0000          .0000       .10000E+07
    18 'Prefactor '    .25973E-03   1.0000          .0000       .10000E+07
    19 'Normalizat'    .88991       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0034       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=   18620.20     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      903 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        5.6053       -.16434E-05** at limit **
   2  Prefactor     4.4914        4.1100       -.13943E-06    .10830E-02
   3  Prefactor     6.6400        1.3164        .23250E-07   -.90702E-01
   4  Prefactor     .33307E-09    3.9129       -.66516E-07** at limit **
   5  norm          5.5258        1.5159        .61326E-08   -.10988E-02
   6  Prefactor     25.400        1.1153       -.92304E-08    .20739E-01
   7  Prefactor     2.8113        2.9424       -.95558E-07    .57850E-03
   8  Prefactor      .0000        1.2832       -.23553E-06** at limit **
   9  Prefactor     7.7547        4.4090       -.32089E-06   -.60838E-02
  10  Prefactor     13.154        1.5139       -.63131E-07    .15810    
  11  norm          2.3727        .50920       -.41550E-08   -.60370E-03
  12  norm          3.3959        .88096       -.10004E-07    .15126E-02
  13  Prefactor     9.4359        1.7392       -.18712E-06    .20997E-01
  14  Prefactor      .0000        1.0061        .48907E-06** at limit **
  15  Prefactor     13.527        7.7806       -.52061E-07   -.34490E-01
  16  norm          .82681        .51088       -.22898E-07    .31778E-03
  17  norm          2.9421        .65213        .29543E-07   -.17802E-02
  18  Prefactor     .59952E-08    29.734        .42970E-05** at limit **
  19  Normalizat    .88992        .14073       -.63922E-05    .10102E-05
  20  Prefactor     1.0034        .88696E-01    .65583E-05   -.91563E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 4.49137
  Prefactor  = 6.64
  Prefactor  = 3.33067e-10
  norm       = 5.52582
  Prefactor  = 25.3996
  Prefactor  = 2.81128
  Prefactor  = 0
  Prefactor  = 7.75469
  Prefactor  = 13.1544
  norm       = 2.37274
  norm       = 3.39588
  Prefactor  = 9.4359
  Prefactor  = 0
  Prefactor  = 13.5269
  norm       = 0.826808
  norm       = 2.94211
  Prefactor  = 5.9952e-09
  Normalizat = 0.889919
  Prefactor  = 1.00343
 **********
 **   18 **HESSE 
 **********

 FCN=   18620.20     FROM HESSE     STATUS=OK           341 CALLS     1244 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        5.6257        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.4914        4.1184        .47441E-03   -1.5666    
   3  Prefactor     6.6400        11.519        .38654E-03   -1.5656    
   4  Prefactor     .33307E-09    3.9569        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.5258        1.5151        .42718E-03   -1.5661    
   6  Prefactor     25.400        9.5891        .19839E-03   -1.5607    
   7  Prefactor     2.8113        2.9800        .60654E-03   -1.5674    
   8  Prefactor      .0000        1.2904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.7547        4.4697        .35984E-03   -1.5652    
  10  Prefactor     13.154        8.8015        .27693E-03   -1.5635    
  11  norm          2.3727        .51186        .66484E-03   -1.5677    
  12  norm          3.3959        .88382        .54875E-03   -1.5671    
  13  Prefactor     9.4359        22.777        .32695E-03   -1.5647    
  14  Prefactor      .0000        1.0081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.527        7.9471        .27217E-03   -1.5634    
  16  norm          .82681        .51050        .50955E-03   -1.5690    
  17  norm          2.9421        .65329        .59186E-03   -1.5674    
  18  Prefactor     .59952E-08    28.479        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .88992        .12198        .71440E-01   -.96815    
  20  Prefactor     1.0034        .75462E-01    .44554E-01   -.92615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42264e-07
Minuit parameter uncertainties:
  1  1.17494e-05
  2  4.11842
  3  11.5191
  4  7.2727e-05
  5  1.51511
  6  9.58913
  7  2.98
  8  3.82867e-06
  9  4.46967
  10  8.80149
  11  0.511857
  12  0.883817
  13  22.7774
  14  2.07888e-06
  15  7.94709
  16  0.510502
  17  0.653288
  18  0.000826926
  19  0.12202
  20  0.07547
Done.

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

Extracting fit parameters...

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  0.000e+00  3.829e-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:  1.003e+00  7.547e-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:  8.899e-01  1.220e-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: 2.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/958609/likelihoodResults_699840001_700444801_4FGL_J0058.4+3315_weekly_bin762.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) = 18620.2026855
delta logL = -0.00323856793329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 18620.1994471
delta logL = -1.33080902742e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41428E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.6883       1.0000          .0000       10.000    
     3 'Normalizat'    .88993       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0034       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   18620.20     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      233 TOTAL
                     EDM=   .99E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.2485        .42118E-03** at limit **
   2  Index         2.3792        1.1752        .42435E-05     .0000    
   3  Normalizat    .88992        1.2257        .10674E-04    .11014E-03
   4  Prefactor     1.0034        1.2949       -.43151E-05    .80383E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.37918
  Normalizat = 0.889919
  Prefactor  = 1.00343
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   18620.20     FROM HESSE     STATUS=FAILED         9 CALLS      242 TOTAL
                     EDM=   .99E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.2485        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .63399        1.8470        .42435E-05   -.55173    
   3  Normalizat    .88992        1.2257        .10674E-04   -.96815    
   4  Prefactor     1.0034        1.2949       -.43151E-05   -.92615    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.85544e-12
Minuit parameter uncertainties:
  1  2.20136e-07
  2  1.19063
  3  1.26764
  4  1.33879
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958609': 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): 101
logL (Free Index) = 18620.1994469
delta logL = -7.27595761418e-12

Extracting fit parameters...

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  0.000e+00  2.201e-07  0.000e+00  1.000e+06 ( 1.000e-13)
190        Index:  2.379e+00  1.191e+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  1.339e+00  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:  8.899e-01  1.268e+00  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/958609/cmap_HighResolution_699840001_700444801_4FGL_J0058.4+3315_weekly_bin762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.62e-03', job_status='DONE', photon_flux_upper_limit='2.11e-08', time_completed='2023-03-14 00:56:39.519460', job_id='958609', GAL2='1.00', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1678780599.52', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='-7.28e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='762' AND source_name='4FGL J0058.4+3315' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 14 00:56:39 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 958609: <4FGL_J0058.4+3315_weekly_bin762> in cluster <slac> Done

Job <4FGL_J0058.4+3315_weekly_bin762> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Mar 14 00:40:27 2023
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 00:40:28 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 00:40:28 2023
Terminated at Tue Mar 14 00:56:40 2023
Results reported at Tue Mar 14 00:56:40 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0058.4+3315_weekly_bin762 14.6101 33.2505 699840001 700444801 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 :                                   929.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             367.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            973 sec.

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

