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


Performing analysis on: 4FGL_J2121.0+1901_daily_bin1724
RA = 320.26, Dec = 19.0324
tmin = 686188801, tmax = 686448001
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='707757', job_status='RUN', time_executed='2022-10-03 01:19:09.477439', time_epoch_executed='1664785149.48' WHERE source_name='4FGL J2121.0+1901' and cadence='daily' and bin_id='1724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/707757

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/707757/ft1_4FGL_J2121.0+1901_daily_bin1724.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/707757/ft2_4FGL_J2121.0+1901_daily_bin1724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/707757/ft1_4FGL_J2121.0+1901_daily_bin1724.fits outfile=/scratch/kocevski/707757/ft1_filteredMKT_4FGL_J2121.0+1901_daily_bin1724.fits ra=320.26 dec=19.0324 rad=12.0 tmin=686188801.0 tmax=686448001.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.72
user 4.45
sys 0.23

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

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

Number of photons that the gtmktime cut: 826

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/707757/ft1_filtered_4FGL_J2121.0+1901_daily_bin1724.fits evtable="EVENTS" scfile=/scratch/kocevski/707757/ft2_4FGL_J2121.0+1901_daily_bin1724.fits sctable="SC_DATA" expcube=/scratch/kocevski/707757/ltcube_686188801_686448001_4FGL_J2121.0+1901_daily_bin1724.fits outfile=/scratch/kocevski/707757/expmap_686188801_686448001_4FGL_J2121.0+1901_daily_bin1724.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/707757/ltcube_686188801_686448001_4FGL_J2121.0+1901_daily_bin1724.fits
.....................!
real 191.69
user 185.97
sys 5.22

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/707757/ft1_filtered_4FGL_J2121.0+1901_daily_bin1724.fits scfile=/scratch/kocevski/707757/ft2_4FGL_J2121.0+1901_daily_bin1724.fits outfile=/scratch/kocevski/707757/cmap_686188801_686448001_4FGL_J2121.0+1901_daily_bin1724.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/707757/ft1_filtered_4FGL_J2121.0+1901_daily_bin1724.fits scfile=/scratch/kocevski/707757/ft2_4FGL_J2121.0+1901_daily_bin1724.fits outfile=/scratch/kocevski/707757/cmap_HighResolution_686188801_686448001_4FGL_J2121.0+1901_daily_bin1724.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8375       1.0000          .0000       .10000E+07
     2 'Prefactor '    24.106       1.0000          .0000       .10000E+07
     3 'Prefactor '    124.47       1.0000          .0000       .10000E+07
     4 'Prefactor '    29.762       1.0000          .0000       .10000E+07
     5 'Prefactor '    .12676       1.0000          .0000       .10000E+07
     6 'Prefactor '    .24548E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .10177E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    10.948       1.0000          .0000       .10000E+07
     9 'norm      '    7.4871       1.0000          .0000       .10000E+07
    10 'norm      '    2.9769       1.0000          .0000       .10000E+07
    11 'Prefactor '    .22619E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .55226       1.0000          .0000       .10000E+07
    13 'norm      '    .21649E-08   1.0000          .0000       .10000E+07
    14 'norm      '    .55013       1.0000          .0000       .10000E+07
    15 'Prefactor '    76.014       1.0000          .0000       .10000E+07
    16 'Prefactor '    19.055       1.0000          .0000       .10000E+07
    17 'norm      '    .14964       1.0000          .0000       .10000E+07
    18 'Normalizat'    .77837       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98027       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=   9005.915     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1507 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8856        11.705        .65446E-05    .58418E-02
   2  Prefactor     24.091        1.2238       -.41596E-07   -.14472E-01
   3  Prefactor     124.52        1.8659        .12205E-06   -.20006    
   4  Prefactor     29.777        1.0926       -.68843E-07    .15227E-01
   5  Prefactor     .33307E-09    34.662        .30042E-05** at limit **
   6  Prefactor     .15765E-07    15.809        .39258E-05** at limit **
   7  Prefactor     .19429E-08    12.375        .81168E-07** at limit **
   8  Prefactor     10.944        6.5705        .99689E-06    .22907E-03
   9  norm          7.5039        6.5724        .30320E-06   -.14688E-02
  10  norm          2.9759        3.2915        .27960E-06    .15545E-02
  11  Prefactor     .16653E-09    8.2673        .41845E-06** at limit **
  12  Prefactor     .60685E-06    103.26       -.54542E-05** at limit **
  13  norm           .0000        .84869        .13561E-05** at limit **
  14  norm          .53266        2.6645        .18215E-05   -.15535E-02
  15  Prefactor     75.876        3.3805       -.25932E-06    .16032    
  16  Prefactor     19.118        1.2429        .84306E-07   -.18709E-01
  17  norm          .14826        2.2142        .32715E-05** at limit **
  18  Normalizat    .77905        .29231       -.56316E-04   -.50829E-04
  19  Prefactor     .98016        .10487        .15744E-05   -.35378E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.88562
  Prefactor  = 24.0912
  Prefactor  = 124.524
  Prefactor  = 29.777
  Prefactor  = 3.33067e-10
  Prefactor  = 1.57652e-08
  Prefactor  = 1.94289e-09
  Prefactor  = 10.9436
  norm       = 7.50389
  norm       = 2.97587
  Prefactor  = 1.66533e-10
  Prefactor  = 6.06848e-07
  norm       = 0
  norm       = 0.532664
  Prefactor  = 75.8759
  Prefactor  = 19.1175
  norm       = 0.148261
  Normalizat = 0.779049
  Prefactor  = 0.980159
 **********
 **   18 **HESSE 
 **********

 FCN=   9005.915     FROM HESSE     STATUS=OK           312 CALLS     1819 TOTAL
                     EDM=   .74E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8856        11.740        .51494E-03   -1.5669    
   2  Prefactor     24.091        21.777        .20372E-03   -1.5610    
   3  Prefactor     124.52        99.194        .89639E-04   -1.5485    
   4  Prefactor     29.777        20.745        .18333E-03   -1.5599    
   5  Prefactor     .33307E-09    34.179        .13260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .15765E-07    15.813        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .19429E-08    12.378        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.944        6.6711        .30254E-03   -1.5642    
   9  norm          7.5039        6.5864        .36628E-03   -1.5653    
  10  norm          2.9759        3.2830        .58820E-03   -1.5673    
  11  Prefactor     .16653E-09    8.1261        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .60685E-06    104.02        .73617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .84570        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .53266        2.6655        .73819E-03   -1.5693    
  15  Prefactor     75.876        36.050        .11470E-03   -1.5534    
  16  Prefactor     19.118        32.631        .22917E-03   -1.5621    
  17  norm          .14826        .57799        .36690E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .77905        .27059        .10704       -1.0085    
  19  Prefactor     .98016        .91272E-01    .46020E-01   -.93394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.42242e-06
