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


Performing analysis on: 4FGL_J2121.0+1901_daily_bin1738
RA = 320.26, Dec = 19.0324
tmin = 689817601, tmax = 690076801
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='410688', job_status='RUN', time_executed='2022-11-14 00:48:17.738005', time_epoch_executed='1668415697.74' WHERE source_name='4FGL J2121.0+1901' and cadence='daily' and bin_id='1738'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410688

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410688/ft1_4FGL_J2121.0+1901_daily_bin1738.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410688/ft2_4FGL_J2121.0+1901_daily_bin1738.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410688/ft1_4FGL_J2121.0+1901_daily_bin1738.fits outfile=/scratch/kocevski/410688/ft1_filteredMKT_4FGL_J2121.0+1901_daily_bin1738.fits ra=320.26 dec=19.0324 rad=12.0 tmin=689817601.0 tmax=690076801.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.11
user 3.85
sys 0.22

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

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

Number of photons that the gtmktime cut: 859

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410688/ft1_filtered_4FGL_J2121.0+1901_daily_bin1738.fits" evtable="EVENTS" scfile=/scratch/kocevski/410688/ft2_4FGL_J2121.0+1901_daily_bin1738.fits sctable="SC_DATA" outfile=/scratch/kocevski/410688/ltcube_689817601_690076801_4FGL_J2121.0+1901_daily_bin1738.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/410688/ft2_4FGL_J2121.0+1901_daily_bin1738.fits
.....................!
real 13.96
user 13.46
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410688/ft1_filtered_4FGL_J2121.0+1901_daily_bin1738.fits evtable="EVENTS" scfile=/scratch/kocevski/410688/ft2_4FGL_J2121.0+1901_daily_bin1738.fits sctable="SC_DATA" expcube=/scratch/kocevski/410688/ltcube_689817601_690076801_4FGL_J2121.0+1901_daily_bin1738.fits outfile=/scratch/kocevski/410688/expmap_689817601_690076801_4FGL_J2121.0+1901_daily_bin1738.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/410688/ltcube_689817601_690076801_4FGL_J2121.0+1901_daily_bin1738.fits
.....................!
real 191.50
user 186.09
sys 4.60

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/410688/ft1_filtered_4FGL_J2121.0+1901_daily_bin1738.fits scfile=/scratch/kocevski/410688/ft2_4FGL_J2121.0+1901_daily_bin1738.fits outfile=/scratch/kocevski/410688/cmap_689817601_690076801_4FGL_J2121.0+1901_daily_bin1738.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.78
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/410688/ft1_filtered_4FGL_J2121.0+1901_daily_bin1738.fits scfile=/scratch/kocevski/410688/ft2_4FGL_J2121.0+1901_daily_bin1738.fits outfile=/scratch/kocevski/410688/cmap_HighResolution_689817601_690076801_4FGL_J2121.0+1901_daily_bin1738.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.58
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15059E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    35.004       1.0000          .0000       .10000E+07
     3 'Prefactor '    21.996       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.7561       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.5182       1.0000          .0000       .10000E+07
     6 'Prefactor '    .58033E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    9.0604       1.0000          .0000       .10000E+07
     8 'Prefactor '    .15733E-03   1.0000          .0000       .10000E+07
     9 'norm      '    23.076       1.0000          .0000       .10000E+07
    10 'norm      '    2.3545       1.0000          .0000       .10000E+07
    11 'Prefactor '    .49212E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .26062E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .29475       1.0000          .0000       .10000E+07
    14 'norm      '    1.3299       1.0000          .0000       .10000E+07
    15 'Prefactor '    30.159       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.8592       1.0000          .0000       .10000E+07
    17 'norm      '    .11935E-07   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0499       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .93516       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=   9566.035     FROM MIGRAD    STATUS=CONVERGED    188 CALLS     1484 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    11.189       -.89783E-06** at limit **
   2  Prefactor     34.718        21.654        .21304E-06    .48807E-02
   3  Prefactor     17.308        101.01        .10921E-05    .98562E-02
   4  Prefactor     1.7256        18.016        .32791E-06   -.52461E-03
   5  Prefactor     1.3277        69.477        .63329E-06   -.22760E-02
   6  Prefactor      .0000        7.3992       -.23952E-06** at limit **
   7  Prefactor     9.2970        19.663        .23854E-06    .11833E-01
   8  Prefactor      .0000        3.0218        .62811E-08** at limit **
   9  norm          22.926        8.1172       -.38146E-07   -.11411E-02
  10  norm          2.3354        3.2965       -.36132E-07    .45553E-03
  11  Prefactor      .0000        3.3266        .30590E-06** at limit **
  12  Prefactor     .39756E-05    76.710       -.64173E-06** at limit **
  13  norm          .34269        6.1453       -.75846E-07    .14884E-02
  14  norm          1.3203        2.3755       -.11227E-06    .85734E-03
  15  Prefactor     29.494        39.580       -.30367E-06   -.71895E-01
  16  Prefactor     .80606        124.88        .10664E-05   -.26437E-01
  17  norm           .0000        .56568        .12305E-06** at limit **
  18  Normalizat    1.0519        .28631       -.53014E-05   -.17816E-04
  19  Prefactor     .93574        .10090        .34628E-05   -.13244E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  Prefactor  = 34.7184
  Prefactor  = 17.3078
  Prefactor  = 1.72559
  Prefactor  = 1.3277
  Prefactor  = 0
  Prefactor  = 9.297
  Prefactor  = 0
  norm       = 22.9256
  norm       = 2.33541
  Prefactor  = 0
  Prefactor  = 3.9756e-06
  norm       = 0.342694
  norm       = 1.32028
  Prefactor  = 29.4936
  Prefactor  = 0.806059
  norm       = 0
  Normalizat = 1.05185
  Prefactor  = 0.935743
 **********
 **   18 **HESSE 
 **********

 FCN=   9566.035     FROM HESSE     STATUS=OK           316 CALLS     1800 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    11.168        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     34.718        21.659        .16904E-03   -1.5590    
   3  Prefactor     17.308        102.34        .21328E-03   -1.5625    
   4  Prefactor     1.7256        17.931        .79061E-03   -1.5682    
   5  Prefactor     1.3277        68.807        .86702E-03   -1.5685    
   6  Prefactor      .0000        7.4218        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.2970        19.677        .33273E-03   -1.5647    
   8  Prefactor      .0000        3.0201        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          22.926        8.1089        .20822E-03   -1.5612    
  10  norm          2.3354        3.3215        .66770E-03   -1.5677    
  11  Prefactor      .0000        3.3095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .39756E-05    79.347        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .34269        1.4506        .58987E-02   -1.5696    
  14  norm          1.3203        2.3989        .95202E-03   -1.5685    
  15  Prefactor     29.494        41.457        .18212E-03   -1.5599    
  16  Prefactor     .80606        639.91        .76398E-03   -1.5690    
  17  norm           .0000        .55419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0519        .24873        .94162E-01   -.91313    
  19  Prefactor     .93574        .84664E-01    .45452E-01   -.94903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17476e-06
