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


Performing analysis on: 4FGL_J2121.0+1901_daily_bin1716
RA = 320.26, Dec = 19.0324
tmin = 684115201, tmax = 684374401
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='231860', job_status='RUN', time_executed='2022-09-16 23:14:12.354571', time_epoch_executed='1663395252.35' WHERE source_name='4FGL J2121.0+1901' and cadence='daily' and bin_id='1716'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231860

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231860/ft1_4FGL_J2121.0+1901_daily_bin1716.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231860/ft2_4FGL_J2121.0+1901_daily_bin1716.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231860/ft1_4FGL_J2121.0+1901_daily_bin1716.fits outfile=/scratch/kocevski/231860/ft1_filteredMKT_4FGL_J2121.0+1901_daily_bin1716.fits ra=320.26 dec=19.0324 rad=12.0 tmin=684115201.0 tmax=684374401.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.19
user 3.92
sys 0.23

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

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

Number of photons that the gtmktime cut: 819

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231860/ft1_filtered_4FGL_J2121.0+1901_daily_bin1716.fits evtable="EVENTS" scfile=/scratch/kocevski/231860/ft2_4FGL_J2121.0+1901_daily_bin1716.fits sctable="SC_DATA" expcube=/scratch/kocevski/231860/ltcube_684115201_684374401_4FGL_J2121.0+1901_daily_bin1716.fits outfile=/scratch/kocevski/231860/expmap_684115201_684374401_4FGL_J2121.0+1901_daily_bin1716.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/231860/ltcube_684115201_684374401_4FGL_J2121.0+1901_daily_bin1716.fits
.....................!
real 191.60
user 186.05
sys 4.84

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/231860/ft1_filtered_4FGL_J2121.0+1901_daily_bin1716.fits scfile=/scratch/kocevski/231860/ft2_4FGL_J2121.0+1901_daily_bin1716.fits outfile=/scratch/kocevski/231860/cmap_684115201_684374401_4FGL_J2121.0+1901_daily_bin1716.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.58
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/231860/ft1_filtered_4FGL_J2121.0+1901_daily_bin1716.fits scfile=/scratch/kocevski/231860/ft2_4FGL_J2121.0+1901_daily_bin1716.fits outfile=/scratch/kocevski/231860/cmap_HighResolution_684115201_684374401_4FGL_J2121.0+1901_daily_bin1716.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.62
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .29573E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.5458       1.0000          .0000       .10000E+07
     3 'Prefactor '    .24078E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.7584       1.0000          .0000       .10000E+07
     5 'Prefactor '    31.673       1.0000          .0000       .10000E+07
     6 'Prefactor '    .48600E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .27467E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    6.1532       1.0000          .0000       .10000E+07
     9 'norm      '    .70833E-01   1.0000          .0000       .10000E+07
    10 'norm      '    8.6721       1.0000          .0000       .10000E+07
    11 'Prefactor '    .17867E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    89.468       1.0000          .0000       .10000E+07
    13 'norm      '    .38858E-09   1.0000          .0000       .10000E+07
    14 'norm      '    7.2281       1.0000          .0000       .10000E+07
    15 'Prefactor '    .29696E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .22956       1.0000          .0000       .10000E+07
    17 'norm      '    .14762       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.1758       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .86518       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=   8860.737     FROM MIGRAD    STATUS=CONVERGED    128 CALLS     1452 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    4.0324        .56706E-06** at limit **
   2  Prefactor     2.4888        29.337        .20995E-05    .21013E-02
   3  Prefactor     .55511E-10    31.507        .14295E-05** at limit **
   4  Prefactor     3.7325        5.6886        .51895E-06    .28561E-01
   5  Prefactor     31.591        5.7190        .14590E-06    .44313E-01
   6  Prefactor     .52269E-06    34.250        .14345E-05** at limit **
   7  Prefactor     .20179E-05    56.477       -.58634E-05** at limit **
   8  Prefactor     6.1057        5.3364       -.46693E-06    .39748E-02
   9  norm          .10789        68.227       -.43932E-05** at limit **
  10  norm          8.6137        5.1571       -.20243E-06   -.22931E-02
  11  Prefactor      .0000        26.867        .93871E-06** at limit **
  12  Prefactor     89.508        3.6157        .16524E-06   -.17638    
  13  norm           .0000        .83593       -.26318E-06** at limit **
  14  norm          7.2246        3.5112       -.28083E-06   -.45727E-02
  15  Prefactor     .17786E-06    27.110       -.13019E-05** at limit **
  16  Prefactor     .40885E-03    33.993       -.55353E-05** at limit **
  17  norm          .14820        .46700       -.86230E-07** at limit **
  18  Normalizat    1.1769        .28355       -.21864E-04   -.17719E-03
  19  Prefactor     .86508        .10099       -.38034E-06   -.39349E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  Prefactor  = 2.4888
  Prefactor  = 5.55112e-11
  Prefactor  = 3.73252
  Prefactor  = 31.5909
  Prefactor  = 5.22693e-07
  Prefactor  = 2.01789e-06
  Prefactor  = 6.10572
  norm       = 0.107889
  norm       = 8.61365
  Prefactor  = 0
  Prefactor  = 89.5076
  norm       = 0
  norm       = 7.22457
  Prefactor  = 1.77858e-07
  Prefactor  = 0.000408854
  norm       = 0.148196
  Normalizat = 1.1769
  Prefactor  = 0.865082
 **********
 **   18 **HESSE 
 **********

 FCN=   8860.737     FROM HESSE     STATUS=OK           328 CALLS     1780 TOTAL
                     EDM=   .39E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    4.0366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.4888        33.307        .63973E-03   -1.5676    
   3  Prefactor     .55511E-10    31.429        .16782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.7325        16.471        .52053E-03   -1.5669    
   5  Prefactor     31.591        31.598        .17771E-03   -1.5596    
   6  Prefactor     .52269E-06    34.820        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .20179E-05    59.991        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.1057        5.3327        .40448E-03   -1.5659    
   9  norm          .10789        2.8087        .93700E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.6137        5.1738        .34015E-03   -1.5649    
  11  Prefactor      .0000        3.1066        .11129E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     89.508        103.53        .10573E-03   -1.5519    
  13  norm           .0000        .83250        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.2246        3.5185        .37285E-03   -1.5654    
  15  Prefactor     .17786E-06    27.468        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .40885E-03    38.085        .17308E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .14820        .44449        .27578E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1769        .24900        .86325E-01   -.87320    
  19  Prefactor     .86508        .83964E-01    .44560E-01   -.97372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9354e-06
