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


Performing analysis on: 4FGL_J2349.2+4535_daily_bin1780
RA = 357.305, Dec = 45.5979
tmin = 700704001, tmax = 700963201
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='81698', job_status='RUN', time_executed='2023-03-20 02:00:54.645586', time_epoch_executed='1679302854.65' WHERE source_name='4FGL J2349.2+4535' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/81698

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/81698/ft1_4FGL_J2349.2+4535_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/81698/ft2_4FGL_J2349.2+4535_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/81698/ft1_4FGL_J2349.2+4535_daily_bin1780.fits outfile=/scratch/kocevski/81698/ft1_filteredMKT_4FGL_J2349.2+4535_daily_bin1780.fits ra=357.305 dec=45.5979 rad=12.0 tmin=700704001.0 tmax=700963201.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 4.15
user 3.92
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/81698/ft2_4FGL_J2349.2+4535_daily_bin1780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/81698/ft2_4FGL_J2349.2+4535_daily_bin1780.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/81698/ft1_filteredMKT_4FGL_J2349.2+4535_daily_bin1780.fits evtable="EVENTS" outfile="/scratch/kocevski/81698/ft1_filtered_4FGL_J2349.2+4535_daily_bin1780.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.17

Number of photons that the gtmktime cut: 548

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/81698/ft1_filtered_4FGL_J2349.2+4535_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/81698/ft2_4FGL_J2349.2+4535_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/81698/ltcube_700704001_700963201_4FGL_J2349.2+4535_daily_bin1780.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/81698/ft2_4FGL_J2349.2+4535_daily_bin1780.fits
.....................!
real 12.40
user 12.04
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/81698/ft1_filtered_4FGL_J2349.2+4535_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/81698/ft2_4FGL_J2349.2+4535_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/81698/ltcube_700704001_700963201_4FGL_J2349.2+4535_daily_bin1780.fits outfile=/scratch/kocevski/81698/expmap_700704001_700963201_4FGL_J2349.2+4535_daily_bin1780.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/81698/ltcube_700704001_700963201_4FGL_J2349.2+4535_daily_bin1780.fits
.....................!
real 191.60
user 186.33
sys 4.87

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 180 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 J2349.2+4535 @ 357.305 45.5979

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/81698/ft1_filtered_4FGL_J2349.2+4535_daily_bin1780.fits scfile=/scratch/kocevski/81698/ft2_4FGL_J2349.2+4535_daily_bin1780.fits outfile=/scratch/kocevski/81698/cmap_700704001_700963201_4FGL_J2349.2+4535_daily_bin1780.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=357.305 yref=45.5979 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/81698/ft1_filtered_4FGL_J2349.2+4535_daily_bin1780.fits scfile=/scratch/kocevski/81698/ft2_4FGL_J2349.2+4535_daily_bin1780.fits outfile=/scratch/kocevski/81698/cmap_HighResolution_700704001_700963201_4FGL_J2349.2+4535_daily_bin1780.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=357.305 yref=45.5979 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/81698/ft1_filtered_4FGL_J2349.2+4535_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/81698/ft2_4FGL_J2349.2+4535_daily_bin1780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/81698/Model_4FGL_J2349.2+4535_daily_bin1780.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/81698/ft1_filtered_4FGL_J2349.2+4535_daily_bin1780.fits.....................!
real 74.85
user 73.44
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/81698/ft1_filtered_4FGL_J2349.2+4535_daily_bin1780.fits', '/scratch/kocevski/81698/ft2_4FGL_J2349.2+4535_daily_bin1780.fits', expMap='/scratch/kocevski/81698/expmap_700704001_700963201_4FGL_J2349.2+4535_daily_bin1780.fits', expCube='/scratch/kocevski/81698/ltcube_700704001_700963201_4FGL_J2349.2+4535_daily_bin1780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/81698/Model_4FGL_J2349.2+4535_daily_bin1780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2349.2+4535'

4FGL J2349.2+4535
   Spectrum: PowerLaw
