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


Performing analysis on: 4FGL_J2121.0+1901_daily_bin1708
RA = 320.26, Dec = 19.0324
tmin = 682041601, tmax = 682300801
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='231848', job_status='RUN', time_executed='2022-09-16 23:12:59.793608', time_epoch_executed='1663395179.79' WHERE source_name='4FGL J2121.0+1901' and cadence='daily' and bin_id='1708'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231848

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231848/ft1_4FGL_J2121.0+1901_daily_bin1708.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231848/ft2_4FGL_J2121.0+1901_daily_bin1708.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231848/ft1_4FGL_J2121.0+1901_daily_bin1708.fits outfile=/scratch/kocevski/231848/ft1_filteredMKT_4FGL_J2121.0+1901_daily_bin1708.fits ra=320.26 dec=19.0324 rad=12.0 tmin=682041601.0 tmax=682300801.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.99
user 3.74
sys 0.23

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

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

Number of photons that the gtmktime cut: 846

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/231848/ft1_filtered_4FGL_J2121.0+1901_daily_bin1708.fits" evtable="EVENTS" scfile=/scratch/kocevski/231848/ft2_4FGL_J2121.0+1901_daily_bin1708.fits sctable="SC_DATA" outfile=/scratch/kocevski/231848/ltcube_682041601_682300801_4FGL_J2121.0+1901_daily_bin1708.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/231848/ft2_4FGL_J2121.0+1901_daily_bin1708.fits
.....................!
real 13.63
user 13.22
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231848/ft1_filtered_4FGL_J2121.0+1901_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/231848/ft2_4FGL_J2121.0+1901_daily_bin1708.fits sctable="SC_DATA" expcube=/scratch/kocevski/231848/ltcube_682041601_682300801_4FGL_J2121.0+1901_daily_bin1708.fits outfile=/scratch/kocevski/231848/expmap_682041601_682300801_4FGL_J2121.0+1901_daily_bin1708.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/231848/ltcube_682041601_682300801_4FGL_J2121.0+1901_daily_bin1708.fits
.....................!
real 191.80
user 185.89
sys 5.47

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/231848/ft1_filtered_4FGL_J2121.0+1901_daily_bin1708.fits scfile=/scratch/kocevski/231848/ft2_4FGL_J2121.0+1901_daily_bin1708.fits outfile=/scratch/kocevski/231848/cmap_682041601_682300801_4FGL_J2121.0+1901_daily_bin1708.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/231848/ft1_filtered_4FGL_J2121.0+1901_daily_bin1708.fits scfile=/scratch/kocevski/231848/ft2_4FGL_J2121.0+1901_daily_bin1708.fits outfile=/scratch/kocevski/231848/cmap_HighResolution_682041601_682300801_4FGL_J2121.0+1901_daily_bin1708.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/231848/ft1_filtered_4FGL_J2121.0+1901_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/231848/ft2_4FGL_J2121.0+1901_daily_bin1708.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/231848/Model_4FGL_J2121.0+1901_daily_bin1708.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/231848/ft1_filtered_4FGL_J2121.0+1901_daily_bin1708.fits.....................!
real 134.74
user 133.00
sys 1.48

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/231848/ft1_filtered_4FGL_J2121.0+1901_daily_bin1708.fits', '/scratch/kocevski/231848/ft2_4FGL_J2121.0+1901_daily_bin1708.fits', expMap='/scratch/kocevski/231848/expmap_682041601_682300801_4FGL_J2121.0+1901_daily_bin1708.fits', expCube='/scratch/kocevski/231848/ltcube_682041601_682300801_4FGL_J2121.0+1901_daily_bin1708.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/231848/Model_4FGL_J2121.0+1901_daily_bin1708.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/231848/ft1_filtered_4FGL_J2121.0+1901_daily_bin1708.fits
Spacecraft file(s): /scratch/kocevski/231848/ft2_4FGL_J2121.0+1901_daily_bin1708.fits
Exposure map: /scratch/kocevski/231848/expmap_682041601_682300801_4FGL_J2121.0+1901_daily_bin1708.fits
Exposure cube: /scratch/kocevski/231848/ltcube_682041601_682300801_4FGL_J2121.0+1901_daily_bin1708.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/231848/Model_4FGL_J2121.0+1901_daily_bin1708.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) = 9073.70871854

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23174E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .67157E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    48.225       1.0000          .0000       .10000E+07
     4 'Prefactor '    10.881       1.0000          .0000       .10000E+07
     5 'Prefactor '    13.738       1.0000          .0000       .10000E+07
     6 'Prefactor '    .73964E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    3.2416       1.0000          .0000       .10000E+07
     8 'Prefactor '    .40377E-05   1.0000          .0000       .10000E+07
     9 'norm      '    2.1575       1.0000          .0000       .10000E+07
    10 'norm      '    2.9970       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.1050       1.0000          .0000       .10000E+07
    12 'Prefactor '    .62582E-01   1.0000          .0000       .10000E+07
    13 'norm      '    .46130E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .16049E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    40.479       1.0000          .0000       .10000E+07
    16 'Prefactor '    56.272       1.0000          .0000       .10000E+07
    17 'norm      '    .15155E-07   1.0000          .0000       .10000E+07
    18 'Normalizat'    .95353       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .93011       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=   9073.663     FROM MIGRAD    STATUS=CONVERGED    143 CALLS     1451 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83689E-06    30.524       -.80624E-06** at limit **
   2  Prefactor     .16653E-09    4.8382       -.43605E-06** at limit **
   3  Prefactor     48.558        36.103        .23732E-06   -.50138E-01
   4  Prefactor     10.819        16.337       -.14445E-06   -.17242E-01
   5  Prefactor     13.916        14.555        .36557E-06    .93052E-01
   6  Prefactor     .55955E-07    15.641        .96880E-07** at limit **
   7  Prefactor     3.2739        4.8935       -.31023E-07   -.10971E-01
   8  Prefactor      .0000        1.4427        .27409E-06** at limit **
   9  norm          2.1600        2.9143        .28773E-06    .58083E-03
  10  norm          2.9881        4.4698       -.23405E-06    .30839E-03
  11  Prefactor     3.0335        7.7944        .41398E-06    .16745E-03
  12  Prefactor      .0000        30.216       -.18308E-05** at limit **
  13  norm           .0000        .58781       -.32824E-07** at limit **
  14  norm           .0000        5.1757       -.29717E-06** at limit **
  15  Prefactor     41.288        28.571       -.14796E-06    .70109E-01
  16  Prefactor     56.136        24.655       -.15770E-06    .22140E-01
  17  norm           .0000        .32806       -.38239E-07** at limit **
  18  Normalizat    .95305        .28159        .12205E-04    .48424E-05
  19  Prefactor     .93012        .99286E-01   -.45979E-05   -.21974E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.36886e-07
  Prefactor  = 1.66533e-10
  Prefactor  = 48.5584
  Prefactor  = 10.8191
  Prefactor  = 13.9156
  Prefactor  = 5.59552e-08
  Prefactor  = 3.27392
  Prefactor  = 0
  norm       = 2.15998
  norm       = 2.98808
  Prefactor  = 3.03351
  Prefactor  = 0
  norm       = 0
  norm       = 0
  Prefactor  = 41.2881
  Prefactor  = 56.1361
  norm       = 0
  Normalizat = 0.953049
  Prefactor  = 0.930115
 **********
 **   18 **HESSE 
 **********

 FCN=   9073.663     FROM HESSE     STATUS=OK           308 CALLS     1759 TOTAL
                     EDM=   .61E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .83689E-06    31.536        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .16653E-09    4.8335        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     48.558        49.807        .14401E-03   -1.5569    
   4  Prefactor     10.819        16.877        .30348E-03   -1.5642    
   5  Prefactor     13.916        22.327        .26998E-03   -1.5633    
   6  Prefactor     .55955E-07    15.741        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.2739        24.106        .56232E-03   -1.5672    
   8  Prefactor      .0000        1.4425        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.1600        2.9318        .70107E-03   -1.5679    
  10  norm          2.9881        4.5478        .58610E-03   -1.5673    
  11  Prefactor     3.0335        7.8174        .57522E-03   -1.5673    
  12  Prefactor      .0000        30.251        .15071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .58843        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        5.0365        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     41.288        31.434        .15719E-03   -1.5579    
  16  Prefactor     56.136        47.138        .13332E-03   -1.5558    
  17  norm           .0000        .32660        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .95305        .24779        .92023E-01   -.94620    
  19  Prefactor     .93012        .85475E-01    .34605E-01   -.95097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.10755e-07
