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


Performing analysis on: 4FGL_J2121.0+1901_daily_bin1725
RA = 320.26, Dec = 19.0324
tmin = 686448001, tmax = 686707201
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='892766', job_status='RUN', time_executed='2022-10-06 01:08:00.443705', time_epoch_executed='1665043680.44' WHERE source_name='4FGL J2121.0+1901' and cadence='daily' and bin_id='1725'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/892766

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/892766/ft1_4FGL_J2121.0+1901_daily_bin1725.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/892766/ft2_4FGL_J2121.0+1901_daily_bin1725.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/892766/ft1_4FGL_J2121.0+1901_daily_bin1725.fits outfile=/scratch/kocevski/892766/ft1_filteredMKT_4FGL_J2121.0+1901_daily_bin1725.fits ra=320.26 dec=19.0324 rad=12.0 tmin=686448001.0 tmax=686707201.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 4.60
user 4.34
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/892766/ft2_4FGL_J2121.0+1901_daily_bin1725.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/892766/ft2_4FGL_J2121.0+1901_daily_bin1725.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/892766/ft1_filteredMKT_4FGL_J2121.0+1901_daily_bin1725.fits evtable="EVENTS" outfile="/scratch/kocevski/892766/ft1_filtered_4FGL_J2121.0+1901_daily_bin1725.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.51
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 858

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/892766/ft1_filtered_4FGL_J2121.0+1901_daily_bin1725.fits" evtable="EVENTS" scfile=/scratch/kocevski/892766/ft2_4FGL_J2121.0+1901_daily_bin1725.fits sctable="SC_DATA" outfile=/scratch/kocevski/892766/ltcube_686448001_686707201_4FGL_J2121.0+1901_daily_bin1725.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/892766/ft2_4FGL_J2121.0+1901_daily_bin1725.fits
.....................!
real 12.64
user 12.25
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/892766/ft1_filtered_4FGL_J2121.0+1901_daily_bin1725.fits evtable="EVENTS" scfile=/scratch/kocevski/892766/ft2_4FGL_J2121.0+1901_daily_bin1725.fits sctable="SC_DATA" expcube=/scratch/kocevski/892766/ltcube_686448001_686707201_4FGL_J2121.0+1901_daily_bin1725.fits outfile=/scratch/kocevski/892766/expmap_686448001_686707201_4FGL_J2121.0+1901_daily_bin1725.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/892766/ltcube_686448001_686707201_4FGL_J2121.0+1901_daily_bin1725.fits
.....................!
real 191.20
user 185.19
sys 5.43

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 Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 193 point sources and 1 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 J2121.0+1901 @ 320.26 19.0324

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/892766/ft1_filtered_4FGL_J2121.0+1901_daily_bin1725.fits scfile=/scratch/kocevski/892766/ft2_4FGL_J2121.0+1901_daily_bin1725.fits outfile=/scratch/kocevski/892766/cmap_686448001_686707201_4FGL_J2121.0+1901_daily_bin1725.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.26 yref=19.0324 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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/892766/ft1_filtered_4FGL_J2121.0+1901_daily_bin1725.fits scfile=/scratch/kocevski/892766/ft2_4FGL_J2121.0+1901_daily_bin1725.fits outfile=/scratch/kocevski/892766/cmap_HighResolution_686448001_686707201_4FGL_J2121.0+1901_daily_bin1725.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.26 yref=19.0324 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.60
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/892766/ft1_filtered_4FGL_J2121.0+1901_daily_bin1725.fits evtable="EVENTS" scfile=/scratch/kocevski/892766/ft2_4FGL_J2121.0+1901_daily_bin1725.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/892766/Model_4FGL_J2121.0+1901_daily_bin1725.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/892766/ft1_filtered_4FGL_J2121.0+1901_daily_bin1725.fits.....................!
real 137.77
user 136.25
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/892766/ft1_filtered_4FGL_J2121.0+1901_daily_bin1725.fits', '/scratch/kocevski/892766/ft2_4FGL_J2121.0+1901_daily_bin1725.fits', expMap='/scratch/kocevski/892766/expmap_686448001_686707201_4FGL_J2121.0+1901_daily_bin1725.fits', expCube='/scratch/kocevski/892766/ltcube_686448001_686707201_4FGL_J2121.0+1901_daily_bin1725.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/892766/Model_4FGL_J2121.0+1901_daily_bin1725.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2121.0+1901'

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  3.670e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
391        alpha:  2.156e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
392         beta:  5.740e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
393           Eb:  8.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/892766/ft1_filtered_4FGL_J2121.0+1901_daily_bin1725.fits
Spacecraft file(s): /scratch/kocevski/892766/ft2_4FGL_J2121.0+1901_daily_bin1725.fits
Exposure map: /scratch/kocevski/892766/expmap_686448001_686707201_4FGL_J2121.0+1901_daily_bin1725.fits
Exposure cube: /scratch/kocevski/892766/ltcube_686448001_686707201_4FGL_J2121.0+1901_daily_bin1725.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/892766/Model_4FGL_J2121.0+1901_daily_bin1725.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) = 9132.90220898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.721       1.0000          .0000       .10000E+07
     2 'Prefactor '    .17348E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .65221       1.0000          .0000       .10000E+07
     4 'Prefactor '    26.428       1.0000          .0000       .10000E+07
     5 'Prefactor '    .75621E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .88647       1.0000          .0000       .10000E+07
     7 'Prefactor '    .17427E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    6.3681       1.0000          .0000       .10000E+07
     9 'norm      '    6.3138       1.0000          .0000       .10000E+07
    10 'norm      '    7.5176       1.0000          .0000       .10000E+07
    11 'Prefactor '    .34954E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .11355E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .29143E-07   1.0000          .0000       .10000E+07
    14 'norm      '    4.9164       1.0000          .0000       .10000E+07
    15 'Prefactor '    .16638E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    205.81       1.0000          .0000       .10000E+07
    17 'norm      '    .43546       1.0000          .0000       .10000E+07
    18 'Normalizat'    .96180       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96839       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9132.759     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     1491 TOTAL
                     EDM=   .24E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.711        9.4050       -.96145E-08    .25039E-04
   2  Prefactor      .0000        23.751       -.30930E-07** at limit **
   3  Prefactor     .10078E-04    136.96       -.19769E-06** at limit **
   4  Prefactor     26.664        20.359       -.85818E-08    .53693E-04
   5  Prefactor      .0000        15.311       -.14972E-06** at limit **
   6  Prefactor     .85050        44.010        .55558E-06   -.10515E-03
   7  Prefactor     .13878E-08    233.26        .51299E-07** at limit **
   8  Prefactor     6.5043        7.1470       -.38553E-07    .49794E-04
   9  norm          6.1396        7.9283        .36446E-07    .58799E-04
  10  norm          7.5477        4.9142        .49966E-08    .25928E-04
  11  Prefactor      .0000        7.0211        .71675E-07** at limit **
  12  Prefactor      .0000        56.957       -.29012E-06** at limit **
  13  norm           .0000        .74247       -.13735E-07** at limit **
  14  norm          4.9227        2.8622        .51229E-08    .66568E-04
  15  Prefactor      .0000        10.200       -.10049E-06** at limit **
  16  Prefactor     210.52        72.712        .41638E-07    .10155E-01
  17  norm          .43479        .85586        .40803E-07    .10195E-03
  18  Normalizat    .95799        .29625       -.12282E-05   -.78755E-06
  19  Prefactor     .96906        .10400       -.55426E-08   -.32945E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 11.7113
  Prefactor  = 0
  Prefactor  = 1.00784e-05
  Prefactor  = 26.6642
  Prefactor  = 0
  Prefactor  = 0.850496
  Prefactor  = 1.38778e-09
  Prefactor  = 6.50433
  norm       = 6.13957
  norm       = 7.54769
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  norm       = 4.92271
  Prefactor  = 0
  Prefactor  = 210.518
  norm       = 0.434793
  Normalizat = 0.957987
  Prefactor  = 0.969058
 **********
 **   18 **HESSE 
 **********

 FCN=   9132.759     FROM HESSE     STATUS=OK           308 CALLS     1799 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.711        9.4091        .29237E-03   -1.5640    
   2  Prefactor      .0000        23.696        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10078E-04    717.68        .64675E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     26.664        20.329        .19456E-03   -1.5605    
   5  Prefactor      .0000        15.375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .85050        44.240        .46700E-03   -1.5690    
   7  Prefactor     .13878E-08    232.20        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.5043        7.2617        .39751E-03   -1.5657    
   9  norm          6.1396        8.0130        .39924E-03   -1.5658    
  10  norm          7.5477        4.9183        .36554E-03   -1.5653    
  11  Prefactor      .0000        6.9890        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        57.166        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .74124        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.9227        2.8601        .45338E-03   -1.5664    
  15  Prefactor      .0000        10.193        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     210.52        80.775        .69712E-04   -1.5418    
  17  norm          .43479        .91506        .27593E-02   -1.5695    
  18  Normalizat    .95799        .25723        .98461E-01   -.94452    
  19  Prefactor     .96906        .88267E-01    .45871E-01   -.93768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40365e-08