Minuit parameter uncertainties:
  1  11.7405
  2  21.7775
  3  99.1954
  4  20.7446
  5  0.000221423
  6  0.000998003
  7  0.000311286
  8  6.67115
  9  6.58644
  10  3.28297
  11  7.41715e-05
  12  0.0158902
  13  6.29628e-06
  14  2.38312
  15  36.0501
  16  32.6317
  17  0.577994
  18  0.271062
  19  0.0912863
Done.

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

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  2.976e+00  3.283e+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.802e-01  9.129e-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:  7.790e-01  2.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.05
Ra Dec: 320.260 19.032
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 2.43e-08 +/- 2.68e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 1.23e-05

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

Saving results to:
/scratch/kocevski/707757/likelihoodResults_686188801_686448001_4FGL_J2121.0+1901_daily_bin1724.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) = 9005.90454549
delta logL = 0.010222590814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9005.90434101
delta logL = 0.0104270713455

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9671       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2841       1.0000          .0000       5.0000    
     3 'Normalizat'    .77476       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98077       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9005.904     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      262 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9670        3.2528        .17059E-04    .23511E-02
   2  alpha         2.2841        .86928        .24771E-01    .72036E-05
   3  Normalizat    .77474        .28255        .47573E-03    .27100E-04
   4  Prefactor     .98079        .10389        .15654E-03    .82503E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.96704
  alpha      = 2.28406
  Normalizat = 0.774744
  Prefactor  = 0.980794
 **********
 **   18 **HESSE 
 **********

 FCN=   9005.904     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9670        3.2251        .68237E-06   -1.5674    
   2  alpha         2.2841        .86200        .99085E-03   -.86482E-01
   3  Normalizat    .77474        .28258        .19029E-04   -1.0101    
   4  Prefactor     .98079        .10392        .62615E-05   -.93372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96352e-11
Minuit parameter uncertainties:
  1  3.22509
  2  0.880204
  3  0.283117
  4  0.103944
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/707757': 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) = 9005.90434097
delta logL = 0.0104271095333

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  2.967e+00  3.225e+00  0.000e+00  1.000e+06 ( 1.000e-12)
391        alpha:  2.284e+00  8.802e-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.808e-01  1.039e-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:  7.747e-01  2.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.07
Ra Dec: 320.260 19.032
Photon Index (Free Index): 2.28 +/- 0.88
Photon Flux (Free Index): 2.87e-08 +/- 4.32e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.18e-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/707757/cmap_HighResolution_686188801_686448001_4FGL_J2121.0+1901_daily_bin1724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.62e-05', comment='SUCCESS', photon_flux='2.43e-08', energy_flux2='1.09e-05', photon_flux_error='2.68e-08', dlogl='1.04e-02', energy_flux='1.11e-05', photon_flux2='2.87e-08', job_status='DONE', time_completed='2022-10-03 01:31:49.816382', photon_index_error2='0.88', photon_index2='2.28', ts='2.05', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='1.18e-05', EG='0.78', time_epoch_completed='1664785909.82', return_code='0', job_id='707757', GAL2='0.98', EG2='0.77', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='4.32e-08', ts2='2.07', photon_index='2.16' WHERE bin_id='1724' AND source_name='4FGL J2121.0+1901' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Oct  3 01:31:49 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 707757: <4FGL_J2121.0+1901_daily_bin1724> in cluster <slac> Done

Job <4FGL_J2121.0+1901_daily_bin1724> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Oct  3 01:15:34 2022
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct  3 01:17:10 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct  3 01:17:10 2022
Terminated at Mon Oct  3 01:31:50 2022
Results reported at Mon Oct  3 01:31:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2121.0+1901_daily_bin1724 320.26 19.0324 686188801 686448001 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 :                                   761.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            976 sec.

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

