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


Performing analysis on: 4FGL_J2352.0+1750_daily_bin1749
RA = 358.013, Dec = 17.8394
tmin = 692668801, tmax = 692928001
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='966610', job_status='RUN', time_executed='2022-12-17 01:43:53.706135', time_epoch_executed='1671270233.71' WHERE source_name='4FGL J2352.0+1750' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/966610

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/966610/ft1_4FGL_J2352.0+1750_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/966610/ft2_4FGL_J2352.0+1750_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/966610/ft1_4FGL_J2352.0+1750_daily_bin1749.fits outfile=/scratch/kocevski/966610/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin1749.fits ra=358.013 dec=17.8394 rad=12.0 tmin=692668801.0 tmax=692928001.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.66
user 3.41
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/966610/ft2_4FGL_J2352.0+1750_daily_bin1749.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/966610/ft2_4FGL_J2352.0+1750_daily_bin1749.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/966610/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin1749.fits evtable="EVENTS" outfile="/scratch/kocevski/966610/ft1_filtered_4FGL_J2352.0+1750_daily_bin1749.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.33
sys 0.16

Number of photons that the gtmktime cut: 680

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/966610/ft1_filtered_4FGL_J2352.0+1750_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/966610/ft2_4FGL_J2352.0+1750_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/966610/ltcube_692668801_692928001_4FGL_J2352.0+1750_daily_bin1749.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/966610/ft2_4FGL_J2352.0+1750_daily_bin1749.fits
.....................!
real 12.19
user 11.83
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/966610/ft1_filtered_4FGL_J2352.0+1750_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/966610/ft2_4FGL_J2352.0+1750_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/966610/ltcube_692668801_692928001_4FGL_J2352.0+1750_daily_bin1749.fits outfile=/scratch/kocevski/966610/expmap_692668801_692928001_4FGL_J2352.0+1750_daily_bin1749.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/966610/ltcube_692668801_692928001_4FGL_J2352.0+1750_daily_bin1749.fits
.....................!
real 191.54
user 185.35
sys 5.73

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J2352.0+1750 @ 358.013 17.8394

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/966610/ft1_filtered_4FGL_J2352.0+1750_daily_bin1749.fits scfile=/scratch/kocevski/966610/ft2_4FGL_J2352.0+1750_daily_bin1749.fits outfile=/scratch/kocevski/966610/cmap_692668801_692928001_4FGL_J2352.0+1750_daily_bin1749.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=358.013 yref=17.8394 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/966610/ft1_filtered_4FGL_J2352.0+1750_daily_bin1749.fits scfile=/scratch/kocevski/966610/ft2_4FGL_J2352.0+1750_daily_bin1749.fits outfile=/scratch/kocevski/966610/cmap_HighResolution_692668801_692928001_4FGL_J2352.0+1750_daily_bin1749.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=358.013 yref=17.8394 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/966610/ft1_filtered_4FGL_J2352.0+1750_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/966610/ft2_4FGL_J2352.0+1750_daily_bin1749.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/966610/Model_4FGL_J2352.0+1750_daily_bin1749.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/966610/ft1_filtered_4FGL_J2352.0+1750_daily_bin1749.fits....................!
real 85.03
user 83.47
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/966610/ft1_filtered_4FGL_J2352.0+1750_daily_bin1749.fits', '/scratch/kocevski/966610/ft2_4FGL_J2352.0+1750_daily_bin1749.fits', expMap='/scratch/kocevski/966610/expmap_692668801_692928001_4FGL_J2352.0+1750_daily_bin1749.fits', expCube='/scratch/kocevski/966610/ltcube_692668801_692928001_4FGL_J2352.0+1750_daily_bin1749.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/966610/Model_4FGL_J2352.0+1750_daily_bin1749.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2352.0+1750'

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  1.218e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
477        Index:  2.066e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
478        Scale:  1.963e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/966610/ft1_filtered_4FGL_J2352.0+1750_daily_bin1749.fits
Spacecraft file(s): /scratch/kocevski/966610/ft2_4FGL_J2352.0+1750_daily_bin1749.fits
Exposure map: /scratch/kocevski/966610/expmap_692668801_692928001_4FGL_J2352.0+1750_daily_bin1749.fits
Exposure cube: /scratch/kocevski/966610/ltcube_692668801_692928001_4FGL_J2352.0+1750_daily_bin1749.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/966610/Model_4FGL_J2352.0+1750_daily_bin1749.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) = 7333.60547327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7559       1.0000          .0000       .10000E+07
     2 'Prefactor '    21.031       1.0000          .0000       .10000E+07
     3 'Prefactor '    .55733E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    7.5100       1.0000          .0000       .10000E+07
     5 'norm      '    .57080E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .10146E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .39990E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .23600E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .17038E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .64415E-04   1.0000          .0000       .10000E+07
    11 'norm      '    5.5933       1.0000          .0000       .10000E+07
    12 'Prefactor '    .49699E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .11328E-03   1.0000          .0000       .10000E+07
    14 'norm      '    2.7689       1.0000          .0000       .10000E+07
    15 'Prefactor '    .28089E-07   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.1173       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0381       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7332.541     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      924 TOTAL
                     EDM=   .40E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7504        2.8468       -.14105E-06    .49705E-03
   2  Prefactor     21.147        3.2401        .19658E-06   -.21407E-01
   3  Prefactor     .55511E-10    4.4553        .24493E-06** at limit **
   4  Prefactor     7.5072        4.0828        .10302E-06    .39713E-03
   5  norm          .11102E-09    3.6062       -.43326E-06** at limit **
   6  Prefactor     .55511E-10    5.9399        .21888E-06** at limit **
   7  Prefactor      .0000        2.0540        .29970E-06** at limit **
   8  Prefactor      .0000        2.3395        .41929E-06** at limit **
   9  Prefactor      .0000        19.804       -.22536E-06** at limit **
  10  Prefactor     .22204E-09    7.6185       -.44723E-07** at limit **
  11  norm          5.5065        9.8487       -.13715E-05    .12401E-02
  12  Prefactor     .16148E-06    5.1768       -.15598E-05** at limit **
  13  Prefactor      .0000        27.023       -.22169E-05** at limit **
  14  norm          2.8941        1.2737       -.14081E-06    .55558E-03
  15  Prefactor      .0000        2.8624        .25046E-06** at limit **
  16  Normalizat    1.1172        .22943        .11704E-04    .27568E-04
  17  Prefactor     1.0381        .14225       -.26849E-05    .34198E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.75037
  Prefactor  = 21.1469
  Prefactor  = 5.55112e-11
  Prefactor  = 7.50717
  norm       = 1.11022e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.22045e-10
  norm       = 5.50652
  Prefactor  = 1.61482e-07
  Prefactor  = 0
  norm       = 2.89412
  Prefactor  = 0
  Normalizat = 1.11723
  Prefactor  = 1.03811
 **********
 **   18 **HESSE 
 **********

 FCN=   7332.541     FROM HESSE     STATUS=OK           259 CALLS     1183 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7504        3.0471        .61291E-03   -1.5675    
   2  Prefactor     21.147        13.609        .21812E-03   -1.5616    
   3  Prefactor     .55511E-10    4.4948        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.5072        4.0830        .36572E-03   -1.5653    
   5  norm          .11102E-09    3.6307        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    5.9765        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        2.0565        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.3366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        19.790        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .22204E-09    7.7583        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.5065        12.129        .42455E-03   -1.5661    
  12  Prefactor     .16148E-06    4.6250        .11162E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        27.025        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.8941        14.179        .61137E-03   -1.5674    
  15  Prefactor      .0000        2.8584        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1172        .20050        .69493E-01   -.89200    
  17  Prefactor     1.0381        .12332        .40664E-01   -.91470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.72798e-09
