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


Performing analysis on: 4FGL_J2359.0+3922_daily_bin1740
RA = 359.755, Dec = 39.3669
tmin = 690336001, tmax = 690595201
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='837267', job_status='RUN', time_executed='2022-11-20 00:52:39.946860', time_epoch_executed='1668934359.95' WHERE source_name='4FGL J2359.0+3922' and cadence='daily' and bin_id='1740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/837267

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/837267/ft1_4FGL_J2359.0+3922_daily_bin1740.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/837267/ft2_4FGL_J2359.0+3922_daily_bin1740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/837267/ft1_4FGL_J2359.0+3922_daily_bin1740.fits outfile=/scratch/kocevski/837267/ft1_filteredMKT_4FGL_J2359.0+3922_daily_bin1740.fits ra=359.755 dec=39.3669 rad=12.0 tmin=690336001.0 tmax=690595201.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.04
user 2.74
sys 0.22

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

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

Number of photons that the gtmktime cut: 757

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/837267/ft1_filtered_4FGL_J2359.0+3922_daily_bin1740.fits" evtable="EVENTS" scfile=/scratch/kocevski/837267/ft2_4FGL_J2359.0+3922_daily_bin1740.fits sctable="SC_DATA" outfile=/scratch/kocevski/837267/ltcube_690336001_690595201_4FGL_J2359.0+3922_daily_bin1740.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/837267/ft2_4FGL_J2359.0+3922_daily_bin1740.fits
.....................!
real 12.67
user 12.19
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/837267/ft1_filtered_4FGL_J2359.0+3922_daily_bin1740.fits evtable="EVENTS" scfile=/scratch/kocevski/837267/ft2_4FGL_J2359.0+3922_daily_bin1740.fits sctable="SC_DATA" expcube=/scratch/kocevski/837267/ltcube_690336001_690595201_4FGL_J2359.0+3922_daily_bin1740.fits outfile=/scratch/kocevski/837267/expmap_690336001_690595201_4FGL_J2359.0+3922_daily_bin1740.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/837267/ltcube_690336001_690595201_4FGL_J2359.0+3922_daily_bin1740.fits
.....................!
real 195.25
user 187.23
sys 5.69

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/837267/ft1_filtered_4FGL_J2359.0+3922_daily_bin1740.fits scfile=/scratch/kocevski/837267/ft2_4FGL_J2359.0+3922_daily_bin1740.fits outfile=/scratch/kocevski/837267/cmap_690336001_690595201_4FGL_J2359.0+3922_daily_bin1740.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/837267/ft1_filtered_4FGL_J2359.0+3922_daily_bin1740.fits scfile=/scratch/kocevski/837267/ft2_4FGL_J2359.0+3922_daily_bin1740.fits outfile=/scratch/kocevski/837267/cmap_HighResolution_690336001_690595201_4FGL_J2359.0+3922_daily_bin1740.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10542       1.0000          .0000       .10000E+07
     2 'norm      '    5.5489       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.8639       1.0000          .0000       .10000E+07
     4 'norm      '    .41078E-08   1.0000          .0000       .10000E+07
     5 'Prefactor '    .10358E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .18463E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .18431E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    14.858       1.0000          .0000       .10000E+07
     9 'Prefactor '    .26444E-01   1.0000          .0000       .10000E+07
    10 'norm      '    .14657E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .40923E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    25.584       1.0000          .0000       .10000E+07
    13 'norm      '    1.1217       1.0000          .0000       .10000E+07
    14 'Prefactor '    .84375       1.0000          .0000       .10000E+07
    15 'norm      '    .25124E-06   1.0000          .0000       .10000E+07
    16 'norm      '    4.3493       1.0000          .0000       .10000E+07
    17 'Prefactor '    55.420       1.0000          .0000       .10000E+07
    18 'norm      '    2.3902       1.0000          .0000       .10000E+07
    19 'Prefactor '    .37936       1.0000          .0000       .10000E+07
    20 'Prefactor '    7.3905       1.0000          .0000       .10000E+07
    21 'Prefactor '    .22722E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    12.689       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.1767       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92563       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=   8186.688     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1963 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29090E-05    3.6467        .18082E-05** at limit **
   2  norm          5.4420        10.578        .18391E-06   -.42980E-01
   3  Prefactor     2.8672        5.7863        .48154E-07   -.46855E-02
   4  norm           .0000        .81142        .31463E-06** at limit **
   5  Prefactor     .72164E-09    3.5449        .27985E-06** at limit **
   6  Prefactor      .0000        3.4635       -.27019E-06** at limit **
   7  Prefactor     .28266E-06    22.487        .33981E-05** at limit **
   8  Prefactor     15.098        1.8714        .18385E-06   -.53700E-02
   9  Prefactor     .24591E-07    .89983        .42708E-06** at limit **
  10  norm           .0000        2.7826        .47849E-06** at limit **
  11  Prefactor     .66613E-09    3.9134       -.26578E-06** at limit **
  12  Prefactor     25.609        1.1389        .83721E-07   -.43516E-02
  13  norm          1.1224        1.3194        .10738E-06    .10282E-02
  14  Prefactor     .76226        1.3264        .11261E-05   -.66912E-02
  15  norm          .61062E-09    2.7160        .63798E-06** at limit **
  16  norm          4.3533        8.1023        .30330E-05    .63695E-01
  17  Prefactor     55.274        2.1813        .19867E-06   -.19502E-01
  18  norm          2.3917        2.7229        .15482E-06    .70694E-03
  19  Prefactor     .87796E-05    66.568       -.11923E-04** at limit **
  20  Prefactor     7.7807        2.6659        .60869E-06   -.77374E-02
  21  Prefactor     .20650E-07    33.380       -.36585E-05** at limit **
  22  Prefactor     12.708        3.9302        .67695E-06    .90707E-01
  23  Normalizat    1.1769        .25583       -.51246E-06    .16647E-03
  24  Prefactor     .92576        .11208       -.49918E-05    .19028E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.90895e-06
  norm       = 5.44203
  Prefactor  = 2.86719
  norm       = 0
  Prefactor  = 7.21645e-10
  Prefactor  = 0
  Prefactor  = 2.82663e-07
  Prefactor  = 15.0982
  Prefactor  = 2.45914e-08
  norm       = 0
  Prefactor  = 6.66134e-10
  Prefactor  = 25.6087
  norm       = 1.12235
  Prefactor  = 0.762262
  norm       = 6.10623e-10
  norm       = 4.35333
  Prefactor  = 55.2745
  norm       = 2.39169
  Prefactor  = 8.77959e-06
  Prefactor  = 7.78075
  Prefactor  = 2.06501e-08
  Prefactor  = 12.7076
  Normalizat = 1.17687
  Prefactor  = 0.925758
 **********
 **   18 **HESSE 
 **********

 FCN=   8186.688     FROM HESSE     STATUS=OK           449 CALLS     2412 TOTAL
                     EDM=   .50E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29090E-05    13.648        .13786E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.4420        12.257        .42627E-03   -1.5661    
   3  Prefactor     2.8672        6.2124        .60043E-03   -1.5674    
   4  norm           .0000        .81058        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .72164E-09    3.8152        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        3.4416        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .28266E-06    23.672        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.098        28.665        .25958E-03   -1.5630    
   9  Prefactor     .24591E-07    56.517        .16645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        2.7424        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .66613E-09    4.0486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.609        24.690        .19774E-03   -1.5607    
  13  norm          1.1224        1.3594        .11077E-02   -1.5687    
  14  Prefactor     .76226        38.924        .49729E-03   -1.5691    
  15  norm          .61062E-09    2.7151        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.3533        10.821        .48275E-03   -1.5666    
  17  Prefactor     55.274        22.646        .13434E-03   -1.5559    
  18  norm          2.3917        2.7952        .66219E-03   -1.5677    
  19  Prefactor     .87796E-05    95.300        .91918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.7807        29.884        .36869E-03   -1.5652    
  21  Prefactor     .20650E-07    33.929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.708        8.9658        .28095E-03   -1.5637    
  23  Normalizat    1.1769        .22884        .80175E-01   -.87321    
  24  Prefactor     .92576        .95364E-01    .45331E-01   -.95247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.99018e-07
