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


Performing analysis on: 4FGL_J2121.0+1901_daily_bin1761
RA = 320.26, Dec = 19.0324
tmin = 695779201, tmax = 696038401
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='936436', job_status='RUN', time_executed='2023-01-22 01:48:06.794455', time_epoch_executed='1674380886.79' WHERE source_name='4FGL J2121.0+1901' and cadence='daily' and bin_id='1761'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936436

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936436/ft1_4FGL_J2121.0+1901_daily_bin1761.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936436/ft2_4FGL_J2121.0+1901_daily_bin1761.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936436/ft1_4FGL_J2121.0+1901_daily_bin1761.fits outfile=/scratch/kocevski/936436/ft1_filteredMKT_4FGL_J2121.0+1901_daily_bin1761.fits ra=320.26 dec=19.0324 rad=12.0 tmin=695779201.0 tmax=696038401.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 5.08
user 4.78
sys 0.24

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

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

Number of photons that the gtmktime cut: 917

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936436/ft1_filtered_4FGL_J2121.0+1901_daily_bin1761.fits evtable="EVENTS" scfile=/scratch/kocevski/936436/ft2_4FGL_J2121.0+1901_daily_bin1761.fits sctable="SC_DATA" expcube=/scratch/kocevski/936436/ltcube_695779201_696038401_4FGL_J2121.0+1901_daily_bin1761.fits outfile=/scratch/kocevski/936436/expmap_695779201_696038401_4FGL_J2121.0+1901_daily_bin1761.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/936436/ltcube_695779201_696038401_4FGL_J2121.0+1901_daily_bin1761.fits
.....................!
real 193.87
user 186.26
sys 5.82

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/936436/ft1_filtered_4FGL_J2121.0+1901_daily_bin1761.fits scfile=/scratch/kocevski/936436/ft2_4FGL_J2121.0+1901_daily_bin1761.fits outfile=/scratch/kocevski/936436/cmap_695779201_696038401_4FGL_J2121.0+1901_daily_bin1761.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936436/ft1_filtered_4FGL_J2121.0+1901_daily_bin1761.fits scfile=/scratch/kocevski/936436/ft2_4FGL_J2121.0+1901_daily_bin1761.fits outfile=/scratch/kocevski/936436/cmap_HighResolution_695779201_696038401_4FGL_J2121.0+1901_daily_bin1761.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.56
user 0.36
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '     .0000       1.0000          .0000       .10000E+07
     2 'Prefactor '    .75795E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .65160E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .19920E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    19.851       1.0000          .0000       .10000E+07
     6 'Prefactor '    .85427E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .10047E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .77455       1.0000          .0000       .10000E+07
     9 'norm      '    .23560E-03   1.0000          .0000       .10000E+07
    10 'norm      '    3.1056       1.0000          .0000       .10000E+07
    11 'Prefactor '    6.7414       1.0000          .0000       .10000E+07
    12 'Prefactor '    .17817       1.0000          .0000       .10000E+07
    13 'norm      '    2.7226       1.0000          .0000       .10000E+07
    14 'norm      '    4.7983       1.0000          .0000       .10000E+07
    15 'Prefactor '    12.056       1.0000          .0000       .10000E+07
    16 'Prefactor '    .78776E-02   1.0000          .0000       .10000E+07
    17 'norm      '    .18869       1.0000          .0000       .10000E+07
    18 'Normalizat'    .41724       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1870       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=   9729.982     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     1546 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        11.557       -.20446E-07** at limit **
   2  Prefactor      .0000        3.9852       -.13303E-07** at limit **
   3  Prefactor      .0000        29.017        .38398E-06** at limit **
   4  Prefactor      .0000        43.532        .21577E-06** at limit **
   5  Prefactor     19.815        24.910        .12169E-06    .28298E-03
   6  Prefactor      .0000        122.33        .71014E-06** at limit **
   7  Prefactor      .0000        13.350        .44685E-07** at limit **
   8  Prefactor     .76511        3.5518        .16321E-06   -.86593E-04
   9  norm           .0000        3.6513       -.37739E-07** at limit **
  10  norm          3.1053        3.4156       -.11485E-07    .29103E-04
  11  Prefactor     6.7598        6.6197        .92677E-07   -.19886E-03
  12  Prefactor      .0000        41.413        .27696E-06** at limit **
  13  norm          2.7180        2.2592        .15616E-07   -.10331E-03
  14  norm          4.7977        2.8221        .12251E-07   -.43364E-05
  15  Prefactor     12.270        3.4166       -.31242E-07    .20924E-02
  16  Prefactor      .0000        13.753        .32814E-06** at limit **
  17  norm          .18844        .54713       -.11617E-07** at limit **
  18  Normalizat    .41673        .26594       -.59476E-05    .81783E-05
  19  Prefactor     1.1871        .99272E-01    .74919E-06    .12316E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 19.8153
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0.765112
  norm       = 0
  norm       = 3.10534
  Prefactor  = 6.75985
  Prefactor  = 0
  norm       = 2.71801
  norm       = 4.79773
  Prefactor  = 12.2703
  Prefactor  = 0
  norm       = 0.188437
  Normalizat = 0.416728
  Prefactor  = 1.18711
 **********
 **   18 **HESSE 
 **********

 FCN=   9729.982     FROM HESSE     STATUS=OK           306 CALLS     1852 TOTAL
                     EDM=   .72E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        11.536        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        3.9900        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        29.020        .14981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        43.447        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.815        25.255        .22452E-03   -1.5619    
   6  Prefactor      .0000        122.10        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        13.350        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .76511        3.6229        .54852E-03   -1.5690    
   9  norm           .0000        3.6423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.1053        3.4307        .57516E-03   -1.5673    
  11  Prefactor     6.7598        6.7836        .38622E-03   -1.5656    
  12  Prefactor      .0000        41.395        .12178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.7180        2.3755        .61692E-03   -1.5675    
  14  norm          4.7977        2.8429        .45904E-03   -1.5664    
  15  Prefactor     12.270        29.160        .28826E-03   -1.5638    
  16  Prefactor      .0000        13.764        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .18844        .49166        .28213E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .41673        .29934        .13557       -1.1645    
  19  Prefactor     1.1871        .10614        .34947E-01   -.86729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.1828e-07
