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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1702
RA = 320.921, Dec = 5.592
tmin = 680486401, tmax = 680745601
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='257626', job_status='RUN', time_executed='2022-07-29 01:32:57.855011', time_epoch_executed='1659083577.86' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/257626

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/257626/ft1_4FGL_J2123.6+0535_daily_bin1702.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/257626/ft2_4FGL_J2123.6+0535_daily_bin1702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/257626/ft1_4FGL_J2123.6+0535_daily_bin1702.fits outfile=/scratch/kocevski/257626/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1702.fits ra=320.921 dec=5.592 rad=12.0 tmin=680486401.0 tmax=680745601.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.13
user 2.72
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/257626/ft2_4FGL_J2123.6+0535_daily_bin1702.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/257626/ft2_4FGL_J2123.6+0535_daily_bin1702.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/257626/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1702.fits evtable="EVENTS" outfile="/scratch/kocevski/257626/ft1_filtered_4FGL_J2123.6+0535_daily_bin1702.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 1.41
user 0.33
sys 0.18

Number of photons that the gtmktime cut: 195

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/257626/ft1_filtered_4FGL_J2123.6+0535_daily_bin1702.fits" evtable="EVENTS" scfile=/scratch/kocevski/257626/ft2_4FGL_J2123.6+0535_daily_bin1702.fits sctable="SC_DATA" outfile=/scratch/kocevski/257626/ltcube_680486401_680745601_4FGL_J2123.6+0535_daily_bin1702.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/257626/ft2_4FGL_J2123.6+0535_daily_bin1702.fits
.....................!
real 13.81
user 13.35
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/257626/ft1_filtered_4FGL_J2123.6+0535_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/257626/ft2_4FGL_J2123.6+0535_daily_bin1702.fits sctable="SC_DATA" expcube=/scratch/kocevski/257626/ltcube_680486401_680745601_4FGL_J2123.6+0535_daily_bin1702.fits outfile=/scratch/kocevski/257626/expmap_680486401_680745601_4FGL_J2123.6+0535_daily_bin1702.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/257626/ltcube_680486401_680745601_4FGL_J2123.6+0535_daily_bin1702.fits
.....................!
real 191.85
user 186.30
sys 4.93

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

Setting source of interest to:
4FGL J2123.6+0535 @ 320.921 5.592

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/257626/ft1_filtered_4FGL_J2123.6+0535_daily_bin1702.fits scfile=/scratch/kocevski/257626/ft2_4FGL_J2123.6+0535_daily_bin1702.fits outfile=/scratch/kocevski/257626/cmap_680486401_680745601_4FGL_J2123.6+0535_daily_bin1702.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=320.921 yref=5.592 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.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/257626/ft1_filtered_4FGL_J2123.6+0535_daily_bin1702.fits scfile=/scratch/kocevski/257626/ft2_4FGL_J2123.6+0535_daily_bin1702.fits outfile=/scratch/kocevski/257626/cmap_HighResolution_680486401_680745601_4FGL_J2123.6+0535_daily_bin1702.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=320.921 yref=5.592 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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/257626/ft1_filtered_4FGL_J2123.6+0535_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/257626/ft2_4FGL_J2123.6+0535_daily_bin1702.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/257626/Model_4FGL_J2123.6+0535_daily_bin1702.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/257626/ft1_filtered_4FGL_J2123.6+0535_daily_bin1702.fits......................!
real 34.61
user 33.22
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/257626/ft1_filtered_4FGL_J2123.6+0535_daily_bin1702.fits', '/scratch/kocevski/257626/ft2_4FGL_J2123.6+0535_daily_bin1702.fits', expMap='/scratch/kocevski/257626/expmap_680486401_680745601_4FGL_J2123.6+0535_daily_bin1702.fits', expCube='/scratch/kocevski/257626/ltcube_680486401_680745601_4FGL_J2123.6+0535_daily_bin1702.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/257626/Model_4FGL_J2123.6+0535_daily_bin1702.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2123.6+0535'

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  5.562e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.390e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/257626/ft1_filtered_4FGL_J2123.6+0535_daily_bin1702.fits
Spacecraft file(s): /scratch/kocevski/257626/ft2_4FGL_J2123.6+0535_daily_bin1702.fits
Exposure map: /scratch/kocevski/257626/expmap_680486401_680745601_4FGL_J2123.6+0535_daily_bin1702.fits
Exposure cube: /scratch/kocevski/257626/ltcube_680486401_680745601_4FGL_J2123.6+0535_daily_bin1702.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/257626/Model_4FGL_J2123.6+0535_daily_bin1702.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) = 2390.48486315

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    91.381       1.0000         .10000E-03   10000.    
     2 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.570       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19142E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.629       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.188       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .45597E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10459E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11774E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    46.147       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10507E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0602       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2390.471     FROM MIGRAD    STATUS=CONVERGED    635 CALLS     3537 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     91.413        104.47        .49120E-05    .46217E-04
   2  norm          .10000E-03    39.220       -.56641E-05** at limit **
   3  Prefactor     .10000E-03    15.371        .13406E-07** at limit **
   4  Prefactor     .10000E-03    58.173       -.54371E-04** at limit **
   5  Prefactor     .10000E-03    25.730        .62042E-06** at limit **
   6  Prefactor     15.567        58.088        .96481E-05    .58656E-04
   7  Prefactor     .10000E-03    50.267       -.73266E-05** at limit **
   8  Prefactor     .28112E-03    71.165       -.84586E-05** at limit **
   9  Prefactor     24.599        709.67       -.51691E-04   -.87264E-05
  10  Prefactor     33.185        78.679        .57760E-05   -.12388E-05
  11  Prefactor     .10000E-03    313.07        .13879E-03** at limit **
  12  Prefactor     .10000E-03    18.806        .11357E-06** at limit **
  13  Prefactor     .10000E-03    10.746        .20124E-06** at limit **
  14  Prefactor     .10000E-03    6.0252       -.70330E-08** at limit **
  15  Prefactor     .10000E-03    74.327        .29132E-04** at limit **
  16  Prefactor     .10000E-03    147.34        .11159E-04** at limit **
  17  Prefactor     .10000E-03    104.16       -.19390E-04** at limit **
  18  Prefactor     .10001E-03    107.53       -.34034E-04** at limit **
  19  norm          .10000E-03    2.8937       -.49515E-06** at limit **
  20  norm          46.122        41.329        .23246E-04   -.79102E-04
  21  Prefactor     .10003E-03    73.973        .30953E-04** at limit **
  22  Prefactor     .10000E-03    21.630       -.21837E-06** at limit **
  23  Prefactor     .10000E-03    48.090        .20427E-04** at limit **
  24  Prefactor     .10000E-03    48.750        .13355E-04** at limit **
  25  Normalizat    .10000E-01    .26280       -.12329E-05** at limit **
  26  Prefactor     1.0602        .10299       -.27154E-05    .54238E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 91.4131
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5665
  Prefactor  = 0.0001
  Prefactor  = 0.000281119
  Prefactor  = 24.5991
  Prefactor  = 33.185
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.000100001
  norm       = 46.1221
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.06019
 **********
 **   18 **HESSE 
 **********

 FCN=   2390.471     FROM HESSE     STATUS=OK           444 CALLS     3981 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     91.413        104.65        .42037E-04   -1.3793    
   2  norm          .10000E-03    39.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    58.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.567        58.177        .10150E-03   -1.4919    
   7  Prefactor     .10000E-03    50.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .28112E-03    80.117        .10756       -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.599        712.47        .80717E-04   -1.4716    
  10  Prefactor     33.185        78.711        .69557E-04   -1.4555    
  11  Prefactor     .10000E-03    313.81        .21202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.474        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.869        .15641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.0269        .11722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    74.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    147.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    104.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    108.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.9587        .16223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          46.122        41.285        .59023E-04   -1.4349    
  21  Prefactor     .10003E-03    75.693        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    48.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    48.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .26372        .64188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.0602        .10474        .13602E-03   -.90749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22821e-09
