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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1728
RA = 359.755, Dec = 39.3669
tmin = 687225601, tmax = 687484801
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='305625', job_status='RUN', time_executed='2022-10-15 00:40:46.435236', time_epoch_executed='1665819646.44' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/305625

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/305625/ft1_4FGL_J2359.0+3922_daily_bin1728.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/305625/ft2_4FGL_J2359.0+3922_daily_bin1728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/305625/ft1_4FGL_J2359.0+3922_daily_bin1728.fits outfile=/scratch/kocevski/305625/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1728.fits ra=359.755 dec=39.3669 rad=12.0 tmin=687225601.0 tmax=687484801.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 2.73
user 2.53
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/305625/ft2_4FGL_J2359.0+3922_daily_bin1728.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/305625/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1728.fits evtable="EVENTS" outfile="/scratch/kocevski/305625/ft1_filtered_4FGL_J2359.0+3922_daily_bin1728.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.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 28

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/305625/ft1_filtered_4FGL_J2359.0+3922_daily_bin1728.fits" evtable="EVENTS" scfile=/scratch/kocevski/305625/ft2_4FGL_J2359.0+3922_daily_bin1728.fits sctable="SC_DATA" outfile=/scratch/kocevski/305625/ltcube_687225601_687484801_4FGL_J2359.0+3922_daily_bin1728.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/305625/ft2_4FGL_J2359.0+3922_daily_bin1728.fits
.....................!
real 12.48
user 12.13
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/305625/ft1_filtered_4FGL_J2359.0+3922_daily_bin1728.fits evtable="EVENTS" scfile=/scratch/kocevski/305625/ft2_4FGL_J2359.0+3922_daily_bin1728.fits sctable="SC_DATA" expcube=/scratch/kocevski/305625/ltcube_687225601_687484801_4FGL_J2359.0+3922_daily_bin1728.fits outfile=/scratch/kocevski/305625/expmap_687225601_687484801_4FGL_J2359.0+3922_daily_bin1728.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/305625/ltcube_687225601_687484801_4FGL_J2359.0+3922_daily_bin1728.fits
.....................!
real 190.59
user 185.24
sys 5.04

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/305625/ft1_filtered_4FGL_J2359.0+3922_daily_bin1728.fits scfile=/scratch/kocevski/305625/ft2_4FGL_J2359.0+3922_daily_bin1728.fits outfile=/scratch/kocevski/305625/cmap_687225601_687484801_4FGL_J2359.0+3922_daily_bin1728.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/305625/ft1_filtered_4FGL_J2359.0+3922_daily_bin1728.fits scfile=/scratch/kocevski/305625/ft2_4FGL_J2359.0+3922_daily_bin1728.fits outfile=/scratch/kocevski/305625/cmap_HighResolution_687225601_687484801_4FGL_J2359.0+3922_daily_bin1728.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/305625/ft1_filtered_4FGL_J2359.0+3922_daily_bin1728.fits evtable="EVENTS" scfile=/scratch/kocevski/305625/ft2_4FGL_J2359.0+3922_daily_bin1728.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/305625/Model_4FGL_J2359.0+3922_daily_bin1728.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/305625/ft1_filtered_4FGL_J2359.0+3922_daily_bin1728.fits............................!
real 17.75
user 16.46
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/305625/ft1_filtered_4FGL_J2359.0+3922_daily_bin1728.fits', '/scratch/kocevski/305625/ft2_4FGL_J2359.0+3922_daily_bin1728.fits', expMap='/scratch/kocevski/305625/expmap_687225601_687484801_4FGL_J2359.0+3922_daily_bin1728.fits', expCube='/scratch/kocevski/305625/ltcube_687225601_687484801_4FGL_J2359.0+3922_daily_bin1728.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/305625/Model_4FGL_J2359.0+3922_daily_bin1728.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/305625/ft1_filtered_4FGL_J2359.0+3922_daily_bin1728.fits
Spacecraft file(s): /scratch/kocevski/305625/ft2_4FGL_J2359.0+3922_daily_bin1728.fits
Exposure map: /scratch/kocevski/305625/expmap_687225601_687484801_4FGL_J2359.0+3922_daily_bin1728.fits
Exposure cube: /scratch/kocevski/305625/ltcube_687225601_687484801_4FGL_J2359.0+3922_daily_bin1728.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/305625/Model_4FGL_J2359.0+3922_daily_bin1728.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) = 339.44221303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23773E-02   1.0000          .0000       .10000E+07
     2 'norm      '    32.405       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6535       1.0000          .0000       .10000E+07
     4 'norm      '    4265.9       1.0000          .0000       .10000E+07
     5 'Prefactor '    .44279E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.8196       1.0000          .0000       .10000E+07
     7 'Prefactor '    3.2228       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.8941       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.4051       1.0000          .0000       .10000E+07
    10 'norm      '    1.9323       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.9092       1.0000          .0000       .10000E+07
    12 'Prefactor '    .66300E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .99353E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    93.013       1.0000          .0000       .10000E+07
    15 'norm      '    17.483       1.0000          .0000       .10000E+07
    16 'norm      '    .35844E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    96.099       1.0000          .0000       .10000E+07
    18 'norm      '    .48602E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    19.359       1.0000          .0000       .10000E+07
    20 'Prefactor '    957.37       1.0000          .0000       .10000E+07
    21 'Prefactor '    40.628       1.0000          .0000       .10000E+07
    22 'Prefactor '    1.0174       1.0000          .0000       .10000E+07
    23 'Normalizat'    .10012E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    .34830       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=   301.5501     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2340 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11824E-07    1150.2        .47999E-05** at limit **
   2  norm          .50515E-08    665.13        .16497E-06** at limit **
   3  Prefactor     .95479E-08    561.21       -.10088E-05** at limit **
   4  norm          2279.0        2237.6        .12902E-06   -.20802E-04
   5  Prefactor     .49238E-07    1798.5       -.36864E-05** at limit **
   6  Prefactor     .10000E+07    48673.        .65791E-05** at limit **
   7  Prefactor     .10000E+07    .62553E+06    .10848E-04** at limit **
   8  Prefactor     .10000E+07    .99950E+06   -.62923E-05** at limit **
   9  Prefactor     .10000E+07    .91973E+06   -.35486E-04** at limit **
  10  norm          .10000E+07    .79462E+06    .45864E-05** at limit **
  11  Prefactor     .10000E+07    .97181E+06    .13042E-05** at limit **
  12  Prefactor     .66613E-09    22.439       -.71313E-07** at limit **
  13  norm           .0000        1.4769       -.28491E-07** at limit **
  14  Prefactor     .94369E-09    29.418        .10017E-06** at limit **
  15  norm          8.2814        19.855       -.48424E-07    .56105E-03
  16  norm          27.790        53.625        .25523E-06   -.34462E-03
  17  Prefactor     133.80        106.10       -.10853E-06    .35857E-05
  18  norm          .27756E-09    417.83        .45388E-05** at limit **
  19  Prefactor     .16431E-07    592.45        .11616E-05** at limit **
  20  Prefactor     1067.7        761.86       -.71082E-06   -.23383E-03
  21  Prefactor     .15710E-07    826.57        .17950E-05** at limit **
  22  Prefactor     .68279E-08    159.57        .91638E-06** at limit **
  23  Normalizat    .10000E-01    .31922        .77821E-05** at limit **
  24  Prefactor     .10482        .12928        .18645E-05   -.37653E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.18239e-08
  norm       = 5.05151e-09
  Prefactor  = 9.54792e-09
  norm       = 2278.96
  Prefactor  = 4.92384e-08
  Prefactor  = 1e+06
  Prefactor  = 1e+06
  Prefactor  = 1e+06
  Prefactor  = 1e+06
  norm       = 1e+06
  Prefactor  = 1e+06
  Prefactor  = 6.66134e-10
  norm       = 0
  Prefactor  = 9.4369e-10
  norm       = 8.28144
  norm       = 27.7899
  Prefactor  = 133.795
  norm       = 2.77556e-10
  Prefactor  = 1.64313e-08
  Prefactor  = 1067.67
  Prefactor  = 1.57097e-08
  Prefactor  = 6.82787e-09
  Normalizat = 0.01
  Prefactor  = 0.10482
 **********
 **   18 **HESSE 
 **********

 FCN=   301.5501     FROM HESSE     STATUS=OK           445 CALLS     2785 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11824E-07    1162.3        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .50515E-08    683.82        .17569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .95479E-08    570.39        .82057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2279.0        2239.0        .15343E-04   -1.6663    
   5  Prefactor     .49238E-07    1870.1        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E+07    48235.        .31954E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E+07    .62508E+06    .56404E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E+07    .99995E+06    .45443E-02   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E+07    .92254E+06    .54800E-02   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E+07    .78344E+06    .74685E-02   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E+07    .98777E+06    .75211E-02   -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .66613E-09    23.631        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        1.4856        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .94369E-09    29.554        .10369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.2814        19.821        .23926E-03   -1.5650    
  16  norm          27.790        73.380        .42118E-03   -1.5603    
  17  Prefactor     133.80        106.02        .10202E-03   -1.5477    
  18  norm          .27756E-09    37.094        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .16431E-07    608.75        .22735E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1067.7        755.66        .32335E-04   -1.5054    
  21  Prefactor     .15710E-07    843.25        .15690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .68279E-08    177.32        .12883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .10000E-01    .31865        .13854       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10482        .13154        .37501E-01   -1.3657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41766e-10
