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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1720
RA = 320.921, Dec = 5.592
tmin = 685152001, tmax = 685411201
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='848654', job_status='RUN', time_executed='2022-09-21 00:54:53.149108', time_epoch_executed='1663746893.15' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1720'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/848654

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/848654/ft1_4FGL_J2123.6+0535_daily_bin1720.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/848654/ft2_4FGL_J2123.6+0535_daily_bin1720.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/848654/ft1_4FGL_J2123.6+0535_daily_bin1720.fits outfile=/scratch/kocevski/848654/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1720.fits ra=320.921 dec=5.592 rad=12.0 tmin=685152001.0 tmax=685411201.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.71
user 3.47
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/848654/ft2_4FGL_J2123.6+0535_daily_bin1720.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/848654/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1720.fits evtable="EVENTS" outfile="/scratch/kocevski/848654/ft1_filtered_4FGL_J2123.6+0535_daily_bin1720.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.54
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 430

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/848654/ft1_filtered_4FGL_J2123.6+0535_daily_bin1720.fits evtable="EVENTS" scfile=/scratch/kocevski/848654/ft2_4FGL_J2123.6+0535_daily_bin1720.fits sctable="SC_DATA" expcube=/scratch/kocevski/848654/ltcube_685152001_685411201_4FGL_J2123.6+0535_daily_bin1720.fits outfile=/scratch/kocevski/848654/expmap_685152001_685411201_4FGL_J2123.6+0535_daily_bin1720.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/848654/ltcube_685152001_685411201_4FGL_J2123.6+0535_daily_bin1720.fits
.....................!
real 191.68
user 185.51
sys 5.78

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/848654/ft1_filtered_4FGL_J2123.6+0535_daily_bin1720.fits scfile=/scratch/kocevski/848654/ft2_4FGL_J2123.6+0535_daily_bin1720.fits outfile=/scratch/kocevski/848654/cmap_685152001_685411201_4FGL_J2123.6+0535_daily_bin1720.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/848654/ft1_filtered_4FGL_J2123.6+0535_daily_bin1720.fits scfile=/scratch/kocevski/848654/ft2_4FGL_J2123.6+0535_daily_bin1720.fits outfile=/scratch/kocevski/848654/cmap_HighResolution_685152001_685411201_4FGL_J2123.6+0535_daily_bin1720.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.56
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/848654/ft1_filtered_4FGL_J2123.6+0535_daily_bin1720.fits', '/scratch/kocevski/848654/ft2_4FGL_J2123.6+0535_daily_bin1720.fits', expMap='/scratch/kocevski/848654/expmap_685152001_685411201_4FGL_J2123.6+0535_daily_bin1720.fits', expCube='/scratch/kocevski/848654/ltcube_685152001_685411201_4FGL_J2123.6+0535_daily_bin1720.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/848654/Model_4FGL_J2123.6+0535_daily_bin1720.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  0.000e+00  1.000e+06 ( 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/848654/ft1_filtered_4FGL_J2123.6+0535_daily_bin1720.fits
Spacecraft file(s): /scratch/kocevski/848654/ft2_4FGL_J2123.6+0535_daily_bin1720.fits
Exposure map: /scratch/kocevski/848654/expmap_685152001_685411201_4FGL_J2123.6+0535_daily_bin1720.fits
Exposure cube: /scratch/kocevski/848654/ltcube_685152001_685411201_4FGL_J2123.6+0535_daily_bin1720.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/848654/Model_4FGL_J2123.6+0535_daily_bin1720.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) = 4865.17816313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.392       1.0000          .0000       .10000E+07
     2 'norm      '    .20547E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    5.1266       1.0000          .0000       .10000E+07
     4 'Prefactor '    33.561       1.0000          .0000       .10000E+07
     5 'Prefactor '    .69680E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .11435E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    101.25       1.0000          .0000       .10000E+07
     8 'Prefactor '    .14834E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .15407E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    15.015       1.0000          .0000       .10000E+07
    11 'Prefactor '    .25902E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .15854E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    19.085       1.0000          .0000       .10000E+07
    14 'norm      '    .62245       1.0000          .0000       .10000E+07
    15 'norm      '    .16471E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .35737E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .66246E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .72560       1.0000          .0000       .10000E+07
    19 'Normalizat'    .99522       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .65152       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=   4865.164     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     1886 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.678        45.314       -.24837E-08   -.50717E-04
   2  norm           .0000        46.972        .13276E-06** at limit **
   3  Prefactor     5.0523        6.3159        .21915E-07    .11106E-04
   4  Prefactor     33.622        18.853       -.57543E-09   -.69821E-04
   5  Prefactor      .0000        10.565       -.22684E-08** at limit **
   6  Prefactor      .0000        8.0028        .45929E-09** at limit **
   7  Prefactor     105.33        77.175       -.14172E-07    .47748E-04
   8  Prefactor      .0000        15.092       -.15435E-08** at limit **
   9  Prefactor      .0000        16.465        .32161E-08** at limit **
  10  Prefactor     15.084        8.7782       -.66416E-08   -.25458E-03
  11  Prefactor      .0000        .68577        .62490E-09** at limit **
  12  Prefactor      .0000        9.4268       -.43129E-08** at limit **
  13  Prefactor     19.280        50.240        .30680E-06    .14398E-03
  14  norm          .63715        2.4769        .86724E-07    .90240E-04
  15  norm           .0000        23.159       -.96656E-07** at limit **
  16  Prefactor      .0000        11.538       -.41407E-06** at limit **
  17  Prefactor      .0000        11.059        .19473E-08** at limit **
  18  Prefactor     1.1138        156.04        .10423E-06    .12677E-04
  19  Normalizat    .99249        .26599        .14946E-05   -.48787E-04
  20  Prefactor     .65152        .10914       -.97684E-06    .72761E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.6783
  norm       = 0
  Prefactor  = 5.05232
  Prefactor  = 33.6222
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 105.328
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 15.0836
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 19.2797
  norm       = 0.63715
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.11381
  Normalizat = 0.992491
  Prefactor  = 0.651523
 **********
 **   18 **HESSE 
 **********

 FCN=   4865.164     FROM HESSE     STATUS=OK           289 CALLS     2175 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.678        45.252        .95955E-05   -1.5622    
   2  norm           .0000        47.702        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.0523        6.3196        .17752E-04   -1.5663    
   4  Prefactor     33.622        18.862        .69055E-05   -1.5592    
   5  Prefactor      .0000        10.541        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        8.0028        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     105.33        77.338        .39754E-05   -1.5503    
   8  Prefactor      .0000        15.097        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        16.468        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.084        8.7899        .10329E-04   -1.5630    
  11  Prefactor      .0000        .68616        .56409E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        9.4265        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.280        50.926        .91594E-05   -1.5620    
  14  norm          .63715        2.4599        .20445E-04   -1.5692    
  15  norm           .0000        23.239        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        11.847        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        11.073        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.1138        157.61        .23462E-04   -1.5687    
  19  Normalizat    .99249        .31316        .31822E-03   -.93282    
  20  Prefactor     .65152        .12833        .16478E-03   -1.0546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.44797e-11