Minuit parameter uncertainties:
  1  0.0102745
  2  5.91966e-05
  3  49.8074
  4  16.8769
  5  22.3267
  6  0.00187731
  7  17.7678
  8  4.9014e-06
  9  2.93178
  10  4.5478
  11  7.8174
  12  4.50416e-05
  13  9.25175e-07
  14  7.68713e-06
  15  31.4341
  16  47.1383
  17  4.2964e-08
  18  0.248088
  19  0.0854872
Done.

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

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  2.988e+00  4.548e+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.301e-01  8.549e-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.530e-01  2.481e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.55
Ra Dec: 320.260 19.032
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/231848/likelihoodResults_682041601_682300801_4FGL_J2121.0+1901_daily_bin1708.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) = 9071.99393432
delta logL = 1.66948166453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9071.96944737
delta logL = 1.69396861913

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0112       1.0000          .0000       .10000E+07
     2 'alpha     '    3.7560       1.0000          .0000       5.0000    
     3 'Normalizat'    .84461       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95366       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=   9071.969     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      312 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0089        9.7991        .44161E-03    .83074E-02
   2  alpha         3.7573        4.1611        .30685        .80884E-04
   3  Normalizat    .84463        .75237E-01    .97021E-01    .38693E-04
   4  Prefactor     .95365        .27887E-01    .34189E-01    .43347E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.00892
  alpha      = 3.75735
  Normalizat = 0.844633
  Prefactor  = 0.953646
 **********
 **   18 **HESSE 
 **********

 FCN=   9071.969     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      345 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0089        17.418        .53564E-05   -1.5688    
   2  alpha         3.7573        4.3782        .12819E-01    .52700    
   3  Normalizat    .84463        .25829        .42986E-03   -.98434    
   4  Prefactor     .95365        .97467E-01    .15107E-03   -.94291    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.71259e-07