Minuit parameter uncertainties:
  1  0.0126019
  2  12.2576
  3  6.21237
  4  6.72909e-06
  5  0.000102969
  6  3.70376e-06
  7  0.00517366
  8  28.6654
  9  0.00235857
  10  6.26218e-06
  11  0.000104868
  12  24.69
  13  1.35942
  14  10.8942
  15  8.02314e-05
  16  10.8214
  17  22.6456
  18  2.79525
  19  0.0578524
  20  29.8846
  21  0.00167362
  22  8.96581
  23  0.229039
  24  0.0953817
Done.

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

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.271e+01  8.966e+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:  9.258e-01  9.538e-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.177e+00  2.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.64
Ra Dec: 359.755 39.367
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 6.54e-08 +/- 4.61e-08
Energy Flux (Fixed Index): 2.30e-05 +/- 1.63e-05

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) = 8186.57047973
delta logL = 0.11780028164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8186.56992918
delta logL = 0.118350827572

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.097       1.0000          .0000       .10000E+07
     2 'Index     '    2.0697       1.0000          .0000       10.000    
     3 'Normalizat'    1.1969       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92117       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=   8186.570     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      284 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.087        327.12        .24937E-03   -.11584E-03
   2  Index         2.0688        5.9588        .15161        .11382E-03
   3  Normalizat    1.1970        .14567        .79608E-01   -.64600E-05
   4  Prefactor     .92119        .41976E-01    .45274E-01   -.99411E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.0868
  Index      = 2.06883
  Normalizat = 1.197
  Prefactor  = 0.921193
 **********
 **   18 **HESSE 
 **********

 FCN=   8186.570     FROM HESSE     STATUS=OK            31 CALLS      315 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.087        13.065        .99747E-05   -1.5628    
   2  Index         2.0688        .59824        .84971E-02   -.62640    
   3  Normalizat    1.1970        .25827        .35240E-03   -.86695    
   4  Prefactor     .92119        .11119        .17160E-03   -.95404    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5683e-11
