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 40 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1669
RA = 357.356, Dec = 5.579
tmin = 671932801, tmax = 672192001
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='693529', job_status='RUN', time_executed='2022-04-21 00:41:13.298818', time_epoch_executed='1650526873.3' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1669'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/693529

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/693529/ft1_4FGL_J2349.4+0534_daily_bin1669.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/693529/ft2_4FGL_J2349.4+0534_daily_bin1669.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/693529/ft1_4FGL_J2349.4+0534_daily_bin1669.fits outfile=/scratch/kocevski/693529/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1669.fits ra=357.356 dec=5.579 rad=12.0 tmin=671932801.0 tmax=672192001.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.75
user 3.53
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/693529/ft2_4FGL_J2349.4+0534_daily_bin1669.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/693529/ft2_4FGL_J2349.4+0534_daily_bin1669.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/693529/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1669.fits evtable="EVENTS" outfile="/scratch/kocevski/693529/ft1_filtered_4FGL_J2349.4+0534_daily_bin1669.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.52
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 606

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/693529/ft1_filtered_4FGL_J2349.4+0534_daily_bin1669.fits" evtable="EVENTS" scfile=/scratch/kocevski/693529/ft2_4FGL_J2349.4+0534_daily_bin1669.fits sctable="SC_DATA" outfile=/scratch/kocevski/693529/ltcube_671932801_672192001_4FGL_J2349.4+0534_daily_bin1669.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/693529/ft2_4FGL_J2349.4+0534_daily_bin1669.fits
.....................!
real 11.99
user 11.65
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/693529/ft1_filtered_4FGL_J2349.4+0534_daily_bin1669.fits evtable="EVENTS" scfile=/scratch/kocevski/693529/ft2_4FGL_J2349.4+0534_daily_bin1669.fits sctable="SC_DATA" expcube=/scratch/kocevski/693529/ltcube_671932801_672192001_4FGL_J2349.4+0534_daily_bin1669.fits outfile=/scratch/kocevski/693529/expmap_671932801_672192001_4FGL_J2349.4+0534_daily_bin1669.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/693529/ltcube_671932801_672192001_4FGL_J2349.4+0534_daily_bin1669.fits
.....................!
real 191.48
user 186.07
sys 5.08

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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J2349.4+0534 @ 357.356 5.579

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/693529/ft1_filtered_4FGL_J2349.4+0534_daily_bin1669.fits scfile=/scratch/kocevski/693529/ft2_4FGL_J2349.4+0534_daily_bin1669.fits outfile=/scratch/kocevski/693529/cmap_671932801_672192001_4FGL_J2349.4+0534_daily_bin1669.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.356 yref=5.579 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/693529/ft1_filtered_4FGL_J2349.4+0534_daily_bin1669.fits scfile=/scratch/kocevski/693529/ft2_4FGL_J2349.4+0534_daily_bin1669.fits outfile=/scratch/kocevski/693529/cmap_HighResolution_671932801_672192001_4FGL_J2349.4+0534_daily_bin1669.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.356 yref=5.579 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/693529/ft1_filtered_4FGL_J2349.4+0534_daily_bin1669.fits evtable="EVENTS" scfile=/scratch/kocevski/693529/ft2_4FGL_J2349.4+0534_daily_bin1669.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/693529/Model_4FGL_J2349.4+0534_daily_bin1669.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/693529/ft1_filtered_4FGL_J2349.4+0534_daily_bin1669.fits.....................!
real 73.33
user 71.93
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/693529/ft1_filtered_4FGL_J2349.4+0534_daily_bin1669.fits', '/scratch/kocevski/693529/ft2_4FGL_J2349.4+0534_daily_bin1669.fits', expMap='/scratch/kocevski/693529/expmap_671932801_672192001_4FGL_J2349.4+0534_daily_bin1669.fits', expCube='/scratch/kocevski/693529/ltcube_671932801_672192001_4FGL_J2349.4+0534_daily_bin1669.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/693529/Model_4FGL_J2349.4+0534_daily_bin1669.xml', optimizer='MINUIT')

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

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.639e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.467e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/693529/ft1_filtered_4FGL_J2349.4+0534_daily_bin1669.fits
Spacecraft file(s): /scratch/kocevski/693529/ft2_4FGL_J2349.4+0534_daily_bin1669.fits
Exposure map: /scratch/kocevski/693529/expmap_671932801_672192001_4FGL_J2349.4+0534_daily_bin1669.fits
Exposure cube: /scratch/kocevski/693529/ltcube_671932801_672192001_4FGL_J2349.4+0534_daily_bin1669.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/693529/Model_4FGL_J2349.4+0534_daily_bin1669.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) = 6954.18118623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9787       1.0000         .10000E-03   10000.    
     2 'norm      '    2.9961       1.0000         .10000E-03   10000.    
     3 'norm      '    .16157E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.363       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11105E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4470       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.9829       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3821       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3073       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.000       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.7317       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19808E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.917       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .74204       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1150       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6954.128     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2934 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9791        16.799       -.40494E-05   -.84299E-04
   2  norm          2.9936        2.8733        .27723E-05   -.12632E-02
   3  norm          .10004E-03    3.9871        .86709E-06** at limit **
   4  Prefactor     11.365        13.415       -.25854E-06   -.19098E-03
   5  Prefactor     .10000E-03    63.431       -.52807E-05** at limit **
   6  Prefactor     2.4496        9.1342        .79597E-06   -.31285E-04
   7  Prefactor     .10000E-03    23.453       -.17807E-05** at limit **
   8  norm          1.9821        1.0015       -.65136E-07   -.52065E-03
   9  Prefactor     2.3873        10.433        .17496E-05   -.55924E-04
  10  Prefactor     5.3086        52.520        .75473E-06   -.66552E-05
  11  norm          .10000E-03    3.3737       -.66441E-07** at limit **
  12  Prefactor     .10000E-03    1.5188        .77826E-08** at limit **
  13  Prefactor     39.129        133.36        .20121E-04    .10583E-03
  14  Prefactor     7.7417        12.021       -.20086E-05   -.38036E-03
  15  Prefactor     .10000E-03    53.411        .44332E-05** at limit **
  16  norm          .10000E-03    25.346        .33403E-06** at limit **
  17  norm          .10000E-03    10.068        .68646E-07** at limit **
  18  Prefactor     .10000E-03    2.5119        .94656E-06** at limit **
  19  Prefactor     11.909        31.542       -.86966E-06   -.83563E-04
  20  Prefactor     .10000E-03    5.7453        .36854E-07** at limit **
  21  Prefactor     .10000E-03    16.843        .39454E-06** at limit **
  22  Normalizat    .74227        .19280       -.13353E-05   -.29077E-03
  23  Prefactor     1.1148        .12931       -.22469E-06   -.39220E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.9791
  norm       = 2.99364
  norm       = 0.000100044
  Prefactor  = 11.365
  Prefactor  = 0.000100003
  Prefactor  = 2.44965
  Prefactor  = 0.0001
  norm       = 1.98212
  Prefactor  = 2.3873
  Prefactor  = 5.30859
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.1288
  Prefactor  = 7.7417
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 11.9095
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.742267
  Prefactor  = 1.11484
 **********
 **   18 **HESSE 
 **********

 FCN=   6954.128     FROM HESSE     STATUS=OK           374 CALLS     3308 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9791        16.799        .15186E-03   -1.5180    
   2  norm          2.9936        2.9288        .61987E-03   -1.5362    
   3  norm          .10004E-03    26.056        .31263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.365        13.212        .11884E-03   -1.5034    
   5  Prefactor     .10000E-03    65.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.4496        9.1299        .26152E-03   -1.5395    
   7  Prefactor     .10000E-03    24.083        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.9821        .99941        .56244E-04   -1.5426    
   9  Prefactor     2.3873        10.353        .26540E-03   -1.5399    
  10  Prefactor     5.3086        52.436        .17446E-03   -1.5247    
  11  norm          .10000E-03    3.3934        .14944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.5217        .10035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     39.129        138.85        .32091E-03   -1.4456    
  14  Prefactor     7.7417        11.232        .14421E-03   -1.5151    
  15  Prefactor     .10000E-03    54.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    26.215        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.2057        .22707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.909        31.567        .11604E-03   -1.5018    
  20  Prefactor     .10000E-03    5.7502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.299        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .74227        .21864        .32638E-03   -1.0225    
  23  Prefactor     1.1148        .14803        .19051E-03   -.88994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64015e-09
