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


Performing analysis on: 4FGL_J2121.0+1901_daily_bin1734
RA = 320.26, Dec = 19.0324
tmin = 688780801, tmax = 689040001
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='776350', job_status='RUN', time_executed='2022-11-02 00:36:39.223195', time_epoch_executed='1667374599.22' WHERE source_name='4FGL J2121.0+1901' and cadence='daily' and bin_id='1734'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/776350

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/776350/ft1_4FGL_J2121.0+1901_daily_bin1734.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/776350/ft2_4FGL_J2121.0+1901_daily_bin1734.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/776350/ft1_4FGL_J2121.0+1901_daily_bin1734.fits outfile=/scratch/kocevski/776350/ft1_filteredMKT_4FGL_J2121.0+1901_daily_bin1734.fits ra=320.26 dec=19.0324 rad=12.0 tmin=688780801.0 tmax=689040001.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.55
user 3.32
sys 0.19

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

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

Number of photons that the gtmktime cut: 893

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/776350/ft1_filtered_4FGL_J2121.0+1901_daily_bin1734.fits" evtable="EVENTS" scfile=/scratch/kocevski/776350/ft2_4FGL_J2121.0+1901_daily_bin1734.fits sctable="SC_DATA" outfile=/scratch/kocevski/776350/ltcube_688780801_689040001_4FGL_J2121.0+1901_daily_bin1734.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/776350/ft2_4FGL_J2121.0+1901_daily_bin1734.fits
.....................!
real 12.07
user 11.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/776350/ft1_filtered_4FGL_J2121.0+1901_daily_bin1734.fits evtable="EVENTS" scfile=/scratch/kocevski/776350/ft2_4FGL_J2121.0+1901_daily_bin1734.fits sctable="SC_DATA" expcube=/scratch/kocevski/776350/ltcube_688780801_689040001_4FGL_J2121.0+1901_daily_bin1734.fits outfile=/scratch/kocevski/776350/expmap_688780801_689040001_4FGL_J2121.0+1901_daily_bin1734.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/776350/ltcube_688780801_689040001_4FGL_J2121.0+1901_daily_bin1734.fits
.....................!
real 190.40
user 185.20
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/776350/ft1_filtered_4FGL_J2121.0+1901_daily_bin1734.fits scfile=/scratch/kocevski/776350/ft2_4FGL_J2121.0+1901_daily_bin1734.fits outfile=/scratch/kocevski/776350/cmap_688780801_689040001_4FGL_J2121.0+1901_daily_bin1734.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/776350/ft1_filtered_4FGL_J2121.0+1901_daily_bin1734.fits scfile=/scratch/kocevski/776350/ft2_4FGL_J2121.0+1901_daily_bin1734.fits outfile=/scratch/kocevski/776350/cmap_HighResolution_688780801_689040001_4FGL_J2121.0+1901_daily_bin1734.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12088E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    7.5070       1.0000          .0000       .10000E+07
     3 'Prefactor '    28.741       1.0000          .0000       .10000E+07
     4 'Prefactor '    32.056       1.0000          .0000       .10000E+07
     5 'Prefactor '    .81013E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .18087E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    24.589       1.0000          .0000       .10000E+07
     8 'Prefactor '    7.6159       1.0000          .0000       .10000E+07
     9 'norm      '    .31530E-05   1.0000          .0000       .10000E+07
    10 'norm      '    5.3971       1.0000          .0000       .10000E+07
    11 'Prefactor '    .56638E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .64742E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .60984       1.0000          .0000       .10000E+07
    14 'norm      '    .19168E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    103.03       1.0000          .0000       .10000E+07
    16 'Prefactor '    52.976       1.0000          .0000       .10000E+07
    17 'norm      '    1.5487       1.0000          .0000       .10000E+07
    18 'Normalizat'    .69520       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0555       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=   9603.015     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1495 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    5.9267       -.85685E-06** at limit **
   2  Prefactor     7.3096        15.590        .13367E-05    .37290E-02
   3  Prefactor     36.124        71.206        .39230E-05   -.18969E-02
   4  Prefactor     33.264        21.198        .98787E-06   -.85694E-02
   5  Prefactor     .17208E-08    12.658       -.12729E-05** at limit **
   6  Prefactor     .14134E-04    25.693       -.90544E-06** at limit **
   7  Prefactor     22.031        22.072       -.48836E-06   -.72478E-01
   8  Prefactor     7.5952        4.7005       -.42567E-06    .11577E-03
   9  norm           .0000        3.1034        .45705E-06** at limit **
  10  norm          5.4573        4.3406        .12918E-06    .62929E-03
  11  Prefactor      .0000        3.9988       -.32834E-06** at limit **
  12  Prefactor     .21003E-05    35.148        .43011E-07** at limit **
  13  norm          .62032        3.2472       -.86149E-06    .16634E-02
  14  norm           .0000        1.8695        .57200E-08** at limit **
  15  Prefactor     103.16        1.8650        .10512E-08   -.59145E-01
  16  Prefactor     52.806        4.2789       -.79335E-07   -.15367    
  17  norm          1.5518        1.0672        .67974E-07   -.19528E-02
  18  Normalizat    .69266        .28126       -.12071E-04   -.53582E-05
  19  Prefactor     1.0551        .10191        .27730E-05   -.34122E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  Prefactor  = 7.30963
  Prefactor  = 36.1243
  Prefactor  = 33.2642
  Prefactor  = 1.72085e-09
  Prefactor  = 1.41344e-05
  Prefactor  = 22.031
  Prefactor  = 7.59522
  norm       = 0
  norm       = 5.45729
  Prefactor  = 0
  Prefactor  = 2.10032e-06
  norm       = 0.620318
  norm       = 0
  Prefactor  = 103.157
  Prefactor  = 52.8062
  norm       = 1.55183
  Normalizat = 0.692659
  Prefactor  = 1.05505
 **********
 **   18 **HESSE 
 **********

 FCN=   9603.015     FROM HESSE     STATUS=OK           304 CALLS     1799 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    5.9421        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.3096        15.625        .36579E-03   -1.5654    
   3  Prefactor     36.124        71.014        .18656E-03   -1.5588    
   4  Prefactor     33.264        21.293        .17665E-03   -1.5593    
   5  Prefactor     .17208E-08    12.671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .14134E-04    45.636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.031        31.393        .20171E-03   -1.5614    
   8  Prefactor     7.5952        4.7207        .36315E-03   -1.5653    
   9  norm           .0000        3.1124        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.4573        4.3705        .43233E-03   -1.5661    
  11  Prefactor      .0000        4.0033        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .21003E-05    37.497        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .62032        4.2012        .68351E-03   -1.5692    
  14  norm           .0000        1.8656        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     103.16        45.965        .98525E-04   -1.5505    
  16  Prefactor     52.806        40.220        .13740E-03   -1.5563    
  17  norm          1.5518        1.0707        .85572E-04   -1.5683    
  18  Normalizat    .69266        .26550        .11355       -1.0418    
  19  Prefactor     1.0551        .92270E-01    .39597E-01   -.90916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39694e-06
