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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1766
RA = 320.921, Dec = 5.592
tmin = 697075201, tmax = 697334401
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='859613', job_status='RUN', time_executed='2023-02-06 01:26:49.170140', time_epoch_executed='1675675609.17' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/859613

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/859613/ft1_4FGL_J2123.6+0535_daily_bin1766.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/859613/ft2_4FGL_J2123.6+0535_daily_bin1766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/859613/ft1_4FGL_J2123.6+0535_daily_bin1766.fits outfile=/scratch/kocevski/859613/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1766.fits ra=320.921 dec=5.592 rad=12.0 tmin=697075201.0 tmax=697334401.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.72
user 3.47
sys 0.22

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

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

Number of photons that the gtmktime cut: 636

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/859613/ft1_filtered_4FGL_J2123.6+0535_daily_bin1766.fits" evtable="EVENTS" scfile=/scratch/kocevski/859613/ft2_4FGL_J2123.6+0535_daily_bin1766.fits sctable="SC_DATA" outfile=/scratch/kocevski/859613/ltcube_697075201_697334401_4FGL_J2123.6+0535_daily_bin1766.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/859613/ft2_4FGL_J2123.6+0535_daily_bin1766.fits
.....................!
real 16.08
user 15.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/859613/ft1_filtered_4FGL_J2123.6+0535_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/859613/ft2_4FGL_J2123.6+0535_daily_bin1766.fits sctable="SC_DATA" expcube=/scratch/kocevski/859613/ltcube_697075201_697334401_4FGL_J2123.6+0535_daily_bin1766.fits outfile=/scratch/kocevski/859613/expmap_697075201_697334401_4FGL_J2123.6+0535_daily_bin1766.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/859613/ltcube_697075201_697334401_4FGL_J2123.6+0535_daily_bin1766.fits
.....................!
real 192.96
user 187.05
sys 5.26

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/859613/ft1_filtered_4FGL_J2123.6+0535_daily_bin1766.fits scfile=/scratch/kocevski/859613/ft2_4FGL_J2123.6+0535_daily_bin1766.fits outfile=/scratch/kocevski/859613/cmap_697075201_697334401_4FGL_J2123.6+0535_daily_bin1766.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/859613/ft1_filtered_4FGL_J2123.6+0535_daily_bin1766.fits scfile=/scratch/kocevski/859613/ft2_4FGL_J2123.6+0535_daily_bin1766.fits outfile=/scratch/kocevski/859613/cmap_HighResolution_697075201_697334401_4FGL_J2123.6+0535_daily_bin1766.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/859613/ft1_filtered_4FGL_J2123.6+0535_daily_bin1766.fits', '/scratch/kocevski/859613/ft2_4FGL_J2123.6+0535_daily_bin1766.fits', expMap='/scratch/kocevski/859613/expmap_697075201_697334401_4FGL_J2123.6+0535_daily_bin1766.fits', expCube='/scratch/kocevski/859613/ltcube_697075201_697334401_4FGL_J2123.6+0535_daily_bin1766.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/859613/Model_4FGL_J2123.6+0535_daily_bin1766.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/859613/ft1_filtered_4FGL_J2123.6+0535_daily_bin1766.fits
Spacecraft file(s): /scratch/kocevski/859613/ft2_4FGL_J2123.6+0535_daily_bin1766.fits
Exposure map: /scratch/kocevski/859613/expmap_697075201_697334401_4FGL_J2123.6+0535_daily_bin1766.fits
Exposure cube: /scratch/kocevski/859613/ltcube_697075201_697334401_4FGL_J2123.6+0535_daily_bin1766.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/859613/Model_4FGL_J2123.6+0535_daily_bin1766.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) = 6794.20171452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.515       1.0000          .0000       .10000E+07
     2 'norm      '    9.6191       1.0000          .0000       .10000E+07
     3 'Prefactor '    .87627E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    9.4477       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.9230       1.0000          .0000       .10000E+07
     6 'Prefactor '    .55177E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    33.019       1.0000          .0000       .10000E+07
     8 'Prefactor '    .27922       1.0000          .0000       .10000E+07
     9 'Prefactor '    .34923       1.0000          .0000       .10000E+07
    10 'Prefactor '    .78607E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .20294E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .45411E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    76.367       1.0000          .0000       .10000E+07
    14 'norm      '    2.3227       1.0000          .0000       .10000E+07
    15 'norm      '    11.114       1.0000          .0000       .10000E+07
    16 'Prefactor '    .26201E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .31882E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    67.428       1.0000          .0000       .10000E+07
    19 'Normalizat'    .84386       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93069       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6794.081     FROM MIGRAD    STATUS=CONVERGED    178 CALLS     1611 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.934        38.121        .26177E-07    .10307    
   2  norm          9.6417        8.2604        .82905E-10   -.14423E-02
   3  Prefactor     .83267E-09    6.1404        .12364E-06** at limit **
   4  Prefactor     9.5326        13.257        .26457E-07    .37544E-02
   5  Prefactor     2.1901        50.862       -.41344E-06   -.48444E-02
   6  Prefactor     .14988E-08    11.672        .23548E-06** at limit **
   7  Prefactor     36.244        33.197       -.89638E-07    .20435E-03
   8  Prefactor     .88440        120.54       -.11176E-05    .72163E-02
   9  Prefactor     2.4976        171.58        .18458E-06    .97996E-02
  10  Prefactor      .0000        7.9181        .61659E-07** at limit **
  11  Prefactor     .55511E-10    9.5840       -.47087E-07** at limit **
  12  Prefactor     .11182E-05    36.771        .17223E-06** at limit **
  13  Prefactor     81.753        48.194       -.20366E-06    .79554E-01
  14  norm          2.3535        2.4065        .97705E-08   -.24713E-03
  15  norm          10.565        9.8260        .59910E-07    .40690E-01
  16  Prefactor     .55511E-10    4.9952        .12866E-06** at limit **
  17  Prefactor     .11102E-09    23.478       -.79872E-07** at limit **
  18  Prefactor     69.224        23.497       -.66933E-07   -.25194    
  19  Normalizat    .83024        .29459        .14340E-06   -.16255E-03
  20  Prefactor     .93382        .12636       -.21956E-06   -.31957E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.9338
  norm       = 9.64169
  Prefactor  = 8.32667e-10
  Prefactor  = 9.53262
  Prefactor  = 2.19011
  Prefactor  = 1.4988e-09
  Prefactor  = 36.244
  Prefactor  = 0.884396
  Prefactor  = 2.49763
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 1.11816e-06
  Prefactor  = 81.753
  norm       = 2.35347
  norm       = 10.5646
  Prefactor  = 5.55112e-11
  Prefactor  = 1.11022e-10
  Prefactor  = 69.2239
  Normalizat = 0.830244
  Prefactor  = 0.933816
 **********
 **   18 **HESSE 
 **********

 FCN=   6794.081     FROM HESSE     STATUS=OK           353 CALLS     1964 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.934        60.692        .15161E-03   -1.5580    
   2  norm          9.6417        8.4711        .32287E-03   -1.5646    
   3  Prefactor     .83267E-09    6.1402        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.5326        13.297        .32580E-03   -1.5646    
   5  Prefactor     2.1901        55.260        .74895E-03   -1.5678    
   6  Prefactor     .14988E-08    11.717        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     36.244        57.849        .17405E-03   -1.5588    
   8  Prefactor     .88440        11.842        .15654E-01   -1.5689    
   9  Prefactor     2.4976        234.20        .95621E-03   -1.5676    
  10  Prefactor      .0000        7.9575        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    1.6489        .54369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .11182E-05    37.301        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     81.753        52.290        .11444E-03   -1.5527    
  14  norm          2.3535        2.4737        .67275E-03   -1.5677    
  15  norm          10.565        20.652        .30027E-03   -1.5643    
  16  Prefactor     .55511E-10    4.9802        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11102E-09    6.1886        .10850E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     69.224        34.608        .12179E-03   -1.5542    
  19  Normalizat    .83024        .25218        .82864E-01   -.98956    
  20  Prefactor     .93382        .10485        .45395E-01   -.94969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43913e-06