Minuit parameter uncertainties:
  1  13.0651
  2  0.600439
  3  0.258542
  4  0.111214
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/837267': 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): 0
logL (Free Index) = 8186.56992693
delta logL = 0.118353083185

Extracting fit parameters...

4FGL J2359.0+3922
   Spectrum: PowerLaw
518    Prefactor:  1.609e+01  1.307e+01  0.000e+00  1.000e+06 ( 1.000e-13)
519        Index:  2.069e+00  6.004e-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:  9.212e-01  1.112e-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.197e+00  2.585e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.87
Ra Dec: 359.755 39.367
Photon Index (Free Index): 2.07 +/- 0.60
Photon Flux (Free Index): 4.80e-08 +/- 5.20e-08
Energy Flux (Free Index): 2.82e-05 +/- 2.63e-05

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/837267/cmap_HighResolution_690336001_690595201_4FGL_J2359.0+3922_daily_bin1740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.54e-08', energy_flux2='2.82e-05', photon_flux_error='4.61e-08', dlogl='1.18e-01', energy_flux='2.30e-05', photon_flux2='4.80e-08', job_status='DONE', time_completed='2022-11-20 01:03:30.202975', photon_index_error2='0.60', photon_index2='2.07', ts='6.64', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='2.63e-05', EG='1.18', time_epoch_completed='1668935010.2', return_code='0', job_id='837267', GAL2='0.92', EG2='1.20', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='5.20e-08', ts2='6.87', photon_index='2.35' WHERE bin_id='1740' AND source_name='4FGL J2359.0+3922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Nov 20 01:03:30 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 837267: <4FGL_J2359.0+3922_daily_bin1740> in cluster <slac> Done

Job <4FGL_J2359.0+3922_daily_bin1740> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Nov 20 00:50:15 2022
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:52:03 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:52:03 2022
Terminated at Sun Nov 20 01:03:31 2022
Results reported at Sun Nov 20 01:03:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.0+3922_daily_bin1740 359.755 39.3669 690336001 690595201 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 :                                   646.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             365.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   688 sec.
    Turnaround time :                            796 sec.

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