Minuit parameter uncertainties:
  1  45.2524
  2  2.13142e-05
  3  6.31965
  4  18.8621
  5  1.79354e-05
  6  2.20355e-06
  7  77.339
  8  4.76236e-06
  9  1.77683e-06
  10  8.78987
  11  1.00028e-07
  12  4.46107e-06
  13  50.9267
  14  2.45991
  15  3.76817e-05
  16  3.09865e-05
  17  6.67581e-07
  18  26.4993
  19  0.313737
  20  0.128389
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  0.000e+00  4.762e-06  0.000e+00  1.000e+06 ( 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:  6.515e-01  1.284e-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:  9.925e-01  3.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 320.921 5.592
Photon Flux Upper Limit: 9.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/848654/likelihoodResults_685152001_685411201_4FGL_J2123.6+0535_daily_bin1720.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) = 4865.19544908
delta logL = -0.0319398029887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4865.16350929
delta logL = -1.33059074869e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10658E-06   1.0000          .0000       .10000E+07
     2 'Index     '    2.8366       1.0000          .0000       10.000    
     3 'Normalizat'    .99252       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65151       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.

 FCN=   4864.361     FROM MIGRAD    STATUS=CONVERGED    173 CALLS      333 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20042E-03    .59368E-03    .21592E-04** at limit **
   2  Index         8.4747        1.1403        .16891        .12293E-03
   3  Normalizat    .86858        .26040        .76300E-01   -.16952E-04
   4  Prefactor     .68825        .10868        .41752E-01   -.40554E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000200419
  Index      = 8.47468
  Normalizat = 0.868576
  Prefactor  = 0.68825
 **********
 **   18 **HESSE 
 **********

 FCN=   4864.361     FROM HESSE     STATUS=OK            35 CALLS      368 TOTAL
                     EDM=   .37E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20042E-03    .14202E-01    .88335E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.4747        9.1772        .66816E-02    .76833    
   3  Normalizat    .86858        .31142        .33768E-03   -.97573    
   4  Prefactor     .68825        .13164        .16064E-03   -1.0399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69847e-06
Minuit parameter uncertainties:
  1  0.00337425
  2  7.62007
  3  0.312067
  4  0.131701
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/848654': 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) = 4864.36107114
delta logL = 0.802438140884

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  2.004e-04  3.374e-03  0.000e+00  1.000e+06 ( 1.000e-13)
314        Index:  8.475e+00  7.620e+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:  6.882e-01  1.317e-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:  8.686e-01  3.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.75
Ra Dec: 320.921 5.592
Photon Index (Free Index): 8.47 +/- 7.62
Photon Flux (Free Index): 1.03e-07 +/- 3.37e-06
Energy Flux (Free Index): 1.18e-05 +/- 3.88e-04

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/848654/cmap_HighResolution_685152001_685411201_4FGL_J2123.6+0535_daily_bin1720.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.62e-03', comment='SUCCESS', energy_flux2='1.18e-05', dlogl='8.02e-01', photon_flux2='1.03e-07', job_status='DONE', time_completed='2022-09-21 01:03:59.068616', photon_index_error2='7.62', photon_index2='8.47', ts='0.00', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='9.86e-08', energy_flux_error2='3.88e-04', EG='0.99', time_epoch_completed='1663747439.07', return_code='0', job_id='848654', GAL2='0.69', EG2='0.87', return_code2='0', photon_flux_error2='3.37e-06', ts2='1.75', photon_index='2.39' WHERE bin_id='1720' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 21 01:03:59 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 848654: <4FGL_J2123.6+0535_daily_bin1720> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1720> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Sep 21 00:50:48 2022
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 21 00:54:03 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 21 00:54:03 2022
Terminated at Wed Sep 21 01:03:59 2022
Results reported at Wed Sep 21 01:03:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1720 320.921 5.592 685152001 685411201 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 :                                   548.02 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             329.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   596 sec.
    Turnaround time :                            791 sec.

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