Minuit parameter uncertainties:
  1  8.38425
  2  4.59305
  3  0.258664
  4  0.0974852
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231848': 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): 102
logL (Free Index) = 9071.96944647
delta logL = 1.69396951634

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  1.009e+00  8.384e+00  0.000e+00  1.000e+06 ( 1.000e-12)
391        alpha:  3.757e+00  4.593e+00  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.536e-01  9.749e-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:  8.446e-01  2.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.14
Ra Dec: 320.260 19.032
Photon Index (Free Index): 3.76 +/- 4.59
Photon Flux (Free Index): 1.06e-07 +/- 6.29e-08
Energy Flux (Free Index): 1.71e-05 +/- 2.14e-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/231848/cmap_HighResolution_682041601_682300801_4FGL_J2121.0+1901_daily_bin1708.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.84e-05', comment='SUCCESS', energy_flux2='1.71e-05', dlogl='1.69e+00', photon_flux2='1.06e-07', job_status='DONE', time_completed='2022-09-16 23:25:42.920603', photon_index_error2='4.59', photon_index2='3.76', ts='0.55', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='2.14e-05', EG='0.95', time_epoch_completed='1663395942.92', return_code='0', job_id='231848', GAL2='0.95', EG2='0.84', return_code2='102', photon_flux_error2='6.29e-08', ts2='4.14', photon_index='2.16' WHERE bin_id='1708' AND source_name='4FGL J2121.0+1901' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 23:25:42 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 231848: <4FGL_J2121.0+1901_daily_bin1708> in cluster <slac> Done

Job <4FGL_J2121.0+1901_daily_bin1708> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 23:10:19 2022
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 23:12:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 23:12:43 2022
Terminated at Fri Sep 16 23:25:43 2022
Results reported at Fri Sep 16 23:25:43 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2121.0+1901_daily_bin1708 320.26 19.0324 682041601 682300801 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 :                                   765.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             366.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            924 sec.

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