Minuit parameter uncertainties:
  1  9.40914
  2  7.77431e-06
  3  0.170115
  4  20.3291
  5  6.58342e-07
  6  12.2681
  7  0.00114022
  8  7.26175
  9  8.01301
  10  4.91834
  11  4.77802e-08
  12  5.33466e-05
  13  1.16846e-07
  14  2.86009
  15  2.96147e-06
  16  80.7757
  17  0.915057
  18  0.25756
  19  0.0882797
Done.

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

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  7.548e+00  4.918e+00  0.000e+00  1.000e+06 ( 1.000e-12)
391        alpha:  2.156e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
392         beta:  5.740e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
393           Eb:  8.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  9.691e-01  8.828e-02  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  9.580e-01  2.576e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.86
Ra Dec: 320.260 19.032
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 6.16e-08 +/- 4.02e-08
Energy Flux (Fixed Index): 2.82e-05 +/- 1.84e-05

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) = 9132.56689547
delta logL = 0.192089840271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9132.56455066
delta logL = 0.19443464806

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4817       1.0000          .0000       .10000E+07
     2 'alpha     '    2.5873       1.0000          .0000       5.0000    
     3 'Normalizat'    .91106       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97866       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9132.565     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      244 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4817        67.486        .39397E-03    .15705E-01
   2  alpha         2.5872        3.7632        .27696        .10808E-03
   3  Normalizat    .91104        .12864        .10066        .43201E-03
   4  Prefactor     .97867        .34366E-01    .46000E-01    .12915E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 6.48173
  alpha      = 2.58721
  Normalizat = 0.91104
  Prefactor  = 0.978671
 **********
 **   18 **HESSE 
 **********

 FCN=   9132.565     FROM HESSE     STATUS=OK            31 CALLS      275 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4817        5.5305        .12995E-04   -1.5657    
   2  alpha         2.5872        .75324        .14347E-01    .34889E-01
   3  Normalizat    .91104        .29001        .44604E-03   -.96073    
   4  Prefactor     .97867        .10354        .15756E-03   -.93444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.82521e-10