Minuit parameter uncertainties:
  1  7.98688e-07
  2  1.0552e-06
  3  2.98335e-05
  4  5.25553e-05
  5  25.2549
  6  0.00010725
  7  6.0933e-06
  8  3.32983
  9  1.86112e-06
  10  3.43071
  11  6.7836
  12  4.36638e-06
  13  2.37547
  14  2.84289
  15  29.1607
  16  2.43992e-06
  17  0.491665
  18  0.300502
  19  0.106164
Done.

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

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  3.105e+00  3.431e+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.187e+00  1.062e-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:  4.167e-01  3.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.40
Ra Dec: 320.260 19.032
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 2.54e-08 +/- 2.80e-08
Energy Flux (Fixed Index): 1.16e-05 +/- 1.28e-05

TS (Fixed Index): 1.40
Ra Dec: 320.260 19.032
Photon Flux Upper Limit: 9.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.40e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/936436/likelihoodResults_695779201_696038401_4FGL_J2121.0+1901_daily_bin1761.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) = 9729.87186936
delta logL = 0.109817439943

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9729.86959548
delta logL = 0.11209131326

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3146       1.0000          .0000       .10000E+07
     2 'alpha     '    1.8104       1.0000          .0000       5.0000    
     3 'Normalizat'    .42477       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1856       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=   9729.870     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      242 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3148        3.5460        .18554E-04   -.45096E-03
   2  alpha         1.8104        .68979        .22160E-01   -.61368E-05
   3  Normalizat    .42480        .24948        .59502E-03    .27551E-04
   4  Prefactor     1.1856        .97937E-01    .14336E-03    .27010E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.3148
  alpha      = 1.81039
  Normalizat = 0.424798
  Prefactor  = 1.18561
 **********
 **   18 **HESSE 
 **********

 FCN=   9729.870     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3148        3.5699        .74218E-06   -1.5672    
   2  alpha         1.8104        .69455        .88640E-03   -.27947    
   3  Normalizat    .42480        .24937        .23801E-04   -1.1604    
   4  Prefactor     1.1856        .97902E-01    .57344E-05   -.86775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2565e-11
Minuit parameter uncertainties:
  1  3.56989
  2  0.7046
  3  0.250025
  4  0.0979165
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936436': 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) = 9729.86959547
delta logL = 0.112091322268

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  3.315e+00  3.570e+00  0.000e+00  1.000e+06 ( 1.000e-12)
391        alpha:  1.810e+00  7.046e-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.186e+00  9.792e-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:  4.248e-01  2.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.63
Ra Dec: 320.260 19.032
Photon Index (Free Index): 1.81 +/- 0.70
Photon Flux (Free Index): 1.84e-08 +/- 2.50e-08
Energy Flux (Free Index): 1.67e-05 +/- 2.24e-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/936436/cmap_HighResolution_695779201_696038401_4FGL_J2121.0+1901_daily_bin1761.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-05', comment='SUCCESS', photon_flux='2.54e-08', energy_flux2='1.67e-05', photon_flux_error='2.80e-08', dlogl='1.12e-01', energy_flux='1.16e-05', photon_flux2='1.84e-08', job_status='DONE', time_completed='2023-01-22 02:01:49.907423', photon_index_error2='0.70', photon_index2='1.81', ts='1.40', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='9.62e-08', energy_flux_error2='2.24e-05', EG='0.42', time_epoch_completed='1674381709.91', return_code='0', job_id='936436', GAL2='1.19', EG2='0.42', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='2.50e-08', ts2='1.63', photon_index='2.16' WHERE bin_id='1761' AND source_name='4FGL J2121.0+1901' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan 22 02:01:49 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 936436: <4FGL_J2121.0+1901_daily_bin1761> in cluster <slac> Done

Job <4FGL_J2121.0+1901_daily_bin1761> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Jan 22 01:45:13 2023
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan 22 01:45:38 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan 22 01:45:38 2023
Terminated at Sun Jan 22 02:01:50 2023
Results reported at Sun Jan 22 02:01:50 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2121.0+1901_daily_bin1761 320.26 19.0324 695779201 696038401 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 :                                   822.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            997 sec.

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

