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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1734
RA = 359.755, Dec = 39.3669
tmin = 688780801, tmax = 689040001
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='776619', job_status='RUN', time_executed='2022-11-02 00:38:26.917474', time_epoch_executed='1667374706.92' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1734'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/776619

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/776619/ft1_4FGL_J2359.0+3922_daily_bin1734.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/776619/ft2_4FGL_J2359.0+3922_daily_bin1734.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/776619/ft1_4FGL_J2359.0+3922_daily_bin1734.fits outfile=/scratch/kocevski/776619/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1734.fits ra=359.755 dec=39.3669 rad=12.0 tmin=688780801.0 tmax=689040001.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 3.53
user 3.32
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/776619/ft2_4FGL_J2359.0+3922_daily_bin1734.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/776619/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1734.fits evtable="EVENTS" outfile="/scratch/kocevski/776619/ft1_filtered_4FGL_J2359.0+3922_daily_bin1734.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.33
sys 0.14

Number of photons that the gtmktime cut: 893

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/776619/ft1_filtered_4FGL_J2359.0+3922_daily_bin1734.fits" evtable="EVENTS" scfile=/scratch/kocevski/776619/ft2_4FGL_J2359.0+3922_daily_bin1734.fits sctable="SC_DATA" outfile=/scratch/kocevski/776619/ltcube_688780801_689040001_4FGL_J2359.0+3922_daily_bin1734.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/776619/ft2_4FGL_J2359.0+3922_daily_bin1734.fits
.....................!
real 12.44
user 12.09
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/776619/ft1_filtered_4FGL_J2359.0+3922_daily_bin1734.fits evtable="EVENTS" scfile=/scratch/kocevski/776619/ft2_4FGL_J2359.0+3922_daily_bin1734.fits sctable="SC_DATA" expcube=/scratch/kocevski/776619/ltcube_688780801_689040001_4FGL_J2359.0+3922_daily_bin1734.fits outfile=/scratch/kocevski/776619/expmap_688780801_689040001_4FGL_J2359.0+3922_daily_bin1734.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/776619/ltcube_688780801_689040001_4FGL_J2359.0+3922_daily_bin1734.fits
.....................!
real 191.05
user 185.84
sys 4.89

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/776619/ft1_filtered_4FGL_J2359.0+3922_daily_bin1734.fits scfile=/scratch/kocevski/776619/ft2_4FGL_J2359.0+3922_daily_bin1734.fits outfile=/scratch/kocevski/776619/cmap_688780801_689040001_4FGL_J2359.0+3922_daily_bin1734.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/776619/ft1_filtered_4FGL_J2359.0+3922_daily_bin1734.fits scfile=/scratch/kocevski/776619/ft2_4FGL_J2359.0+3922_daily_bin1734.fits outfile=/scratch/kocevski/776619/cmap_HighResolution_688780801_689040001_4FGL_J2359.0+3922_daily_bin1734.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52927E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .33943E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    8.3425       1.0000          .0000       .10000E+07
     4 'norm      '    .60063E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    9.1542       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.2629       1.0000          .0000       .10000E+07
     7 'Prefactor '    .57328E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .29277E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10376E-03   1.0000          .0000       .10000E+07
    10 'norm      '    7.6088       1.0000          .0000       .10000E+07
    11 'Prefactor '    .53729E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .44574E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .22432E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    6.2945       1.0000          .0000       .10000E+07
    15 'norm      '    .26027E-05   1.0000          .0000       .10000E+07
    16 'norm      '    14.938       1.0000          .0000       .10000E+07
    17 'Prefactor '    10.906       1.0000          .0000       .10000E+07
    18 'norm      '    .59008E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    .35382E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .15653E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .60021E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .97167E-04   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.2151       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0116       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=   9540.828     FROM MIGRAD    STATUS=CONVERGED    153 CALLS     1591 TOTAL
                     EDM=   .64E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-09    3.2376       -.91138E-08** at limit **
   2  norm          .25535E-08    6.5362        .57118E-08** at limit **
   3  Prefactor     8.3961        7.7858       -.60407E-08    .40059E-03
   4  norm           .0000        .51916        .43606E-07** at limit **
   5  Prefactor     9.1916        7.2813       -.38221E-07    .31015E-03
   6  Prefactor     1.2670        2.5948       -.21353E-07   -.39639E-05
   7  Prefactor     .54179E-07    9.4018       -.56670E-07** at limit **
   8  Prefactor     .88818E-09    7.4019        .20752E-08** at limit **
   9  Prefactor     .37803E-07    2.8980        .86443E-08** at limit **
  10  norm          7.6133        3.5830        .12188E-08    .12700E-03
  11  Prefactor      .0000        1.3904        .11816E-07** at limit **
  12  Prefactor     .11047E-06    13.780        .47339E-07** at limit **
  13  norm          .77716E-09    9.0617        .10879E-06** at limit **
  14  Prefactor     6.2968        11.675       -.73477E-07   -.17358E-02
  15  norm           .0000        1.8411        .78122E-07** at limit **
  16  norm          14.939        9.3256       -.12489E-07    .19508E-02
  17  Prefactor     11.050        2.3723       -.62425E-08    .24327E-01
  18  norm           .0000        .64947        .21976E-07** at limit **
  19  Prefactor     .14100E-07    3.3012       -.14404E-07** at limit **
  20  Prefactor     .19151E-06    9.2734        .13525E-07** at limit **
  21  Prefactor     .12751E-06    18.269       -.95485E-07** at limit **
  22  Prefactor     .70499E-08    3.8094        .44413E-07** at limit **
  23  Normalizat    1.2146        .23980        .34837E-05    .13371E-04
  24  Prefactor     1.0116        .10489       -.84375E-06    .19034E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-10
  norm       = 2.55351e-09
  Prefactor  = 8.3961
  norm       = 0
  Prefactor  = 9.19161
  Prefactor  = 1.26696
  Prefactor  = 5.41789e-08
  Prefactor  = 8.88178e-10
  Prefactor  = 3.78031e-08
  norm       = 7.6133
  Prefactor  = 0
  Prefactor  = 1.10467e-07
  norm       = 7.77156e-10
  Prefactor  = 6.29676
  norm       = 0
  norm       = 14.9391
  Prefactor  = 11.0496
  norm       = 0
  Prefactor  = 1.40998e-08
  Prefactor  = 1.91513e-07
  Prefactor  = 1.27509e-07
  Prefactor  = 7.04992e-09
  Normalizat = 1.21462
  Prefactor  = 1.01158
 **********
 **   18 **HESSE 
 **********

 FCN=   9540.828     FROM HESSE     STATUS=OK           441 CALLS     2032 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-09    10.734        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .25535E-08    14.300        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.3961        7.7883        .34685E-03   -1.5650    
   4  norm           .0000        .52211        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.1916        7.2771        .33101E-03   -1.5647    
   6  Prefactor     1.2670        2.6238        .99157E-03   -1.5685    
   7  Prefactor     .54179E-07    27.521        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .88818E-09    14.023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .37803E-07    9.8223        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.6133        3.5840        .36332E-03   -1.5653    
  11  Prefactor      .0000        1.3939        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .11047E-06    21.993        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .77716E-09    .73907        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.2968        11.694        .39986E-03   -1.5658    
  15  norm           .0000        1.8453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.939        9.3270        .25888E-03   -1.5631    
  17  Prefactor     11.050        13.353        .30312E-03   -1.5641    
  18  norm           .0000        .64960        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .14100E-07    10.905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .19151E-06    23.994        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .12751E-06    28.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .70499E-08    9.9667        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2146        .20804        .79914E-01   -.86152    
  24  Prefactor     1.0116        .90004E-01    .43109E-01   -.92345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95468e-08