Minuit parameter uncertainties:
  1  2.13658e-05
  2  18.2093
  3  9.13371e-05
  4  15.6817
  5  31.5982
  6  0.00853212
  7  0.0220054
  8  5.33267
  9  1.10096
  10  5.17376
  11  4.25688e-06
  12  103.529
  13  3.08013e-06
  14  3.51847
  15  0.00442028
  16  0.249572
  17  0.444494
  18  0.249252
  19  0.0839766
Done.

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

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  8.614e+00  5.174e+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:  8.651e-01  8.398e-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:  1.177e+00  2.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.03
Ra Dec: 320.260 19.032
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 7.03e-08 +/- 4.22e-08
Energy Flux (Fixed Index): 3.22e-05 +/- 1.93e-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) = 8860.61921417
delta logL = 0.118072479036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8860.61421483
delta logL = 0.123071818687

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0534       1.0000          .0000       .10000E+07
     2 'alpha     '    2.4255       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1476       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87061       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8860.614     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      283 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0534        5.2042        .70613E-04    .20496E-02
   2  alpha         2.4255        .55833        .14138E-01    .25107E-03
   3  Normalizat    1.1475        .28304        .38644E-03   -.24118E-03
   4  Prefactor     .87061        .10074        .15829E-03   -.64999E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.05337
  alpha      = 2.42551
  Normalizat = 1.14755
  Prefactor  = 0.87061
 **********
 **   18 **HESSE 
 **********

 FCN=   8860.614     FROM HESSE     STATUS=OK            27 CALLS      310 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0534        5.0458        .14123E-04   -1.5651    
   2  alpha         2.4255        .54082        .28275E-02   -.29801E-01
   3  Normalizat    1.1475        .28295        .15458E-04   -.88239    
   4  Prefactor     .87061        .10075        .31658E-04   -.97176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30518e-10
Minuit parameter uncertainties:
  1  5.04583
  2  0.545134
  3  0.283324
  4  0.100774
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231860': 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) = 8860.61421483
delta logL = 0.123071819638

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  8.053e+00  5.046e+00  0.000e+00  1.000e+06 ( 1.000e-12)
391        alpha:  2.426e+00  5.451e-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:  8.706e-01  1.008e-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:  1.148e+00  2.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.29
Ra Dec: 320.260 19.032
Photon Index (Free Index): 2.43 +/- 0.55
Photon Flux (Free Index): 9.47e-08 +/- 7.06e-08
Energy Flux (Free Index): 3.03e-05 +/- 1.72e-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/231860/cmap_HighResolution_684115201_684374401_4FGL_J2121.0+1901_daily_bin1716.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.03e-08', energy_flux2='3.03e-05', photon_flux_error='4.22e-08', dlogl='1.23e-01', energy_flux='3.22e-05', photon_flux2='9.47e-08', job_status='DONE', time_completed='2022-09-16 23:25:50.108575', photon_index_error2='0.55', photon_index2='2.43', ts='6.03', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='1.18', time_epoch_completed='1663395950.11', return_code='0', job_id='231860', GAL2='0.87', EG2='1.15', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='7.06e-08', ts2='6.29', photon_index='2.16' WHERE bin_id='1716' AND source_name='4FGL J2121.0+1901' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 23:25:50 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 231860: <4FGL_J2121.0+1901_daily_bin1716> in cluster <slac> Done

Job <4FGL_J2121.0+1901_daily_bin1716> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 23:10:20 2022
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 23:12:55 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:55 2022
Terminated at Fri Sep 16 23:25:50 2022
Results reported at Fri Sep 16 23:25:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2121.0+1901_daily_bin1716 320.26 19.0324 684115201 684374401 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 :                                   698.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            930 sec.

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