Minuit parameter uncertainties:
  1  3.04711
  2  13.6093
  3  3.38388e-05
  4  4.08305
  5  3.99178e-05
  6  3.66878e-05
  7  6.35506e-06
  8  3.02761e-06
  9  2.499e-05
  10  8.48026e-05
  11  12.1295
  12  0.00172838
  13  3.58658e-05
  14  12.8119
  15  5.54127e-06
  16  0.200636
  17  0.123356
Done.

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

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  0.000e+00  5.541e-06  0.000e+00  1.000e+06 ( 1.000e-13)
477        Index:  2.066e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
478        Scale:  1.963e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  1.038e+00  1.234e-01  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  1.117e+00  2.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 358.013 17.839
Photon Flux Upper Limit: 5.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/966610/likelihoodResults_692668801_692928001_4FGL_J2352.0+1750_daily_bin1749.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) = 7332.54122467
delta logL = -0.000422017907113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7332.54080269
delta logL = -3.85780367651e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7332.541     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      231 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.8111        .42118E-03** at limit **
   2  Index         2.0843        1.7289        .81068E-04     .0000    
   3  Normalizat    1.1172        1.1440       -.25678E-04   -.11062E-03
   4  Prefactor     1.0381        1.2064        .24184E-04   -.10744E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.08429
  Normalizat = 1.11723
  Prefactor  = 1.03811
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7332.541     FROM HESSE     STATUS=FAILED         9 CALLS      240 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.8111        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .47243        1.8892        .81068E-04   -.62259    
   3  Normalizat    1.1172        1.1440       -.25678E-04   -.89201    
   4  Prefactor     1.0381        1.2064        .24184E-04   -.91470    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.13939e-11
Minuit parameter uncertainties:
  1  2.7022e-06
  2  1.7859
  3  1.17101
  4  1.24027
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/966610': 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) = 7332.54080265
delta logL = -9.09494701773e-12

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  0.000e+00  2.702e-06  0.000e+00  1.000e+06 ( 1.000e-13)
477        Index:  2.084e+00  1.786e+00  0.000e+00  1.000e+01 (-1.000e+00)
478        Scale:  1.963e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  1.038e+00  1.240e+00  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  1.117e+00  1.171e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 358.013 17.839

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/966610/cmap_HighResolution_692668801_692928001_4FGL_J2352.0+1750_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-03', job_status='DONE', photon_flux_upper_limit='5.20e-08', time_completed='2022-12-17 01:52:54.082464', job_id='966610', GAL2='1.04', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1671270774.08', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='-9.09e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1749' AND source_name='4FGL J2352.0+1750' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 01:52:54 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 966610: <4FGL_J2352.0+1750_daily_bin1749> in cluster <slac> Done

Job <4FGL_J2352.0+1750_daily_bin1749> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Dec 17 01:40:14 2022
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 01:40:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 01:40:15 2022
Terminated at Sat Dec 17 01:52:54 2022
Results reported at Sat Dec 17 01:52:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2352.0+1750_daily_bin1749 358.013 17.8394 692668801 692928001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2352.0+1750 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   542.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            760 sec.

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

