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


Performing analysis on: 4FGL_J1923.5-2104_daily_bin1757
RA = 290.876, Dec = -21.071
tmin = 694742401, tmax = 695001601
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='219286', job_status='RUN', time_executed='2023-01-10 02:11:59.711530', time_epoch_executed='1673345519.71' WHERE source_name='4FGL J1923.5-2104' and cadence='daily' and bin_id='1757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/219286

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/219286/ft1_4FGL_J1923.5-2104_daily_bin1757.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/219286/ft2_4FGL_J1923.5-2104_daily_bin1757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/219286/ft1_4FGL_J1923.5-2104_daily_bin1757.fits outfile=/scratch/kocevski/219286/ft1_filteredMKT_4FGL_J1923.5-2104_daily_bin1757.fits ra=290.876 dec=-21.071 rad=12.0 tmin=694742401.0 tmax=695001601.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 2.95
user 2.72
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/219286/ft2_4FGL_J1923.5-2104_daily_bin1757.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/219286/ft2_4FGL_J1923.5-2104_daily_bin1757.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/219286/ft1_filteredMKT_4FGL_J1923.5-2104_daily_bin1757.fits evtable="EVENTS" outfile="/scratch/kocevski/219286/ft1_filtered_4FGL_J1923.5-2104_daily_bin1757.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.35
sys 0.16

Number of photons that the gtmktime cut: 26

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/219286/ft1_filtered_4FGL_J1923.5-2104_daily_bin1757.fits" evtable="EVENTS" scfile=/scratch/kocevski/219286/ft2_4FGL_J1923.5-2104_daily_bin1757.fits sctable="SC_DATA" outfile=/scratch/kocevski/219286/ltcube_694742401_695001601_4FGL_J1923.5-2104_daily_bin1757.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/219286/ft2_4FGL_J1923.5-2104_daily_bin1757.fits
.....................!
real 17.19
user 16.84
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/219286/ft1_filtered_4FGL_J1923.5-2104_daily_bin1757.fits evtable="EVENTS" scfile=/scratch/kocevski/219286/ft2_4FGL_J1923.5-2104_daily_bin1757.fits sctable="SC_DATA" expcube=/scratch/kocevski/219286/ltcube_694742401_695001601_4FGL_J1923.5-2104_daily_bin1757.fits outfile=/scratch/kocevski/219286/expmap_694742401_695001601_4FGL_J1923.5-2104_daily_bin1757.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/219286/ltcube_694742401_695001601_4FGL_J1923.5-2104_daily_bin1757.fits
.....................!
real 192.46
user 187.38
sys 5.04

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 HESS J1809-193 in ROI with RadialDisk spatial model.
Extended source HESS J1813-178 in ROI with RadialDisk spatial model.
Extended source HESS J1825-137 in ROI with RadialGaussian spatial model.
Extended source W 41 in ROI with RadialGaussian spatial model.
Extended source W 28 in ROI with RadialDisk spatial model.
Extended source HESS J1804-216 in ROI with RadialDisk spatial model.
Extended source W 30 in ROI with RadialDisk spatial model.
Extended source HESS J1808-204 in ROI with RadialDisk spatial model.
Extended source G24.7+0.6 in ROI with RadialDisk spatial model.
Extended source FGES J1836.5-0651 in ROI with RadialDisk spatial model.
Extended source FGES J1838.9-0704 in ROI with RadialDisk spatial model.
Extended source Kes 73 in ROI with RadialDisk spatial model.
Extended source HESS J1841-055 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HESSJ1841-055.fits is the correct path to the extended template.
Added 378 point sources and 13 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 J1923.5-2104 @ 290.876 -21.071

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/219286/ft1_filtered_4FGL_J1923.5-2104_daily_bin1757.fits scfile=/scratch/kocevski/219286/ft2_4FGL_J1923.5-2104_daily_bin1757.fits outfile=/scratch/kocevski/219286/cmap_694742401_695001601_4FGL_J1923.5-2104_daily_bin1757.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=290.876 yref=-21.071 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/219286/ft1_filtered_4FGL_J1923.5-2104_daily_bin1757.fits scfile=/scratch/kocevski/219286/ft2_4FGL_J1923.5-2104_daily_bin1757.fits outfile=/scratch/kocevski/219286/cmap_HighResolution_694742401_695001601_4FGL_J1923.5-2104_daily_bin1757.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=290.876 yref=-21.071 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.57
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/219286/ft1_filtered_4FGL_J1923.5-2104_daily_bin1757.fits evtable="EVENTS" scfile=/scratch/kocevski/219286/ft2_4FGL_J1923.5-2104_daily_bin1757.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/219286/Model_4FGL_J1923.5-2104_daily_bin1757.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 FGES J1836.5-0651
adding source FGES J1838.9-0704
adding source G24.7+0.6
adding source GAL_V02
adding source HESS J1804-216
adding source HESS J1808-204
adding source HESS J1809-193
adding source HESS J1813-178
adding source HESS J1825-137
adding source HESS J1841-055
adding source Kes 73
adding source W 28
adding source W 30
adding source W 41
Working on...
/scratch/kocevski/219286/ft1_filtered_4FGL_J1923.5-2104_daily_bin1757.fits..........................!
real 18.64
user 17.33
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/219286/ft1_filtered_4FGL_J1923.5-2104_daily_bin1757.fits', '/scratch/kocevski/219286/ft2_4FGL_J1923.5-2104_daily_bin1757.fits', expMap='/scratch/kocevski/219286/expmap_694742401_695001601_4FGL_J1923.5-2104_daily_bin1757.fits', expCube='/scratch/kocevski/219286/ltcube_694742401_695001601_4FGL_J1923.5-2104_daily_bin1757.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/219286/Model_4FGL_J1923.5-2104_daily_bin1757.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1923.5-2104'

