/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 70 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 = 7355
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1923.5-2104_daily_bin1511
RA = 290.876, Dec = -21.071
tmin = 630979201, tmax = 631238401
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='887687', job_status='RUN', time_executed='2021-09-22 20:35:11.168739', time_epoch_executed='1632368111.17' WHERE source_name='4FGL J1923.5-2104' and cadence='daily' and bin_id='1511'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/887687

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/887687/ft1_4FGL_J1923.5-2104_daily_bin1511.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/887687/ft2_4FGL_J1923.5-2104_daily_bin1511.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/887687/ft1_4FGL_J1923.5-2104_daily_bin1511.fits outfile=/scratch/kocevski/887687/ft1_filteredMKT_4FGL_J1923.5-2104_daily_bin1511.fits ra=290.876 dec=-21.071 rad=12.0 tmin=630979201.0 tmax=631238401.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.39
user 2.17
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/887687/ft2_4FGL_J1923.5-2104_daily_bin1511.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/887687/ft1_filteredMKT_4FGL_J1923.5-2104_daily_bin1511.fits evtable="EVENTS" outfile="/scratch/kocevski/887687/ft1_filtered_4FGL_J1923.5-2104_daily_bin1511.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.45
user 0.31
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/887687/ft1_filtered_4FGL_J1923.5-2104_daily_bin1511.fits" evtable="EVENTS" scfile=/scratch/kocevski/887687/ft2_4FGL_J1923.5-2104_daily_bin1511.fits sctable="SC_DATA" outfile=/scratch/kocevski/887687/ltcube_630979201_631238401_4FGL_J1923.5-2104_daily_bin1511.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/887687/ft2_4FGL_J1923.5-2104_daily_bin1511.fits
.....................!
real 14.28
user 13.93
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/887687/ft1_filtered_4FGL_J1923.5-2104_daily_bin1511.fits evtable="EVENTS" scfile=/scratch/kocevski/887687/ft2_4FGL_J1923.5-2104_daily_bin1511.fits sctable="SC_DATA" expcube=/scratch/kocevski/887687/ltcube_630979201_631238401_4FGL_J1923.5-2104_daily_bin1511.fits outfile=/scratch/kocevski/887687/expmap_630979201_631238401_4FGL_J1923.5-2104_daily_bin1511.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/887687/ltcube_630979201_631238401_4FGL_J1923.5-2104_daily_bin1511.fits
.....................!
real 156.57
user 152.23
sys 3.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 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_archive_v18/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/887687/ft1_filtered_4FGL_J1923.5-2104_daily_bin1511.fits scfile=/scratch/kocevski/887687/ft2_4FGL_J1923.5-2104_daily_bin1511.fits outfile=/scratch/kocevski/887687/cmap_630979201_631238401_4FGL_J1923.5-2104_daily_bin1511.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.47
user 0.34
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/887687/ft1_filtered_4FGL_J1923.5-2104_daily_bin1511.fits scfile=/scratch/kocevski/887687/ft2_4FGL_J1923.5-2104_daily_bin1511.fits outfile=/scratch/kocevski/887687/cmap_HighResolution_630979201_631238401_4FGL_J1923.5-2104_daily_bin1511.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.50
user 0.33
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/887687/ft1_filtered_4FGL_J1923.5-2104_daily_bin1511.fits evtable="EVENTS" scfile=/scratch/kocevski/887687/ft2_4FGL_J1923.5-2104_daily_bin1511.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/887687/Model_4FGL_J1923.5-2104_daily_bin1511.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/887687/ft1_filtered_4FGL_J1923.5-2104_daily_bin1511.fits.......................!
real 25.95
user 24.87
sys 1.03

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/887687/ft1_filtered_4FGL_J1923.5-2104_daily_bin1511.fits', '/scratch/kocevski/887687/ft2_4FGL_J1923.5-2104_daily_bin1511.fits', expMap='/scratch/kocevski/887687/expmap_630979201_631238401_4FGL_J1923.5-2104_daily_bin1511.fits', expCube='/scratch/kocevski/887687/ltcube_630979201_631238401_4FGL_J1923.5-2104_daily_bin1511.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/887687/Model_4FGL_J1923.5-2104_daily_bin1511.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  1.000e-04  1.000e+04 ( 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  0.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/887687/ft1_filtered_4FGL_J1923.5-2104_daily_bin1511.fits
Spacecraft file(s): /scratch/kocevski/887687/ft2_4FGL_J1923.5-2104_daily_bin1511.fits
Exposure map: /scratch/kocevski/887687/expmap_630979201_631238401_4FGL_J1923.5-2104_daily_bin1511.fits
Exposure cube: /scratch/kocevski/887687/ltcube_630979201_631238401_4FGL_J1923.5-2104_daily_bin1511.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/887687/Model_4FGL_J1923.5-2104_daily_bin1511.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) = 1580.54420783

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10000.       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10197E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10652E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.670       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.853       1.0000         .10000E-03   10000.    
    15 'Prefactor '    72.148       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.9611       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6173       1.0000         .10000E-03   10000.    
    18 'norm      '    3.8813       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1433       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=   1580.544     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     2419 TOTAL
                     EDM=   .96E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        432.59        .49176E-06** at limit **
   2  Prefactor     .10007E-03    2028.9       -.54182E-05** at limit **
   3  norm          .10000E-03    367.05        .60832E-07** at limit **
   4  norm          .10000E-03    4.7477        .20519E-07** at limit **
   5  Prefactor     .10000E-03    176.84        .47640E-06** at limit **
   6  norm          .10000E-03    82.259       -.17935E-06** at limit **
   7  Prefactor     .10000E-03    135.64       -.80174E-07** at limit **
   8  Prefactor     .10000E-03    68.050        .20555E-06** at limit **
   9  norm          .10000E-03    70.396        .52767E-06** at limit **
  10  norm          .10000E-03    14.325        .17640E-07** at limit **
  11  Prefactor     .10000E-03    17.957        .40647E-07** at limit **
  12  Prefactor     18.671        52.479        .52042E-06    .66800E-05
  13  Prefactor     .10000E-03    63.086       -.10277E-06** at limit **
  14  Prefactor     10.832        762.53        .10275E-04    .51396E-05
  15  Prefactor     72.168        193.95       -.76060E-06    .91223E-05
  16  Prefactor     2.9617        9.8980       -.11301E-05   -.44802E-04
  17  Prefactor     3.6393        176.10        .40243E-05    .14340E-04
  18  norm          3.8852        40.495        .12642E-04    .34181E-05
  19  Normalizat    .10000E-01    .32413       -.30803E-05** at limit **
  20  Prefactor     1.1433        .14534       -.12638E-05    .11911E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  Prefactor  = 0.000100074
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6711
  Prefactor  = 0.0001
  Prefactor  = 10.8316
  Prefactor  = 72.1677
  Prefactor  = 2.96175
  Prefactor  = 3.63934
  norm       = 3.88519
  Normalizat = 0.01
  Prefactor  = 1.14328
 **********
 **   18 **HESSE 
 **********

 FCN=   1580.544     FROM HESSE     STATUS=OK           283 CALLS     2702 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        432.71        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10007E-03    2034.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    367.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.7621        .84611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    176.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    82.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    135.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    68.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    71.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    14.328        .14700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.175        .16458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.671        52.518        .92695E-04   -1.4843    
  13  Prefactor     .10000E-03    63.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.832        680.95        .12161E-03   -1.5050    
  15  Prefactor     72.168        190.27        .47264E-04   -1.4007    
  16  Prefactor     2.9617        8.6330        .11182E-03   -1.5364    
  17  Prefactor     3.6393        139.87        .21244E-03   -1.5326    
  18  norm          3.8852        39.911        .10241E-02   -1.5314    
  19  Normalizat    .10000E-01    .35745        .12766E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1433        .13992        .14234E-03   -.88095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54311e-10
