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


Performing analysis on: 4FGL_J2121.0+1901_daily_bin1728
RA = 320.26, Dec = 19.0324
tmin = 687225601, tmax = 687484801
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='304379', job_status='RUN', time_executed='2022-10-15 00:37:29.585532', time_epoch_executed='1665819449.59' WHERE source_name='4FGL J2121.0+1901' and cadence='daily' and bin_id='1728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304379

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304379/ft1_4FGL_J2121.0+1901_daily_bin1728.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304379/ft2_4FGL_J2121.0+1901_daily_bin1728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304379/ft1_4FGL_J2121.0+1901_daily_bin1728.fits outfile=/scratch/kocevski/304379/ft1_filteredMKT_4FGL_J2121.0+1901_daily_bin1728.fits ra=320.26 dec=19.0324 rad=12.0 tmin=687225601.0 tmax=687484801.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 2.72
user 2.49
sys 0.21

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

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

Number of photons that the gtmktime cut: 763

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/304379/ft1_filtered_4FGL_J2121.0+1901_daily_bin1728.fits" evtable="EVENTS" scfile=/scratch/kocevski/304379/ft2_4FGL_J2121.0+1901_daily_bin1728.fits sctable="SC_DATA" outfile=/scratch/kocevski/304379/ltcube_687225601_687484801_4FGL_J2121.0+1901_daily_bin1728.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/304379/ft2_4FGL_J2121.0+1901_daily_bin1728.fits
.....................!
real 16.05
user 15.57
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304379/ft1_filtered_4FGL_J2121.0+1901_daily_bin1728.fits evtable="EVENTS" scfile=/scratch/kocevski/304379/ft2_4FGL_J2121.0+1901_daily_bin1728.fits sctable="SC_DATA" expcube=/scratch/kocevski/304379/ltcube_687225601_687484801_4FGL_J2121.0+1901_daily_bin1728.fits outfile=/scratch/kocevski/304379/expmap_687225601_687484801_4FGL_J2121.0+1901_daily_bin1728.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/304379/ltcube_687225601_687484801_4FGL_J2121.0+1901_daily_bin1728.fits
.....................!
real 190.85
user 185.58
sys 4.91

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/304379/ft1_filtered_4FGL_J2121.0+1901_daily_bin1728.fits scfile=/scratch/kocevski/304379/ft2_4FGL_J2121.0+1901_daily_bin1728.fits outfile=/scratch/kocevski/304379/cmap_687225601_687484801_4FGL_J2121.0+1901_daily_bin1728.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304379/ft1_filtered_4FGL_J2121.0+1901_daily_bin1728.fits scfile=/scratch/kocevski/304379/ft2_4FGL_J2121.0+1901_daily_bin1728.fits outfile=/scratch/kocevski/304379/cmap_HighResolution_687225601_687484801_4FGL_J2121.0+1901_daily_bin1728.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.54
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .91637E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .64803E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    73.192       1.0000          .0000       .10000E+07
     4 'Prefactor '    5.1364       1.0000          .0000       .10000E+07
     5 'Prefactor '    .34768E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.5288       1.0000          .0000       .10000E+07
     7 'Prefactor '    6.4191       1.0000          .0000       .10000E+07
     8 'Prefactor '    9.4539       1.0000          .0000       .10000E+07
     9 'norm      '    5.3587       1.0000          .0000       .10000E+07
    10 'norm      '    5.7730       1.0000          .0000       .10000E+07
    11 'Prefactor '    .33967E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .25978       1.0000          .0000       .10000E+07
    13 'norm      '    1.6371       1.0000          .0000       .10000E+07
    14 'norm      '    .53291E-08   1.0000          .0000       .10000E+07
    15 'Prefactor '    .19688E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .10188E-01   1.0000          .0000       .10000E+07
    17 'norm      '    .19802       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.3209       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .78945       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=   8098.255     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     1428 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    3.2096       -.46426E-07** at limit **
   2  Prefactor     .66613E-09    28.718       -.21032E-06** at limit **
   3  Prefactor     72.436        84.477       -.35049E-06    .21920E-01
   4  Prefactor     5.2330        14.745       -.19620E-06   -.87698E-02
   5  Prefactor     .22204E-09    11.825       -.11694E-06** at limit **
   6  Prefactor     9.7340        4.9344       -.57353E-07   -.12921    
   7  Prefactor     6.4038        1.7248        .12687E-07   -.65879E-01
   8  Prefactor     9.4374        6.4191        .39146E-07   -.42133E-03
   9  norm          5.3412        5.2413       -.34997E-07   -.12142E-02
  10  norm          5.8112        4.9542        .24539E-07    .29015E-02
  11  Prefactor     .55511E-10    2.1635        .54656E-07** at limit **
  12  Prefactor     .17208E-08    44.592       -.30055E-06** at limit **
  13  norm          1.6380        1.9499        .24617E-08    .82176E-04
  14  norm           .0000        .73968        .45032E-07** at limit **
  15  Prefactor     .27922E-07    29.882        .73003E-06** at limit **
  16  Prefactor      .0000        19.771        .35089E-06** at limit **
  17  norm          .19939        1.9016       -.15545E-06** at limit **
  18  Normalizat    1.3206        .30072        .10606E-05   -.42707E-04
  19  Prefactor     .78960        .10222       -.20571E-06   -.91755E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  Prefactor  = 6.66134e-10
  Prefactor  = 72.4361
  Prefactor  = 5.23295
  Prefactor  = 2.22045e-10
  Prefactor  = 9.73402
  Prefactor  = 6.40376
  Prefactor  = 9.43739
  norm       = 5.34124
  norm       = 5.81122
  Prefactor  = 5.55112e-11
  Prefactor  = 1.72085e-09
  norm       = 1.63795
  norm       = 0
  Prefactor  = 2.79221e-08
  Prefactor  = 0
  norm       = 0.199387
  Normalizat = 1.32064
  Prefactor  = 0.789604
 **********
 **   18 **HESSE 
 **********

 FCN=   8098.255     FROM HESSE     STATUS=OK           316 CALLS     1744 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    3.2175        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .66613E-09    10.181        .99827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     72.436        86.564        .11689E-03   -1.5538    
   4  Prefactor     5.2330        14.770        .44336E-03   -1.5662    
   5  Prefactor     .22204E-09    11.788        .16209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.7340        24.627        .32440E-03   -1.5646    
   7  Prefactor     6.4038        16.904        .39591E-03   -1.5657    
   8  Prefactor     9.4374        6.4649        .32569E-03   -1.5647    
   9  norm          5.3412        5.2608        .43390E-03   -1.5662    
  10  norm          5.8112        4.9887        .41778E-03   -1.5660    
  11  Prefactor     .55511E-10    2.1573        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .17208E-08    44.614        .10796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6380        1.9641        .82572E-03   -1.5682    
  14  norm           .0000        .73926        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .27922E-07    29.888        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        19.782        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .19939        .90636        .28469E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3206        .25345        .82655E-01   -.82952    
  19  Prefactor     .78960        .85010E-01    .43580E-01   -1.0011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27646e-06
