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


Performing analysis on: 4FGL_J2352.0+1750_daily_bin1748
RA = 358.013, Dec = 17.8394
tmin = 692409601, tmax = 692668801
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='900370', job_status='RUN', time_executed='2022-12-14 01:32:15.118772', time_epoch_executed='1671010335.12' WHERE source_name='4FGL J2352.0+1750' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/900370

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/900370/ft1_4FGL_J2352.0+1750_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/900370/ft2_4FGL_J2352.0+1750_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/900370/ft1_4FGL_J2352.0+1750_daily_bin1748.fits outfile=/scratch/kocevski/900370/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin1748.fits ra=358.013 dec=17.8394 rad=12.0 tmin=692409601.0 tmax=692668801.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.60
user 3.35
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/900370/ft2_4FGL_J2352.0+1750_daily_bin1748.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/900370/ft1_filteredMKT_4FGL_J2352.0+1750_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/900370/ft1_filtered_4FGL_J2352.0+1750_daily_bin1748.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.47
user 0.33
sys 0.13

Number of photons that the gtmktime cut: 701

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/900370/ft1_filtered_4FGL_J2352.0+1750_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/900370/ft2_4FGL_J2352.0+1750_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/900370/ltcube_692409601_692668801_4FGL_J2352.0+1750_daily_bin1748.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/900370/ft2_4FGL_J2352.0+1750_daily_bin1748.fits
.....................!
real 12.43
user 12.00
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/900370/ft1_filtered_4FGL_J2352.0+1750_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/900370/ft2_4FGL_J2352.0+1750_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/900370/ltcube_692409601_692668801_4FGL_J2352.0+1750_daily_bin1748.fits outfile=/scratch/kocevski/900370/expmap_692409601_692668801_4FGL_J2352.0+1750_daily_bin1748.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/900370/ltcube_692409601_692668801_4FGL_J2352.0+1750_daily_bin1748.fits
.....................!
real 191.53
user 185.82
sys 4.94

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/900370/ft1_filtered_4FGL_J2352.0+1750_daily_bin1748.fits scfile=/scratch/kocevski/900370/ft2_4FGL_J2352.0+1750_daily_bin1748.fits outfile=/scratch/kocevski/900370/cmap_692409601_692668801_4FGL_J2352.0+1750_daily_bin1748.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/900370/ft1_filtered_4FGL_J2352.0+1750_daily_bin1748.fits scfile=/scratch/kocevski/900370/ft2_4FGL_J2352.0+1750_daily_bin1748.fits outfile=/scratch/kocevski/900370/cmap_HighResolution_692409601_692668801_4FGL_J2352.0+1750_daily_bin1748.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/900370/ft1_filtered_4FGL_J2352.0+1750_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/900370/ft2_4FGL_J2352.0+1750_daily_bin1748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/900370/Model_4FGL_J2352.0+1750_daily_bin1748.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/900370/ft1_filtered_4FGL_J2352.0+1750_daily_bin1748.fits.....................!
real 83.48
user 81.89
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/900370/ft1_filtered_4FGL_J2352.0+1750_daily_bin1748.fits', '/scratch/kocevski/900370/ft2_4FGL_J2352.0+1750_daily_bin1748.fits', expMap='/scratch/kocevski/900370/expmap_692409601_692668801_4FGL_J2352.0+1750_daily_bin1748.fits', expCube='/scratch/kocevski/900370/ltcube_692409601_692668801_4FGL_J2352.0+1750_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/900370/Model_4FGL_J2352.0+1750_daily_bin1748.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/900370/ft1_filtered_4FGL_J2352.0+1750_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/900370/ft2_4FGL_J2352.0+1750_daily_bin1748.fits
Exposure map: /scratch/kocevski/900370/expmap_692409601_692668801_4FGL_J2352.0+1750_daily_bin1748.fits
Exposure cube: /scratch/kocevski/900370/ltcube_692409601_692668801_4FGL_J2352.0+1750_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/900370/Model_4FGL_J2352.0+1750_daily_bin1748.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) = 7527.55903951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .35749E-07   1.0000          .0000       .10000E+07
     2 'Prefactor '    10.005       1.0000          .0000       .10000E+07
     3 'Prefactor '    6.4911       1.0000          .0000       .10000E+07
     4 'Prefactor '    .20068       1.0000          .0000       .10000E+07
     5 'norm      '    17.906       1.0000          .0000       .10000E+07
     6 'Prefactor '    .11277E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .10327E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .18749E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    26.980       1.0000          .0000       .10000E+07
    10 'Prefactor '    17.292       1.0000          .0000       .10000E+07
    11 'norm      '    .64426E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .15086E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .31460       1.0000          .0000       .10000E+07
    14 'norm      '    22.237       1.0000          .0000       .10000E+07
    15 'Prefactor '    .17569E-02   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.0072       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1175       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=   7527.519     FROM MIGRAD    STATUS=CONVERGED    116 CALLS      942 TOTAL
                     EDM=   .91E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .70018       -.17688E-07** at limit **
   2  Prefactor     10.038        6.5649        .19435E-07    .73426E-02
   3  Prefactor     6.5077        5.8189        .46081E-07   -.89022E-02
   4  Prefactor     .24538        10.172        .56010E-06** at limit **
   5  norm          17.913        1.8094        .35394E-08   -.15078E-01
   6  Prefactor     .33307E-09    35.084       -.10968E-07** at limit **
   7  Prefactor     .49960E-09    1.4245       -.11272E-06** at limit **
   8  Prefactor     .33307E-09    5.1142       -.53858E-08** at limit **
   9  Prefactor     26.886        7.3041       -.16668E-07    .51958E-01
  10  Prefactor     17.889        15.759       -.10659E-06   -.18072E-01
  11  norm          .13878E-08    2.4967       -.15569E-06** at limit **
  12  Prefactor     .33307E-09    3.8729        .44030E-09** at limit **
  13  Prefactor     .13906E-06    90.465        .81384E-06** at limit **
  14  norm          22.179        1.2212        .22472E-08    .19305E-02
  15  Prefactor     .55511E-09    4.4023        .20842E-07** at limit **
  16  Normalizat    1.0058        .23737        .26082E-06    .21634E-04
  17  Prefactor     1.1180        .15091       -.13700E-05    .52968E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 10.0379
  Prefactor  = 6.50767
  Prefactor  = 0.24538
  norm       = 17.9133
  Prefactor  = 3.33067e-10
  Prefactor  = 4.996e-10
  Prefactor  = 3.33067e-10
  Prefactor  = 26.8862
  Prefactor  = 17.8893
  norm       = 1.38778e-09
  Prefactor  = 3.33067e-10
  Prefactor  = 1.39055e-07
  norm       = 22.1793
  Prefactor  = 5.55112e-10
  Normalizat = 1.00584
  Prefactor  = 1.118
 **********
 **   18 **HESSE 
 **********

 FCN=   7527.519     FROM HESSE     STATUS=OK           263 CALLS     1205 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .70521        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.038        10.094        .31655E-03   -1.5645    
   3  Prefactor     6.5077        10.388        .39368E-03   -1.5657    
   4  Prefactor     .24538        1.6356        .66320E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          17.913        11.083        .23641E-03   -1.5623    
   6  Prefactor     .33307E-09    35.068        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .49960E-09    3.7239        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .33307E-09    5.1659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.886        15.263        .19256E-03   -1.5604    
  10  Prefactor     17.889        17.301        .24058E-03   -1.5623    
  11  norm          .13878E-08    3.7534        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .33307E-09    4.0529        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .13906E-06    91.258        .10013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          22.179        14.741        .21212E-03   -1.5614    
  15  Prefactor     .55511E-09    4.4239        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0058        .20441        .72350E-01   -.92835    
  17  Prefactor     1.1180        .12970        .36956E-01   -.88893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52769e-08