Minuit parameter uncertainties:
  1  0.000992518
  2  0.0254399
  3  0.000106759
  4  2.76775e-06
  5  0.000625391
  6  0.000166229
  7  0.000128544
  8  0.000125885
  9  0.000141686
  10  4.22418e-06
  11  1.67447e-05
  12  52.648
  13  6.52091e-05
  14  173.875
  15  191.913
  16  8.63659
  17  45.2371
  18  24.9258
  19  5.32931e-06
  20  0.139968
Done.

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

Extracting fit parameters...

4FGL J1923.5-2104
   Spectrum: LogParabola
1079         norm:  1.000e-04  4.224e-06  1.000e-04  1.000e+04 ( 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  0.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.143e+00  1.400e-01  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.000e-02  5.329e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 290.876 -21.071
Photon Flux Upper Limit: 4.74e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.18e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/887687/likelihoodResults_630979201_631238401_4FGL_J1923.5-2104_daily_bin1511.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) = 1580.5441896
delta logL = -0.000333572511863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1580.54385623
delta logL = -2.02607225219e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1217       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1432       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.

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

 FCN=   1580.544     FROM MIGRAD    STATUS=FAILED        91 CALLS      240 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6538.3        .14736E-02** at limit **
   2  alpha         1.8443        3.1136        .16705       -.11722E-07
   3  Normalizat    .10000E-01    .30432        .12766E-01** at limit **
   4  Prefactor     1.1433        .10754        .14234E-03    .20448E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1580.544     FROM SIMPLEX   STATUS=UNCHANGED    193 CALLS      433 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6538.3        .52919E-03** at limit **
   2  alpha         1.8443        3.1136        .33513E-07   -.11722E-07
   3  Normalizat    .10000E-01    .30432        .14359E-02** at limit **
   4  Prefactor     1.1433        .10754        .32735E-09    .20448E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1580.544     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      461 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.015        .29473E-03** at limit **
   2  alpha         1.8483        3.4061        .66821E-02    .26031E-07
   3  Normalizat    .10000E-01    .35747        .25533E-02** at limit **
   4  Prefactor     1.1433        .11663        .28468E-04    .20427E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.84827
  Normalizat = 0.01
  Prefactor  = 1.14328
 **********
 **   18 **HESSE 
 **********

 FCN=   1580.544     FROM HESSE     STATUS=OK            23 CALLS      484 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.013        .58945E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8483        3.3862        .13364E-02   -.26374    
   3  Normalizat    .10000E-01    .35747        .51065E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1433        .11663        .56935E-05   -.88095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04491e-10