4FGL J1923.5-2104
   Spectrum: LogParabola
1079         norm:  4.401e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
1080        alpha:  2.130e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
1081         beta:  1.392e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
1082           Eb:  8.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/219286/ft1_filtered_4FGL_J1923.5-2104_daily_bin1757.fits
Spacecraft file(s): /scratch/kocevski/219286/ft2_4FGL_J1923.5-2104_daily_bin1757.fits
Exposure map: /scratch/kocevski/219286/expmap_694742401_695001601_4FGL_J1923.5-2104_daily_bin1757.fits
Exposure cube: /scratch/kocevski/219286/ltcube_694742401_695001601_4FGL_J1923.5-2104_daily_bin1757.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/219286/Model_4FGL_J1923.5-2104_daily_bin1757.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) = 206.118104154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '     .0000       1.0000          .0000       .10000E+07
     2 'Prefactor '    .18818E-07   1.0000          .0000       .10000E+07
     3 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
     4 'norm      '    .10000E+07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
     6 'norm      '    .10000E+07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
     9 'norm      '    .10000E+07   1.0000          .0000       .10000E+07
    10 'norm      '    .10000E+07   1.0000          .0000       .10000E+07
    11 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
    12 'Prefactor '    .29976E-08   1.0000          .0000       .10000E+07
    13 'Prefactor '    959.24       1.0000          .0000       .10000E+07
    14 'Prefactor '    .48850E-08   1.0000          .0000       .10000E+07
    15 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
    16 'norm      '    22.141       1.0000          .0000       .10000E+07
    17 'Normalizat'    .13396       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .19086E-10   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1407E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   203.8681     FROM MIGRAD    STATUS=CONVERGED    366 CALLS     2521 TOTAL
                     EDM=   .43E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.6701        .19224E-07** at limit **
   2  Prefactor      .0000        1394.9        .49928E-05** at limit **
   3  norm           .0000        61.135        .47648E-07** at limit **
   4  norm          .10000E+07    43168.        .18576E-02** at limit **
   5  Prefactor     .10000E+07    .98956E+06    .19510E-02** at limit **
   6  norm          .10000E+07    .75061E+06    .19529E-02** at limit **
   7  Prefactor     .10000E+07    .57476E+06    .19526E-02** at limit **
   8  Prefactor     .10000E+07    .75883E+06    .19466E-02** at limit **
   9  norm          .10000E+07    .77119E+06    .19469E-02** at limit **
  10  norm          .10000E+07    .20403E+06    .19339E-02** at limit **
  11  Prefactor     .10000E+07    .11300E+06    .19172E-02** at limit **
  12  Prefactor      .0000        512.04        .89006E-06** at limit **
  13  Prefactor     959.28        1074.3        .12103E-05    .99363E-05
  14  Prefactor      .0000        107.79       -.88986E-07** at limit **
  15  Prefactor      .0000        3.7005       -.29591E-08** at limit **
  16  norm          22.146        43.165        .74331E-07    .15361E-04
  17  Normalizat    .13392        .41568       -.18348E-04   -.45266E-05
  18  Prefactor     .10936E-12    .22350E-01    .86984E-07** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 0
  norm       = 0
  norm       = 1e+06
  Prefactor  = 1e+06
  norm       = 1e+06
  Prefactor  = 1e+06
  Prefactor  = 1e+06
  norm       = 1e+06
  norm       = 1e+06
  Prefactor  = 1e+06
  Prefactor  = 0
  Prefactor  = 959.282
  Prefactor  = 0
  Prefactor  = 0
  norm       = 22.146
  Normalizat = 0.133924
  Prefactor  = 1.09357e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   203.8681     FROM HESSE     STATUS=OK           248 CALLS     2769 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.6701        .22812E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1394.9        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        61.135        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E+07    43168.        .84235E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E+07    .98956E+06    .84235E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E+07    .75063E+06    .84235E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E+07    .57476E+06    .84235E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E+07    .75883E+06    .84235E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E+07    .77119E+06    .84235E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E+07    .20403E+06    .84235E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E+07    .11300E+06    .84235E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        512.04        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     959.28        1074.3        .64606E-05   -1.5088    
  14  Prefactor      .0000        107.79        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        3.7005        .26855E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          22.146        43.032        .85031E-05   -1.5614    
  17  Normalizat    .13392        .41326        .47698E-03   -1.3476    
  18  Prefactor     .10936E-12    .22376E-01    .65941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.28432e-12