Minuit parameter uncertainties:
  1  104.86
  2  7.13951e-05
  3  1.03674e-05
  4  3.63702e-05
  5  0.000146544
  6  58.3903
  7  0.000224701
  8  0.241243
  9  268.369
  10  78.9586
  11  0.000305549
  12  2.93401e-05
  13  3.93035e-05
  14  4.76497e-06
  15  1.56227e-06
  16  1.24695e-05
  17  0.000211301
  18  0.00150844
  19  8.57688e-05
  20  41.3103
  21  0.00279797
  22  3.27295e-05
  23  0.000275905
  24  8.65662e-05
  25  2.67468e-06
  26  0.104756
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  3.318e+01  7.896e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.390e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.060e+00  1.048e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.000e-02  2.675e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.22
Ra Dec: 320.921 5.592
Photon Flux Upper Limit: 3.89e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/257626/likelihoodResults_680486401_680745601_4FGL_J2123.6+0535_daily_bin1702.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) = 2390.42884322
delta logL = 0.0419529558644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2390.42203788
delta logL = 0.0487582877336

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.346       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7738       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0577       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+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=   2390.422     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      256 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.332        71.390        .79569E-04    .34511E-03
   2  Index         2.7742        1.3876        .81011E-02    .18028E-03
   3  Normalizat    .10000E-01    .25212        .64188E-02** at limit **
   4  Prefactor     1.0577        .91474E-01    .13612E-03   -.12034E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.3321
  Index      = 2.77423
  Normalizat = 0.01
  Prefactor  = 1.05765
 **********
 **   18 **HESSE 
 **********

 FCN=   2390.422     FROM HESSE     STATUS=OK            23 CALLS      279 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.332        64.701        .15914E-04   -1.4701    
   2  Index         2.7742        1.2604        .32404E-03   -.46135    
   3  Normalizat    .10000E-01    .25214        .12838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0577        .91407E-01    .27223E-04   -.90832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42712e-09
Minuit parameter uncertainties:
  1  64.8807
  2  1.2777
  3  1.15439e-07
  4  0.0914207
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/257626': 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) = 2390.42203769
delta logL = 0.0487584839425

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  2.533e+01  6.488e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.774e+00  1.278e+00  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.058e+00  9.142e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.000e-02  1.154e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.22
Ra Dec: 320.921 5.592

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/257626/cmap_HighResolution_680486401_680745601_4FGL_J2123.6+0535_daily_bin1702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.01e-02', job_status='DONE', photon_flux_upper_limit='3.89e-07', time_completed='2022-07-29 01:41:05.208732', job_id='257626', GAL2='1.06', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1659084065.21', return_code2='0', ts='0.22', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='4.88e-02', ts2='0.32', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1702' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 29 01:41:05 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 257626: <4FGL_J2123.6+0535_daily_bin1702> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1702> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Jul 29 01:30:29 2022
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 29 01:32:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 29 01:32:18 2022
Terminated at Fri Jul 29 01:41:05 2022
Results reported at Fri Jul 29 01:41:05 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1702 320.921 5.592 680486401 680745601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2123.6+0535 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   487.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   529 sec.
    Turnaround time :                            636 sec.

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