Minuit parameter uncertainties:
  1  60.6932
  2  8.47107
  3  0.000142702
  4  13.2967
  5  22.0026
  6  0.00026421
  7  57.8497
  8  6.47253
  9  48.3734
  10  1.62815e-05
  11  1.8442e-05
  12  0.0129163
  13  52.2901
  14  2.47372
  15  20.6521
  16  2.84158e-05
  17  4.73232e-05
  18  34.6078
  19  0.252535
  20  0.104871
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  8.844e-01  6.473e+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

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.338e-01  1.049e-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.302e-01  2.525e-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: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/859613/likelihoodResults_697075201_697334401_4FGL_J2123.6+0535_daily_bin1766.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) = 6793.99229968
delta logL = 0.0882941782402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6793.98717271
delta logL = 0.0934211460899

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95081       1.0000          .0000       .10000E+07
     2 'Index     '    3.7715       1.0000          .0000       10.000    
     3 'Normalizat'    .80119       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94140       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6793.987     FROM MIGRAD    STATUS=FAILED        99 CALLS      281 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94761        254.85        .84618E-04    .10989E-01
   2  Index         3.7736        6.5309        .97424E-02    .30184E-03
   3  Normalizat    .80119        .18855        .37306E-03    .76246E-04
   4  Prefactor     .94138        .87316E-01    .16023E-03    .22088E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6793.987     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      374 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94761        254.85        .22798E-04    .10989E-01
   2  Index         3.7736        6.5309        .26071E-02    .30184E-03
   3  Normalizat    .80119        .18855        .25680E-03    .76246E-04
   4  Prefactor     .94138        .87316E-01    .71943E-04    .22088E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6793.987     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      405 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94760        14.313        .16924E-04   -.97339E-03
   2  Index         3.7736        3.3922        .19485E-02   -.78651E-05
   3  Normalizat    .80119        .27540        .14922E-04    .71919E-04
   4  Prefactor     .94138        .12570        .32046E-04    .20960E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.947601
  Index      = 3.77361
  Normalizat = 0.801194
  Prefactor  = 0.941383
 **********
 **   18 **HESSE 
 **********

 FCN=   6793.987     FROM HESSE     STATUS=OK            23 CALLS      428 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94760        7.7188        .67694E-06   -1.5688    
   2  Index         3.7736        2.6118        .77940E-04   -.24781    
   3  Normalizat    .80119        .27546        .29845E-05   -1.0002    
   4  Prefactor     .94138        .12567        .64091E-05   -.94710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65914e-11
Minuit parameter uncertainties:
  1  5.40902
  2  2.75821
  3  0.275936
  4  0.125709
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/859613': 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) = 6793.98717233
delta logL = 0.0934215264133

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  9.476e-01  5.409e+00  0.000e+00  1.000e+06 ( 1.000e-13)
314        Index:  3.774e+00  2.758e+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:  9.414e-01  1.257e-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.012e-01  2.759e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/859613/cmap_HighResolution_697075201_697334401_4FGL_J2123.6+0535_daily_bin1766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.81e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2023-02-06 01:37:05.694652', job_id='859613', GAL2='0.94', fit_tolerance='1e-08', EG2='0.80', EG='0.83', time_epoch_completed='1675676225.69', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='9.34e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1766' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb  6 01:37:05 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 859613: <4FGL_J2123.6+0535_daily_bin1766> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1766> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Feb  6 01:25:19 2023
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb  6 01:26:17 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb  6 01:26:17 2023
Terminated at Mon Feb  6 01:37:06 2023
Results reported at Mon Feb  6 01:37:06 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1766 320.921 5.592 697075201 697334401 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 :                                   618.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            707 sec.

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

