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


Performing analysis on: 4FGL_J2359.0+3922_weekly_bin763
RA = 359.755, Dec = 39.3669
tmin = 700444801, tmax = 701049601
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='450784', job_status='RUN', time_executed='2023-03-21 03:10:59.930871', time_epoch_executed='1679393459.93' WHERE source_name='4FGL J2359.0+3922' and cadence='weekly' and bin_id='763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/450784

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/450784/ft1_4FGL_J2359.0+3922_weekly_bin763.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/450784/ft2_4FGL_J2359.0+3922_weekly_bin763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/450784/ft1_4FGL_J2359.0+3922_weekly_bin763.fits outfile=/scratch/kocevski/450784/ft1_filteredMKT_4FGL_J2359.0+3922_weekly_bin763.fits ra=359.755 dec=39.3669 rad=12.0 tmin=700444801.0 tmax=701049601.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 9.76
user 9.35
sys 0.37

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/450784/ft2_4FGL_J2359.0+3922_weekly_bin763.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/450784/ft2_4FGL_J2359.0+3922_weekly_bin763.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/450784/ft1_filteredMKT_4FGL_J2359.0+3922_weekly_bin763.fits evtable="EVENTS" outfile="/scratch/kocevski/450784/ft1_filtered_4FGL_J2359.0+3922_weekly_bin763.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.55
user 0.38
sys 0.15