Minuit parameter uncertainties:
  1  5.5305
  2  0.765147
  3  0.290513
  4  0.10356
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/892766': 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) = 9132.56455064
delta logL = 0.194434669031

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  6.482e+00  5.530e+00  0.000e+00  1.000e+06 ( 1.000e-12)
391        alpha:  2.587e+00  7.651e-01  0.000e+00  5.000e+00 ( 1.000e+00)
392         beta:  5.740e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
393           Eb:  8.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  9.787e-01  1.036e-01  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  9.110e-01  2.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.30
Ra Dec: 320.260 19.032
Photon Index (Free Index): 2.59 +/- 0.77
Photon Flux (Free Index): 9.66e-08 +/- 7.30e-08
Energy Flux (Free Index): 2.64e-05 +/- 1.54e-05

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/892766/cmap_HighResolution_686448001_686707201_4FGL_J2121.0+1901_daily_bin1725.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.16e-08', energy_flux2='2.64e-05', photon_flux_error='4.02e-08', dlogl='1.94e-01', energy_flux='2.82e-05', photon_flux2='9.66e-08', job_status='DONE', time_completed='2022-10-06 01:19:57.076257', photon_index_error2='0.77', photon_index2='2.59', ts='4.86', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.54e-05', EG='0.96', time_epoch_completed='1665044397.08', return_code='0', job_id='892766', GAL2='0.98', EG2='0.91', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='7.30e-08', ts2='5.30', photon_index='2.16' WHERE bin_id='1725' AND source_name='4FGL J2121.0+1901' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Oct  6 01:19:57 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 892766: <4FGL_J2121.0+1901_daily_bin1725> in cluster <slac> Done

Job <4FGL_J2121.0+1901_daily_bin1725> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Oct  6 01:05:34 2022
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct  6 01:06:09 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct  6 01:06:09 2022
Terminated at Thu Oct  6 01:19:57 2022
Results reported at Thu Oct  6 01:19:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2121.0+1901_daily_bin1725 320.26 19.0324 686448001 686707201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2121.0+1901 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   718.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            863 sec.

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