Minuit parameter uncertainties:
  1  4.01682e-07
  2  10.0942
  3  10.3882
  4  1.26703
  5  11.0828
  6  0.00021955
  7  8.7839e-05
  8  8.21441e-05
  9  15.2631
  10  17.3012
  11  0.000144492
  12  7.19355e-05
  13  0.00712488
  14  14.7415
  15  9.96218e-05
  16  0.204571
  17  0.129735
Done.

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

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  5.551e-10  9.962e-05  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.118e+00  1.297e-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.006e+00  2.046e-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: 6.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/900370/likelihoodResults_692409601_692668801_4FGL_J2352.0+1750_daily_bin1748.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) = 7527.63133549
delta logL = -0.11219460657

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7527.5191409
delta logL = -1.34086803882e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
     2 'Index     '    .70316       1.0000          .0000       10.000    
     3 'Normalizat'    1.0058       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1180       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7527.499     FROM MIGRAD    STATUS=FAILED       142 CALLS      305 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94892E-02    11.125        .25093E-04** at limit **
   2  Index         4.2632        7.7578        .20000E-01    .86723E-03
   3  Normalizat    .99129        .24309        .32227E-03    .46172E-03
   4  Prefactor     1.1238        .14746        .19802E-03    .60263E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7527.499     FROM SIMPLEX   STATUS=UNCHANGED     97 CALLS      402 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94892E-02    11.125        .55282E-05** at limit **
   2  Index         4.2632        7.7578        .44684E-02    .86723E-03
   3  Normalizat    .99129        .24309        .16453E-03    .46172E-03
   4  Prefactor     1.1238        .14746        .61388E-04    .60263E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7527.499     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      433 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94880E-02    55.570        .10037E-05** at limit **
   2  Index         4.2632        7.8668        .40000E-02    .34674E-05
   3  Normalizat    .99129        .24670        .64453E-04    .40453E-03
   4  Prefactor     1.1238        .15321        .39603E-04    .53928E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.009488
  Index      = 4.26323
  Normalizat = 0.991294
  Prefactor  = 1.12376
 **********
 **   18 **HESSE 
 **********

 FCN=   7527.499     FROM HESSE     STATUS=OK            27 CALLS      460 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94880E-02    .45129        .74911E-07   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.2632        4.1037        .16000E-03   -.14789    
   3  Normalizat    .99129        .24094        .12891E-04   -.93323    
   4  Prefactor     1.1238        .15327        .79207E-05   -.88711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8456e-10