Minuit parameter uncertainties:
  1  0.00741785
  2  0.00371908
  3  0.0046732
  4  2239.78
  5  0.0191954
  6  0.031106
  7  2.17592
  8  8.73166
  9  39.4283
  10  35.0266
  11  8.85367
  12  0.000245765
  13  2.05322e-06
  14  0.000338194
  15  19.8207
  16  73.3823
  17  106.024
  18  0.000205396
  19  0.00633126
  20  755.725
  21  0.00727762
  22  0.00219893
  23  2.49431e-06
  24  0.131904
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  6.828e-09  2.199e-03  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:  1.048e-01  1.319e-01  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.000e-02  2.494e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 359.755 39.367
Photon Flux Upper Limit: 5.09e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.92e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/305625/likelihoodResults_687225601_687484801_4FGL_J2359.0+3922_daily_bin1728.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) = 301.552766352
delta logL = -0.00267579183645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 301.550091349
delta logL = -7.89046396221e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61105E-04   1.0000          .0000       .10000E+07
     2 'Index     '    2.0162       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .10487       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=   301.5501     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      230 TOTAL
                     EDM=   .37E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        255.12        .25968E-05** at limit **
   2  Index         .97517        5.5772        .21032E-03     .0000    
   3  Normalizat    .10000E-01    .32243        .12505E-05** at limit **
   4  Prefactor     .10482        .11064       -.50443E-06    .14405E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.975175
  Normalizat = 0.01
  Prefactor  = 0.10482
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   301.5501     FROM HESSE     STATUS=FAILED        11 CALLS      241 TOTAL
                     EDM=   .37E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        255.39        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .39124E-01    1.0682        .21032E-03   -.93562    
   3  Normalizat    .10000E-01    .25753        .12505E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10482        .33759       -.50443E-06   -1.3657    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.67427e-13
Minuit parameter uncertainties:
  1  5.29242e-05
  2  0.762323
  3  4.6079e-07
  4  0.344095
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/305625': 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) = 301.55009056
delta logL = 2.76259015664e-11

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  0.000e+00  5.292e-05  0.000e+00  1.000e+06 ( 1.000e-13)
519        Index:  9.752e-01  7.623e-01  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:  1.048e-01  3.441e-01  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.000e-02  4.608e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 359.755 39.367

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/305625/cmap_HighResolution_687225601_687484801_4FGL_J2359.0+3922_daily_bin1728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-01', job_status='DONE', photon_flux_upper_limit='5.09e-06', time_completed='2022-10-15 00:46:16.108896', job_id='305625', GAL2='0.10', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1665819976.11', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.10', dlogl='2.76e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1728' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct 15 00:46:16 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 305625: <4FGL_J2359.0+3922_daily_bin1728> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin1728> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Oct 15 00:40:19 2022
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct 15 00:40:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct 15 00:40:19 2022
Terminated at Sat Oct 15 00:46:16 2022
Results reported at Sat Oct 15 00:46:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1728 359.755 39.3669 687225601 687484801 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 :                                   332.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             495.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   357 sec.
    Turnaround time :                            357 sec.

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