Minuit parameter uncertainties:
  1  16.8103
  2  2.9289
  3  0.00214875
  4  13.2151
  5  0.000910085
  6  9.13504
  7  0.000151699
  8  0.999422
  9  9.94587
  10  33.4062
  11  6.03814e-06
  12  2.72324e-07
  13  140.024
  14  11.2354
  15  0.000816465
  16  6.05148e-05
  17  1.52951e-05
  18  0.000342236
  19  31.611
  20  6.2619e-06
  21  4.53005e-05
  22  0.218893
  23  0.148085
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  6.262e-06  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.467e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.115e+00  1.481e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  7.423e-01  2.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 5.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/693529/likelihoodResults_671932801_672192001_4FGL_J2349.4+0534_daily_bin1669.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) = 6954.1289794
delta logL = -0.000826404437248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6954.12815299
delta logL = 2.7712303563e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4471       1.0000          .0000       10.000    
     3 'Normalizat'    .74231       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1148       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+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.

 FCN=   6954.128     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      254 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.953        .18142E-01** at limit **
   2  Index         1.9127        7.7451        .50000        .17992E-06
   3  Normalizat    .74227        .75155E-02    .32637E-03   -.21628E-03
   4  Prefactor     1.1148        .53138E-02    .19051E-03   -.36546E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.91268
  Normalizat = 0.742268
  Prefactor  = 1.11484
 **********
 **   18 **HESSE 
 **********

 FCN=   6954.128     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    167.17        .22011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9127        5.8027        .50000       -.66551    
   3  Normalizat    .74227        .22852E-01    .13055E-04   -1.0225    
   4  Prefactor     1.1148        .16157E-01    .38103E-04   -.88994    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.25724e-09
Minuit parameter uncertainties:
  1  3.44202e-05
  2  721.587
  3  0.0228519
  4  0.0161574
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/693529': 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) = 6954.12815114
delta logL = 1.85786484508e-06

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  3.442e-05  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  1.913e+00  7.216e+02  0.000e+00  1.000e+01 (-1.000e+00)
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.115e+00  1.616e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  7.423e-01  2.285e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 357.356 5.579

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/693529/cmap_HighResolution_671932801_672192001_4FGL_J2349.4+0534_daily_bin1669.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.50e-03', job_status='DONE', photon_flux_upper_limit='5.80e-08', time_completed='2022-04-21 00:52:49.181828', job_id='693529', GAL2='1.11', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1650527569.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.86e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1669' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Apr 21 00:52:49 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 693529: <4FGL_J2349.4+0534_daily_bin1669> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin1669> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Apr 21 00:40:20 2022
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Apr 21 00:40:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Apr 21 00:40:21 2022
Terminated at Thu Apr 21 00:52:49 2022
Results reported at Thu Apr 21 00:52:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1669 357.356 5.579 671932801 672192001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2349.4+0534 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   698.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             366.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            749 sec.

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