Minuit parameter uncertainties:
  1  3.8903e-05
  2  15.6251
  3  71.0157
  4  21.2933
  5  0.000296408
  6  0.0507953
  7  31.3935
  8  4.7207
  9  7.4402e-07
  10  4.37051
  11  7.37402e-06
  12  0.017749
  13  3.22866
  14  6.48526e-07
  15  45.965
  16  40.2198
  17  1.07069
  18  0.265992
  19  0.0922838
Done.

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

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  5.457e+00  4.371e+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:  1.055e+00  9.228e-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:  6.927e-01  2.660e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.55
Ra Dec: 320.260 19.032
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 4.46e-08 +/- 3.57e-08
Energy Flux (Fixed Index): 2.04e-05 +/- 1.63e-05

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

Saving results to:
/scratch/kocevski/776350/likelihoodResults_688780801_689040001_4FGL_J2121.0+1901_daily_bin1734.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) = 9602.78376795
delta logL = 0.231332919517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9602.78353815
delta logL = 0.231562720803

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4902       1.0000          .0000       .10000E+07
     2 'alpha     '    2.7496       1.0000          .0000       5.0000    
     3 'Normalizat'    .64142       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0655       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=   9602.784     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      299 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4904        5.0828        .13101E-04    .17373E-02
   2  alpha         2.7494        .99120        .16109E-01    .34166E-03
   3  Normalizat    .64153        .28280        .52166E-03   -.12889E-03
   4  Prefactor     1.0654        .10232        .15410E-03   -.43419E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.49037
  alpha      = 2.74942
  Normalizat = 0.641528
  Prefactor  = 1.06543
 **********
 **   18 **HESSE 
 **********

 FCN=   9602.784     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4904        4.4821        .52403E-06   -1.5666    
   2  alpha         2.7494        .87753        .32218E-02    .99935E-01
   3  Normalizat    .64153        .28015        .20866E-04   -1.0625    
   4  Prefactor     1.0654        .10181        .30819E-04   -.90579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.54223e-11
Minuit parameter uncertainties:
  1  4.48205
  2  0.896838
  3  0.280772
  4  0.101829
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/776350': 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) = 9602.78353807
delta logL = 0.231562803905

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  4.490e+00  4.482e+00  0.000e+00  1.000e+06 ( 1.000e-12)
391        alpha:  2.749e+00  8.968e-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:  1.065e+00  1.018e-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:  6.415e-01  2.808e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.06
Ra Dec: 320.260 19.032
Photon Index (Free Index): 2.75 +/- 0.90
Photon Flux (Free Index): 8.58e-08 +/- 8.03e-08
Energy Flux (Free Index): 2.07e-05 +/- 1.38e-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/776350/cmap_HighResolution_688780801_689040001_4FGL_J2121.0+1901_daily_bin1734.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.82e-05', comment='SUCCESS', photon_flux='4.46e-08', energy_flux2='2.07e-05', photon_flux_error='3.57e-08', dlogl='2.32e-01', energy_flux='2.04e-05', photon_flux2='8.58e-08', job_status='DONE', time_completed='2022-11-02 00:49:23.082235', photon_index_error2='0.90', photon_index2='2.75', ts='3.55', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='1.38e-05', EG='0.69', time_epoch_completed='1667375363.08', return_code='0', job_id='776350', GAL2='1.07', EG2='0.64', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='8.03e-08', ts2='4.06', photon_index='2.16' WHERE bin_id='1734' AND source_name='4FGL J2121.0+1901' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Nov  2 00:49:23 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 776350: <4FGL_J2121.0+1901_daily_bin1734> in cluster <slac> Done

Job <4FGL_J2121.0+1901_daily_bin1734> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Nov  2 00:35:19 2022
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Nov  2 00:35:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Nov  2 00:35:20 2022
Terminated at Wed Nov  2 00:49:23 2022
Results reported at Wed Nov  2 00:49:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2121.0+1901_daily_bin1734 320.26 19.0324 688780801 689040001 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 :                                   766.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             385.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            844 sec.

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