Minuit parameter uncertainties:
  1  3.6059e-05
  2  21.6591
  3  84.1742
  4  11.1252
  5  19.1161
  6  8.63145e-06
  7  19.6774
  8  1.23334e-06
  9  8.10886
  10  3.32153
  11  4.2504e-06
  12  0.0355225
  13  1.4101
  14  2.39886
  15  41.4572
  16  45.4274
  17  1.69902e-06
  18  0.249005
  19  0.0846755
Done.

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

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  2.335e+00  3.322e+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.357e-01  8.468e-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.052e+00  2.490e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/410688/likelihoodResults_689817601_690076801_4FGL_J2121.0+1901_daily_bin1738.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) = 9565.67367133
delta logL = 0.361305495346

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9565.63620954
delta logL = 0.398767276654

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4615       1.0000          .0000       .10000E+07
     2 'alpha     '    1.2839       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0615       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93518       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=   9565.636     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      211 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4611        1.8283        .88960E-03    .40626E-03
   2  alpha         1.2837        .49883        .50000       -.58691E-04
   3  Normalizat    1.0615        .22699        .93773E-01    .36896E-03
   4  Prefactor     .93516        .83452E-01    .45452E-01    .10433E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 1.46111
  alpha      = 1.2837
  Normalizat = 1.06153
  Prefactor  = 0.935165
 **********
 **   18 **HESSE 
 **********

 FCN=   9565.636     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4611        2.5628        .14406E-04   -1.5684    
   2  alpha         1.2837        .84308        .21956E-01   -.50810    
   3  Normalizat    1.0615        .26828        .41540E-03   -.90997    
   4  Prefactor     .93516        .98930E-01    .16069E-03   -.94923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.12667e-09
Minuit parameter uncertainties:
  1  2.56276
  2  0.865554
  3  0.268628
  4  0.0989489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410688': 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) = 9565.63620949
delta logL = 0.398767335644

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  1.461e+00  2.563e+00  0.000e+00  1.000e+06 ( 1.000e-12)
391        alpha:  1.284e+00  8.656e-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.352e-01  9.895e-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.062e+00  2.686e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.60
Ra Dec: 320.260 19.032
Photon Index (Free Index): 1.28 +/- 0.87
Photon Flux (Free Index): 6.10e-09 +/- 1.07e-08
Energy Flux (Free Index): 2.36e-05 +/- 4.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/410688/cmap_HighResolution_689817601_690076801_4FGL_J2121.0+1901_daily_bin1738.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.20e-05', comment='SUCCESS', energy_flux2='2.36e-05', dlogl='3.99e-01', photon_flux2='6.10e-09', job_status='DONE', time_completed='2022-11-14 01:01:38.828578', photon_index_error2='0.87', photon_index2='1.28', ts='0.80', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='9.17e-08', energy_flux_error2='4.18e-05', EG='1.05', time_epoch_completed='1668416498.83', return_code='0', job_id='410688', GAL2='0.94', EG2='1.06', return_code2='0', photon_flux_error2='1.07e-08', ts2='1.60', photon_index='2.16' WHERE bin_id='1738' AND source_name='4FGL J2121.0+1901' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Nov 14 01:01:38 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 410688: <4FGL_J2121.0+1901_daily_bin1738> in cluster <slac> Done

Job <4FGL_J2121.0+1901_daily_bin1738> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Nov 14 00:45:39 2022
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Nov 14 00:48:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Nov 14 00:48:08 2022
Terminated at Mon Nov 14 01:01:39 2022
Results reported at Mon Nov 14 01:01:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2121.0+1901_daily_bin1738 320.26 19.0324 689817601 690076801 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 :                                   802.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            960 sec.

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