Minuit parameter uncertainties:
  1  1.4176e-08
  2  1.18623e-07
  3  3.40066e-09
  4  0.000182095
  5  0.00623327
  6  0.198362
  7  0.0346736
  8  0.000504728
  9  0.00068088
  10  0.000176439
  11  0.000135016
  12  5.39913e-08
  13  1074.49
  14  1.40899e-06
  15  6.31191e-08
  16  43.0325
  17  0.423539
  18  9.90896e-08
Done.

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

Extracting fit parameters...

4FGL J1923.5-2104
   Spectrum: LogParabola
1079         norm:  1.000e+06  1.764e-04  0.000e+00  1.000e+06 ( 1.000e-12)
1080        alpha:  2.130e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
1081         beta:  1.392e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
1082           Eb:  8.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1368    Prefactor:  1.094e-13  9.909e-08  0.000e+00  1.000e+01 ( 1.000e+00)
1369        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1370        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1357   Normalization:  1.339e-01  4.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.32
Ra Dec: 290.876 -21.071
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 6.20e-03 +/- 1.09e-12
Energy Flux (Fixed Index): 2.85e+00 +/- 5.02e-10

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) = 185.28674674
delta logL = 18.5814009007

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 185.28408484
delta logL = 18.5840628006

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E+07   1.0000          .0000       .10000E+07
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .13246       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .20263E-10   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1407E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   185.2841     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      162 TOTAL
                     EDM=   .56E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E+07    58622.        .19531E-02** at limit **
   2  alpha         5.0000        .48398E-01    .95857E-07** at limit **
   3  Normalizat    .13176        .36953       -.40056E-05   -.24455E-05
   4  Prefactor     .83267E-14    .22343E-01   -.30883E-06** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 1e+06
  alpha      = 5
  Normalizat = 0.131755
  Prefactor  = 8.32667e-15
 **********
 **   18 **HESSE 
 **********

 FCN=   185.2841     FROM HESSE     STATUS=OK            27 CALLS      189 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E+07    58622.        .84236E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        .48378E-01    .13117E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .13176        .36872        .45711E-03   -1.3495    
   4  Prefactor     .83267E-14    .22369E-01    .62860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07059e-12
Minuit parameter uncertainties:
  1  6.9872e-05
  2  3.14766e-09
  3  0.37605
  4  2.71429e-08
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/219286': 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) = 185.284075098
delta logL = 18.5840725429

Extracting fit parameters...

4FGL J1923.5-2104
   Spectrum: LogParabola
1079         norm:  1.000e+06  6.987e-05  0.000e+00  1.000e+06 ( 1.000e-12)
1080        alpha:  5.000e+00  3.148e-09  0.000e+00  5.000e+00 ( 1.000e+00)
1081         beta:  1.392e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
1082           Eb:  8.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1368    Prefactor:  8.327e-15  2.714e-08  0.000e+00  1.000e+01 ( 1.000e+00)
1369        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1370        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1357   Normalization:  1.318e-01  3.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 42.49
Ra Dec: 290.876 -21.071
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 6.70e-01 +/- 3.90e-09
Energy Flux (Free Index): 9.27e+01 +/- 5.11e-07

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/219286/cmap_HighResolution_694742401_695001601_4FGL_J1923.5-2104_daily_bin1757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.20e-03', energy_flux2='9.27e+01', photon_flux_error='1.09e-12', dlogl='1.86e+01', energy_flux='2.85e+00', photon_flux2='6.70e-01', job_status='DONE', time_completed='2023-01-10 02:18:48.346731', photon_index_error2='0.00', photon_index2='5.00', ts='5.32', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', energy_flux_error2='5.11e-07', EG='0.13', time_epoch_completed='1673345928.35', return_code='0', job_id='219286', GAL2='0.00', EG2='0.13', return_code2='0', energy_flux_error='5.02e-10', photon_flux_error2='3.90e-09', ts2='42.49', photon_index='2.13' WHERE bin_id='1757' AND source_name='4FGL J1923.5-2104' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 10 02:18:48 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 219286: <4FGL_J1923.5-2104_daily_bin1757> in cluster <slac> Done

Job <4FGL_J1923.5-2104_daily_bin1757> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Jan 10 02:10:14 2023
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 10 02:10:35 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 10 02:10:35 2023
Terminated at Tue Jan 10 02:18:49 2023
Results reported at Tue Jan 10 02:18:49 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1923.5-2104_daily_bin1757 290.876 -21.071 694742401 695001601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1923.5-2104 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   410.46 sec.
    Max Memory :                                 1261 MB
    Average Memory :                             310.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   493 sec.
    Turnaround time :                            515 sec.

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