Number of photons that the gtmktime cut: 1252

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/450784/ft1_filtered_4FGL_J2359.0+3922_weekly_bin763.fits" evtable="EVENTS" scfile=/scratch/kocevski/450784/ft2_4FGL_J2359.0+3922_weekly_bin763.fits sctable="SC_DATA" outfile=/scratch/kocevski/450784/ltcube_700444801_701049601_4FGL_J2359.0+3922_weekly_bin763.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/450784/ft2_4FGL_J2359.0+3922_weekly_bin763.fits
.....................!
real 27.86
user 27.37
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/450784/ft1_filtered_4FGL_J2359.0+3922_weekly_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/450784/ft2_4FGL_J2359.0+3922_weekly_bin763.fits sctable="SC_DATA" expcube=/scratch/kocevski/450784/ltcube_700444801_701049601_4FGL_J2359.0+3922_weekly_bin763.fits outfile=/scratch/kocevski/450784/expmap_700444801_701049601_4FGL_J2359.0+3922_weekly_bin763.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/450784/ltcube_700444801_701049601_4FGL_J2359.0+3922_weekly_bin763.fits
.....................!
real 192.34
user 186.48
sys 5.45

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 FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 160 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 J2359.0+3922 @ 359.755 39.3669

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/450784/ft1_filtered_4FGL_J2359.0+3922_weekly_bin763.fits scfile=/scratch/kocevski/450784/ft2_4FGL_J2359.0+3922_weekly_bin763.fits outfile=/scratch/kocevski/450784/cmap_700444801_701049601_4FGL_J2359.0+3922_weekly_bin763.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=359.755 yref=39.3669 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.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/450784/ft1_filtered_4FGL_J2359.0+3922_weekly_bin763.fits scfile=/scratch/kocevski/450784/ft2_4FGL_J2359.0+3922_weekly_bin763.fits outfile=/scratch/kocevski/450784/cmap_HighResolution_700444801_701049601_4FGL_J2359.0+3922_weekly_bin763.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=359.755 yref=39.3669 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/450784/ft1_filtered_4FGL_J2359.0+3922_weekly_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/450784/ft2_4FGL_J2359.0+3922_weekly_bin763.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/450784/Model_4FGL_J2359.0+3922_weekly_bin763.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
Working on...
/scratch/kocevski/450784/ft1_filtered_4FGL_J2359.0+3922_weekly_bin763.fits.....................!
real 137.00
user 135.45
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/450784/ft1_filtered_4FGL_J2359.0+3922_weekly_bin763.fits', '/scratch/kocevski/450784/ft2_4FGL_J2359.0+3922_weekly_bin763.fits', expMap='/scratch/kocevski/450784/expmap_700444801_701049601_4FGL_J2359.0+3922_weekly_bin763.fits', expCube='/scratch/kocevski/450784/ltcube_700444801_701049601_4FGL_J2359.0+3922_weekly_bin763.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/450784/Model_4FGL_J2359.0+3922_weekly_bin763.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2359.0+3922'

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.197e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
519        Index:  2.348e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
520        Scale:  1.622e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/450784/ft1_filtered_4FGL_J2359.0+3922_weekly_bin763.fits
Spacecraft file(s): /scratch/kocevski/450784/ft2_4FGL_J2359.0+3922_weekly_bin763.fits
Exposure map: /scratch/kocevski/450784/expmap_700444801_701049601_4FGL_J2359.0+3922_weekly_bin763.fits
Exposure cube: /scratch/kocevski/450784/ltcube_700444801_701049601_4FGL_J2359.0+3922_weekly_bin763.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/450784/Model_4FGL_J2359.0+3922_weekly_bin763.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 13197.1636061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35206E-02   1.0000          .0000       .10000E+07
     2 'norm      '    .55783E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.5503       1.0000          .0000       .10000E+07
     4 'norm      '    .72206E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .67533E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.4979       1.0000          .0000       .10000E+07
     7 'Prefactor '    4.1881       1.0000          .0000       .10000E+07
     8 'Prefactor '    .74774E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    .28961E-04   1.0000          .0000       .10000E+07
    10 'norm      '    4.6974       1.0000          .0000       .10000E+07
    11 'Prefactor '    .18723E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    16.169       1.0000          .0000       .10000E+07
    13 'norm      '    .43891       1.0000          .0000       .10000E+07
    14 'Prefactor '    11.271       1.0000          .0000       .10000E+07
    15 'norm      '    3.2096       1.0000          .0000       .10000E+07
    16 'norm      '    14.249       1.0000          .0000       .10000E+07
    17 'Prefactor '    .59525E-03   1.0000          .0000       .10000E+07
    18 'norm      '    .62783E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    12.238       1.0000          .0000       .10000E+07
    20 'Prefactor '    20.504       1.0000          .0000       .10000E+07
    21 'Prefactor '    .14437E-01   1.0000          .0000       .10000E+07
    22 'Prefactor '    3.4151       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0976       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86859       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13196.92     FROM MIGRAD    STATUS=CONVERGED    157 CALLS     1586 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48295E-08    9.4411        .21383E-06** at limit **
   2  norm          .40246E-07    2.2221        .81975E-07** at limit **
   3  Prefactor     2.5646        2.7473       -.11009E-07   -.60578E-03
   4  norm          .99920E-09    6.7044       -.22561E-06** at limit **
   5  Prefactor     .49960E-09    4.1678       -.13288E-08** at limit **
   6  Prefactor     1.5016        1.8797       -.13394E-07    .43862E-03
   7  Prefactor     4.1619        1.6949       -.66956E-07   -.50643E-01
   8  Prefactor     .11102E-09    7.7456        .14460E-06** at limit **
   9  Prefactor     .16320E-07    21.079       -.63784E-07** at limit **
  10  norm          4.7001        1.9581       -.69860E-08   -.63020E-03
  11  Prefactor      .0000        .90873       -.27412E-07** at limit **
  12  Prefactor     16.694        1.8221       -.36303E-07   -.54603E-01
  13  norm          .43860        .77392        .13192E-07    .59753E-03
  14  Prefactor     11.271        7.7116        .13236E-07   -.24932E-02
  15  norm          3.2093        2.7862        .12468E-07    .10438E-03
  16  norm          14.278        8.1442        .34923E-07    .70623E-03
  17  Prefactor     .42633E-07    1.8915        .48228E-07** at limit **
  18  norm           .0000        .34514        .16414E-07** at limit **
  19  Prefactor     13.351        38.541        .14517E-05   -.14644E-01
  20  Prefactor     21.044        6.0032       -.16357E-06   -.98509E-01
  21  Prefactor     .20178E-06    43.181        .24789E-06** at limit **
  22  Prefactor     3.3999        5.3990       -.10211E-06   -.14224E-02
  23  Normalizat    1.0970        .16737        .10602E-05   -.27779E-05
  24  Prefactor     .86834        .77494E-01   -.75995E-06   -.37710E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.82947e-09
  norm       = 4.02456e-08
  Prefactor  = 2.56461
  norm       = 9.99201e-10
  Prefactor  = 4.996e-10
  Prefactor  = 1.50157
  Prefactor  = 4.16194
  Prefactor  = 1.11022e-10
  Prefactor  = 1.63203e-08
  norm       = 4.70007
  Prefactor  = 0
  Prefactor  = 16.6938
  norm       = 0.4386
  Prefactor  = 11.2711
  norm       = 3.20929
  norm       = 14.2783
  Prefactor  = 4.26326e-08
  norm       = 0
  Prefactor  = 13.3513
  Prefactor  = 21.0445
  Prefactor  = 2.01783e-07
  Prefactor  = 3.39993
  Normalizat = 1.09699
  Prefactor  = 0.868338
 **********
 **   18 **HESSE 
 **********

 FCN=   13196.92     FROM HESSE     STATUS=OK           451 CALLS     2037 TOTAL
                     EDM=   .65E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48295E-08    9.5446        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .40246E-07    4.0709        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5646        2.7544        .63912E-03   -1.5676    
   4  norm          .99920E-09    .79260        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .49960E-09    4.1526        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.5016        1.9920        .87484E-03   -1.5683    
   7  Prefactor     4.1619        12.718        .49222E-03   -1.5667    
   8  Prefactor     .11102E-09    7.7825        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .16320E-07    21.164        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.7001        1.9598        .46406E-03   -1.5665    
  11  Prefactor      .0000        .90953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.694        14.668        .24881E-03   -1.5626    
  13  norm          .43860        .79601        .85110E-03   -1.5695    
  14  Prefactor     11.271        7.7440        .29816E-03   -1.5641    
  15  norm          3.2093        2.7873        .56526E-03   -1.5672    
  16  norm          14.278        8.1430        .26508E-03   -1.5632    
  17  Prefactor     .42633E-07    4.0380        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        .34516        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.351        39.963        .28610E-03   -1.5635    
  20  Prefactor     21.044        24.507        .22091E-03   -1.5616    
  21  Prefactor     .20178E-06    43.714        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.3999        5.4340        .54715E-03   -1.5671    
  23  Normalizat    1.0970        .14790        .71822E-01   -.89849    
  24  Prefactor     .86834        .67261E-01    .44603E-01   -.97256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.4608e-07