Minuit parameter uncertainties:
  1  0.000111607
  2  0.000380692
  3  7.78829
  4  4.09416e-07
  5  7.2771
  6  2.62376
  7  0.00244182
  8  0.000220882
  9  0.00121858
  10  3.58404
  11  2.93016e-06
  12  0.00311721
  13  4.8613e-05
  14  11.6935
  15  2.3226e-06
  16  9.32698
  17  13.3532
  18  7.50981e-07
  19  0.000784525
  20  0.0042875
  21  0.00380331
  22  0.000530095
  23  0.208181
  24  0.0900173
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  7.050e-09  5.301e-04  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.012e+00  9.002e-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.215e+00  2.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/776619/likelihoodResults_688780801_689040001_4FGL_J2359.0+3922_daily_bin1734.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) = 9540.88221289
delta logL = -0.0544765805516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9540.82773633
delta logL = -1.38225004775e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15210E-07   1.0000          .0000       .10000E+07
     2 'Index     '    2.7688       1.0000          .0000       10.000    
     3 'Normalizat'    1.2146       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0116       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=   9540.828     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      239 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10547E-08    .97647        .42118E-03** at limit **
   2  Index         1.3710        5.4458        .50000       -.68212E-09
   3  Normalizat    1.2146        .27159E-02    .79914E-01    .10897E-02
   4  Prefactor     1.0116        .12289E-02    .43106E-01    .23614E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.05471e-09
  Index      = 1.37098
  Normalizat = 1.21462
  Prefactor  = 1.01158
 **********
 **   18 **HESSE 
 **********

 FCN=   9540.828     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10547E-08    5.3624        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3710        8.4276        .50000       -.81220    
   3  Normalizat    1.2146        .63585E-02    .35376E-03   -.86152    
   4  Prefactor     1.0116        .28816E-02    .17269E-03   -.92345    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.26486e-10
Minuit parameter uncertainties:
  1  0.000149257
  2  43260.2
  3  0.00635847
  4  0.0028816
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/776619': 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) = 9540.82773631
delta logL = -7.16681824997e-10

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.055e-09  1.493e-04  0.000e+00  1.000e+06 ( 1.000e-13)
519        Index:  1.371e+00  4.326e+04  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.012e+00  2.882e-03  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.215e+00  6.358e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/776619/cmap_HighResolution_688780801_689040001_4FGL_J2359.0+3922_daily_bin1734.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.64e-03', job_status='DONE', photon_flux_upper_limit='8.62e-08', time_completed='2022-11-02 00:50:13.024299', job_id='776619', GAL2='1.01', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1667375413.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='-7.17e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1734' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Nov  2 00:50:13 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 776619: <4FGL_J2359.0+3922_daily_bin1734> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin1734> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Nov  2 00:35:39 2022
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Nov  2 00:35:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Nov  2 00:35:40 2022
Terminated at Wed Nov  2 00:50:13 2022
Results reported at Wed Nov  2 00:50:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1734 359.755 39.3669 688780801 689040001 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 :                                   708.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            874 sec.

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