Minuit parameter uncertainties:
  1  0.130871
  2  4.84034
  3  0.241203
  4  0.15333
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/900370': 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) = 7527.49855491
delta logL = 0.0205859760272

Extracting fit parameters...

4FGL J2352.0+1750
   Spectrum: PowerLaw
476    Prefactor:  9.488e-03  1.309e-01  0.000e+00  1.000e+06 ( 1.000e-13)
477        Index:  4.263e+00  4.840e+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.124e+00  1.533e-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:  9.913e-01  2.412e-01  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/900370/cmap_HighResolution_692409601_692668801_4FGL_J2352.0+1750_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', job_status='DONE', photon_flux_upper_limit='6.35e-08', time_completed='2022-12-14 01:41:31.526938', job_id='900370', GAL2='1.12', fit_tolerance='1e-08', EG2='0.99', EG='1.01', time_epoch_completed='1671010891.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='2.06e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1748' AND source_name='4FGL J2352.0+1750' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 01:41:31 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 900370: <4FGL_J2352.0+1750_daily_bin1748> in cluster <slac> Done

Job <4FGL_J2352.0+1750_daily_bin1748> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec 14 01:30:21 2022
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 01:30:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 01:30:22 2022
Terminated at Wed Dec 14 01:41:32 2022
Results reported at Wed Dec 14 01:41:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2352.0+1750_daily_bin1748 358.013 17.8394 692409601 692668801 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 :                                   555.60 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             313.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   669 sec.
    Turnaround time :                            671 sec.

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