Minuit parameter uncertainties:
  1  0.000428983
  2  0.000809351
  3  2.75443
  4  5.60333e-05
  5  9.33103e-05
  6  1.99198
  7  12.7186
  8  6.20458e-05
  9  0.00117581
  10  1.95984
  11  5.04344e-07
  12  14.6682
  13  0.796007
  14  7.74396
  15  2.78725
  16  8.14299
  17  0.000829576
  18  6.04248e-07
  19  39.9641
  20  24.5071
  21  0.00593996
  22  5.43406
  23  0.147954
  24  0.0672671
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  3.400e+00  5.434e+00  0.000e+00  1.000e+06 ( 1.000e-13)
519        Index:  2.348e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
520        Scale:  1.622e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  8.683e-01  6.727e-02  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  1.097e+00  1.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.47
Ra Dec: 359.755 39.367
Photon Flux Upper Limit: 7.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/450784/likelihoodResults_700444801_701049601_4FGL_J2359.0+3922_weekly_bin763.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) = 13196.3735424
delta logL = 0.545013052937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13196.3709968
delta logL = 0.547558610275

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13196.37     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      354 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18967E-01    .20941        .31335E-03** at limit **
   2  Index         4.9209        1.8680        .10004        .44448E-04
   3  Normalizat    1.0566        .29713E-01    .73006E-01   -.19386E-03
   4  Prefactor     .88157        .13873E-01    .44770E-01   -.23520E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0189672
  Index      = 4.92091
  Normalizat = 1.05659
  Prefactor  = 0.881567
 **********
 **   18 **HESSE 
 **********

 FCN=   13196.37     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      387 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18967E-01    .74169        .14437E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.9209        4.1227        .60406E-02   -.15818E-01
   3  Normalizat    1.0566        .11496        .32306E-03   -.91158    
   4  Prefactor     .88157        .53112E-01    .16279E-03   -.96788    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.17165e-10
Minuit parameter uncertainties:
  1  0.237215
  2  4.84716
  3  0.11499
  4  0.0531154
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/450784': 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) = 13196.3709962
delta logL = 0.547559219127

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.897e-02  2.372e-01  0.000e+00  1.000e+06 ( 1.000e-13)
519        Index:  4.921e+00  4.847e+00  0.000e+00  1.000e+01 (-1.000e+00)
520        Scale:  1.622e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  8.816e-01  5.312e-02  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  1.057e+00  1.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.64
Ra Dec: 359.755 39.367
Photon Index (Free Index): 4.92 +/- 4.85
Photon Flux (Free Index): 4.38e-08 +/- 3.67e-08
Energy Flux (Free Index): 5.87e-06 +/- 6.04e-06

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/450784/cmap_HighResolution_700444801_701049601_4FGL_J2359.0+3922_weekly_bin763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.05e-03', comment='SUCCESS', energy_flux2='5.87e-06', dlogl='5.48e-01', photon_flux2='4.38e-08', job_status='DONE', time_completed='2023-03-21 03:26:58.311554', photon_index_error2='4.85', photon_index2='4.92', ts='0.47', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='7.86e-08', energy_flux_error2='6.04e-06', EG='1.10', time_epoch_completed='1679394418.31', return_code='0', job_id='450784', GAL2='0.88', EG2='1.06', return_code2='102', photon_flux_error2='3.67e-08', ts2='1.64', photon_index='2.35' WHERE bin_id='763' AND source_name='4FGL J2359.0+3922' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 21 03:26:58 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 450784: <4FGL_J2359.0+3922_weekly_bin763> in cluster <slac> Done

Job <4FGL_J2359.0+3922_weekly_bin763> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Mar 21 03:10:24 2023
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 21 03:10:26 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 21 03:10:26 2023
Terminated at Tue Mar 21 03:26:59 2023
Results reported at Tue Mar 21 03:26:59 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_weekly_bin763 359.755 39.3669 700444801 701049601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2359.0+3922 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   958.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            995 sec.

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