Minuit parameter uncertainties:
  1  1.89531e-05
  2  0.000164328
  3  86.5659
  4  14.7701
  5  0.000100607
  6  24.6272
  7  16.904
  8  6.4649
  9  5.26076
  10  4.98869
  11  1.82054e-05
  12  0.000557066
  13  1.96409
  14  8.79376e-06
  15  0.00182691
  16  1.3007e-05
  17  0.850216
  18  0.253686
  19  0.0850242
Done.

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

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  5.811e+00  4.989e+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:  7.896e-01  8.502e-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.321e+00  2.537e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.18
Ra Dec: 320.260 19.032
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 4.75e-08 +/- 4.07e-08
Energy Flux (Fixed Index): 2.17e-05 +/- 1.87e-05

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

Saving results to:
/scratch/kocevski/304379/likelihoodResults_687225601_687484801_4FGL_J2121.0+1901_daily_bin1728.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) = 8097.85755094
delta logL = 0.397702780841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8097.85533874
delta logL = 0.399914984303

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1116       1.0000          .0000       .10000E+07
     2 'alpha     '    2.7819       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2749       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79897       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=   8097.855     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      244 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1102        53.701        .49691E-03    .42226E-02
   2  alpha         2.7813        3.8800        .37605        .60866E-04
   3  Normalizat    1.2747        .86426E-01    .83883E-01    .16669E-04
   4  Prefactor     .79911        .27317E-01    .43704E-01   -.68105E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 4.11018
  alpha      = 2.78132
  Normalizat = 1.27466
  Prefactor  = 0.799107
 **********
 **   18 **HESSE 
 **********

 FCN=   8097.855     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1102        4.9866        .12307E-04   -1.5667    
   2  alpha         2.7813        .82208        .13009E-01    .11277    
   3  Normalizat    1.2747        .29441        .37139E-03   -.84326    
   4  Prefactor     .79911        .10204        .16025E-03   -.99761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80357e-09
Minuit parameter uncertainties:
  1  4.98657
  2  0.837881
  3  0.294795
  4  0.102068
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304379': 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) = 8097.85533623
delta logL = 0.399917490668

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  4.110e+00  4.987e+00  0.000e+00  1.000e+06 ( 1.000e-12)
391        alpha:  2.781e+00  8.379e-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:  7.991e-01  1.021e-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.275e+00  2.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.01
Ra Dec: 320.260 19.032
Photon Index (Free Index): 2.78 +/- 0.84
Photon Flux (Free Index): 8.26e-08 +/- 6.50e-08
Energy Flux (Free Index): 1.95e-05 +/- 1.45e-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/304379/cmap_HighResolution_687225601_687484801_4FGL_J2121.0+1901_daily_bin1728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.31e-05', comment='SUCCESS', photon_flux='4.75e-08', energy_flux2='1.95e-05', photon_flux_error='4.07e-08', dlogl='4.00e-01', energy_flux='2.17e-05', photon_flux2='8.26e-08', job_status='DONE', time_completed='2022-10-15 00:49:11.168613', photon_index_error2='0.84', photon_index2='2.78', ts='2.18', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='1.45e-05', EG='1.32', time_epoch_completed='1665820151.17', return_code='0', job_id='304379', GAL2='0.80', EG2='1.27', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='6.50e-08', ts2='3.01', photon_index='2.16' WHERE bin_id='1728' AND source_name='4FGL J2121.0+1901' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct 15 00:49:11 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0053>
Subject: Job 304379: <4FGL_J2121.0+1901_daily_bin1728> in cluster <slac> Done

Job <4FGL_J2121.0+1901_daily_bin1728> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Oct 15 00:35:49 2022
Job was executed on host(s) <bullet0053>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct 15 00:35:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct 15 00:35:51 2022
Terminated at Sat Oct 15 00:49:11 2022
Results reported at Sat Oct 15 00:49:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2121.0+1901_daily_bin1728 320.26 19.0324 687225601 687484801 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 :                                   702.34 sec.
    Max Memory :                                 1123 MB
    Average Memory :                             340.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            802 sec.

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