567    Prefactor:  5.568e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
568        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
569        Scale:  2.096e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/81698/ft1_filtered_4FGL_J2349.2+4535_daily_bin1780.fits
Spacecraft file(s): /scratch/kocevski/81698/ft2_4FGL_J2349.2+4535_daily_bin1780.fits
Exposure map: /scratch/kocevski/81698/expmap_700704001_700963201_4FGL_J2349.2+4535_daily_bin1780.fits
Exposure cube: /scratch/kocevski/81698/ltcube_700704001_700963201_4FGL_J2349.2+4535_daily_bin1780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/81698/Model_4FGL_J2349.2+4535_daily_bin1780.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) = 5667.3429822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.797       1.0000          .0000       .10000E+07
     2 'norm      '    .65329E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .21621E-03   1.0000          .0000       .10000E+07
     4 'norm      '    2.0491       1.0000          .0000       .10000E+07
     5 'Prefactor '    .16030E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    8.0118       1.0000          .0000       .10000E+07
     7 'Prefactor '    4.9189       1.0000          .0000       .10000E+07
     8 'Prefactor '    .59708E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .12181E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    10.965       1.0000          .0000       .10000E+07
    11 'Prefactor '    19.299       1.0000          .0000       .10000E+07
    12 'norm      '    .11315E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .13088E-05   1.0000          .0000       .10000E+07
    14 'norm      '    2.8406       1.0000          .0000       .10000E+07
    15 'Prefactor '    52.425       1.0000          .0000       .10000E+07
    16 'Prefactor '    .23764       1.0000          .0000       .10000E+07
    17 'Prefactor '    .19550E-04   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.5282       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .68537       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5667.342     FROM MIGRAD    STATUS=CONVERGED    101 CALLS     1446 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.789        2.3176       -.15297E-06    .26921E-02
   2  norm          .92149E-08    12.556        .61795E-06** at limit **
   3  Prefactor      .0000        4.9281       -.16351E-05** at limit **
   4  norm          2.0456        3.5579        .39799E-06   -.11877E-02
   5  Prefactor     .33307E-09    7.6054       -.21049E-05** at limit **
   6  Prefactor     8.1548        10.021        .32100E-07    .24050E-01
   7  Prefactor     5.0414        1.3340        .16872E-06   -.23432E-02
   8  Prefactor     .92704E-06    12.566       -.23086E-05** at limit **
   9  Prefactor     .28422E-06    40.711       -.52985E-05** at limit **
  10  Prefactor     10.937        1.2280       -.31361E-07   -.16333E-02
  11  Prefactor     19.331        1.2248        .67434E-07    .17237E-01
  12  norm          .37659E-06    7.3560       -.99101E-06** at limit **
  13  norm           .0000        .87591        .19588E-06** at limit **
  14  norm          2.8076        4.1336        .45471E-06    .17178E-02
  15  Prefactor     52.367        9.2583       -.48875E-06    .20011    
  16  Prefactor     .38858E-07    55.443       -.21267E-05** at limit **
  17  Prefactor     .52980E-06    14.527        .25419E-06** at limit **
  18  Normalizat    1.5290        .28200       -.76120E-05    .12121E-03
  19  Prefactor     .68530        .82747E-01    .60071E-05    .17701E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.7893
  norm       = 9.21485e-09
  Prefactor  = 0
  norm       = 2.04565
  Prefactor  = 3.33067e-10
  Prefactor  = 8.15485
  Prefactor  = 5.04138
  Prefactor  = 9.27036e-07
  Prefactor  = 2.84217e-07
  Prefactor  = 10.9368
  Prefactor  = 19.3314
  norm       = 3.76588e-07
  norm       = 0
  norm       = 2.80755
  Prefactor  = 52.3666
  Prefactor  = 3.88578e-08
  Prefactor  = 5.29798e-07
  Normalizat = 1.52896
  Prefactor  = 0.685296
 **********
 **   18 **HESSE 
 **********

 FCN=   5667.342     FROM HESSE     STATUS=OK           310 CALLS     1756 TOTAL
                     EDM=   .67E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.789        29.608        .25173E-03   -1.5628    
   2  norm          .92149E-08    12.597        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        4.9341        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.0456        3.5835        .72191E-03   -1.5679    
   5  Prefactor     .33307E-09    7.5230        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.1548        26.022        .35399E-03   -1.5651    
   7  Prefactor     5.0414        76.387        .45326E-03   -1.5663    
   8  Prefactor     .92704E-06    16.528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .28422E-06    5.4504        .63686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.937        28.332        .30231E-03   -1.5642    
  11  Prefactor     19.331        15.052        .22771E-03   -1.5620    
  12  norm          .37659E-06    17.885        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .87561        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.8076        44.393        .60306E-03   -1.5674    
  15  Prefactor     52.367        92.189        .13812E-03   -1.5563    
  16  Prefactor     .38858E-07    55.462        .11141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .52980E-06    21.053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.5290        .27035        .77984E-01   -.76968    
  19  Prefactor     .68530        .74538E-01    .42206E-01   -1.0411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.67173e-06