Minuit parameter uncertainties:
  1  0.000106215
  2  504.19
  3  1.85537e-06
  4  0.116652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/887687': 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) = 1580.54385587
delta logL = 1.59007413458e-07

Extracting fit parameters...

4FGL J1923.5-2104
   Spectrum: LogParabola
1079         norm:  1.000e-04  1.062e-04  1.000e-04  1.000e+04 ( 1.000e-12)
1080        alpha:  1.848e+00  5.042e+02  0.000e+00  5.000e+00 ( 1.000e+00)
1081         beta:  1.392e-01  0.000e+00  0.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.143e+00  1.167e-01  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.000e-02  1.855e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 290.876 -21.071

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/887687/cmap_HighResolution_630979201_631238401_4FGL_J1923.5-2104_daily_bin1511.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.18e-04', job_status='DONE', photon_flux_upper_limit='4.74e-07', time_completed='2021-09-22 20:42:42.879159', job_id='887687', GAL2='1.14', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632368562.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1511' AND source_name='4FGL J1923.5-2104' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 22 20:42:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 887687: <4FGL_J1923.5-2104_daily_bin1511> in cluster <slac> Done

Job <4FGL_J1923.5-2104_daily_bin1511> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 22 20:32:41 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 22 20:33:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 22 20:33:52 2021
Terminated at Wed Sep 22 20:42:43 2021
Results reported at Wed Sep 22 20:42:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1923.5-2104_daily_bin1511 290.876 -21.071 630979201 631238401 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 :                                   449.27 sec.
    Max Memory :                                 1262 MB
    Average Memory :                             249.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   531 sec.
    Turnaround time :                            602 sec.

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