Minuit parameter uncertainties:
  1  29.6082
  2  0.000681402
  3  8.27474e-06
  4  3.58352
  5  9.93581e-05
  6  26.0221
  7  39.2483
  8  0.00782862
  9  0.00248917
  10  28.3324
  11  15.0521
  12  0.00519062
  13  1.46451e-06
  14  22.3282
  15  92.1916
  16  0.00293598
  17  0.00667942
  18  0.270606
  19  0.0745483
Done.

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

Extracting fit parameters...

4FGL J2349.2+4535
   Spectrum: PowerLaw
567    Prefactor:  5.237e+01  9.219e+01  0.000e+00  1.000e+06 ( 1.000e-14)
568        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
569        Scale:  2.096e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  6.853e-01  7.455e-02  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
600   Normalization:  1.529e+00  2.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.40
Ra Dec: 357.305 45.598
Photon Flux Upper Limit: 1.75e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.33e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/81698/likelihoodResults_700704001_700963201_4FGL_J2349.2+4535_daily_bin1780.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) = 5665.69274009
delta logL = 1.64965558799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5665.66853561
delta logL = 1.67386006873

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5665.669     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      333 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2517        11.031        .99409E-03   -.12989E-01
   2  Index         4.3221        1.8699        .71453E-01   -.66965E-04
   3  Normalizat    1.3625        .89974E-01    .81620E-01   -.10043E-03
   4  Prefactor     .71286        .25855E-01    .31977E-01   -.22307E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.25174
  Index      = 4.3221
  Normalizat = 1.36249
  Prefactor  = 0.712862
 **********
 **   18 **HESSE 
 **********

 FCN=   5665.669     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      364 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2517        21.699        .48300E-05   -1.5686    
   2  Index         4.3221        2.9151        .28116E-02   -.13600    
   3  Normalizat    1.3625        .28019        .36130E-03   -.81720    
   4  Prefactor     .71286        .79073E-01    .14129E-03   -1.0302    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.74016e-10
Minuit parameter uncertainties:
  1  10.4233
  2  3.1167
  3  0.280503
  4  0.0790851
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/81698': 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) = 5665.66853255
delta logL = 1.67386313153

Extracting fit parameters...

4FGL J2349.2+4535
   Spectrum: PowerLaw
567    Prefactor:  1.252e+00  1.042e+01  0.000e+00  1.000e+06 ( 1.000e-14)
568        Index:  4.322e+00  3.117e+00  0.000e+00  1.000e+01 (-1.000e+00)
569        Scale:  2.096e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  7.129e-01  7.909e-02  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
600   Normalization:  1.362e+00  2.805e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.13
Ra Dec: 357.305 45.598
Photon Index (Free Index): 4.32 +/- 3.12
Photon Flux (Free Index): 1.95e-07 +/- 1.25e-07
Energy Flux (Free Index): 2.78e-05 +/- 1.73e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/81698/cmap_HighResolution_700704001_700963201_4FGL_J2349.2+4535_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', comment='SUCCESS', energy_flux2='2.78e-05', dlogl='1.67e+00', photon_flux2='1.95e-07', job_status='DONE', time_completed='2023-03-20 02:10:21.713365', photon_index_error2='3.12', photon_index2='4.32', ts='0.40', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='1.75e-07', energy_flux_error2='1.73e-05', EG='1.53', time_epoch_completed='1679303421.71', return_code='0', job_id='81698', GAL2='0.71', EG2='1.36', return_code2='102', photon_flux_error2='1.25e-07', ts2='4.13', photon_index='2.18' WHERE bin_id='1780' AND source_name='4FGL J2349.2+4535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 02:10:21 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 81698: <4FGL_J2349.2+4535_daily_bin1780> in cluster <slac> Done

Job <4FGL_J2349.2+4535_daily_bin1780> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Mar 20 02:00:16 2023
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 02:00:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 02:00:16 2023
Terminated at Mon Mar 20 02:10:22 2023
Results reported at Mon Mar 20 02:10:22 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.2+4535_daily_bin1780 357.305 45.5979 700704001 700963201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2349.2+4535 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   569.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             361.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   606 sec.
    Turnaround time :                            606 sec.

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

