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


Performing analysis on: 4FGL_J1421.1+3859_daily_bin1770
RA = 215.292, Dec = 38.9966
tmin = 698112001, tmax = 698371201
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='487856', job_status='RUN', time_executed='2023-02-18 00:56:23.827905', time_epoch_executed='1676710583.83' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='1770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/487856

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/487856/ft1_4FGL_J1421.1+3859_daily_bin1770.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/487856/ft2_4FGL_J1421.1+3859_daily_bin1770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/487856/ft1_4FGL_J1421.1+3859_daily_bin1770.fits outfile=/scratch/kocevski/487856/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin1770.fits ra=215.292 dec=38.9966 rad=12.0 tmin=698112001.0 tmax=698371201.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.25
user 3.03
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/487856/ft2_4FGL_J1421.1+3859_daily_bin1770.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/487856/ft2_4FGL_J1421.1+3859_daily_bin1770.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/487856/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin1770.fits evtable="EVENTS" outfile="/scratch/kocevski/487856/ft1_filtered_4FGL_J1421.1+3859_daily_bin1770.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.42
user 0.28
sys 0.12

Number of photons that the gtmktime cut: 475

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/487856/ft1_filtered_4FGL_J1421.1+3859_daily_bin1770.fits" evtable="EVENTS" scfile=/scratch/kocevski/487856/ft2_4FGL_J1421.1+3859_daily_bin1770.fits sctable="SC_DATA" outfile=/scratch/kocevski/487856/ltcube_698112001_698371201_4FGL_J1421.1+3859_daily_bin1770.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/487856/ft2_4FGL_J1421.1+3859_daily_bin1770.fits
.....................!
real 8.88
user 8.59
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/487856/ft1_filtered_4FGL_J1421.1+3859_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/487856/ft2_4FGL_J1421.1+3859_daily_bin1770.fits sctable="SC_DATA" expcube=/scratch/kocevski/487856/ltcube_698112001_698371201_4FGL_J1421.1+3859_daily_bin1770.fits outfile=/scratch/kocevski/487856/expmap_698112001_698371201_4FGL_J1421.1+3859_daily_bin1770.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/487856/ltcube_698112001_698371201_4FGL_J1421.1+3859_daily_bin1770.fits
.....................!
real 140.63
user 137.42
sys 2.94

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
Added 181 point sources and 0 extended sources

Setting source of interest to:
4FGL J1421.1+3859 @ 215.292 38.9966

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/487856/ft1_filtered_4FGL_J1421.1+3859_daily_bin1770.fits scfile=/scratch/kocevski/487856/ft2_4FGL_J1421.1+3859_daily_bin1770.fits outfile=/scratch/kocevski/487856/cmap_698112001_698371201_4FGL_J1421.1+3859_daily_bin1770.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=215.292 yref=38.9966 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.44
user 0.28
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/487856/ft1_filtered_4FGL_J1421.1+3859_daily_bin1770.fits scfile=/scratch/kocevski/487856/ft2_4FGL_J1421.1+3859_daily_bin1770.fits outfile=/scratch/kocevski/487856/cmap_HighResolution_698112001_698371201_4FGL_J1421.1+3859_daily_bin1770.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=215.292 yref=38.9966 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.45
user 0.28
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/487856/ft1_filtered_4FGL_J1421.1+3859_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/487856/ft2_4FGL_J1421.1+3859_daily_bin1770.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/487856/Model_4FGL_J1421.1+3859_daily_bin1770.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/487856/ft1_filtered_4FGL_J1421.1+3859_daily_bin1770.fits.....................!
real 31.35
user 30.32
sys 0.90

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/487856/ft1_filtered_4FGL_J1421.1+3859_daily_bin1770.fits', '/scratch/kocevski/487856/ft2_4FGL_J1421.1+3859_daily_bin1770.fits', expMap='/scratch/kocevski/487856/expmap_698112001_698371201_4FGL_J1421.1+3859_daily_bin1770.fits', expCube='/scratch/kocevski/487856/ltcube_698112001_698371201_4FGL_J1421.1+3859_daily_bin1770.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/487856/Model_4FGL_J1421.1+3859_daily_bin1770.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1421.1+3859'

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.965e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
292        Index:  2.670e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  9.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/487856/ft1_filtered_4FGL_J1421.1+3859_daily_bin1770.fits
Spacecraft file(s): /scratch/kocevski/487856/ft2_4FGL_J1421.1+3859_daily_bin1770.fits
Exposure map: /scratch/kocevski/487856/expmap_698112001_698371201_4FGL_J1421.1+3859_daily_bin1770.fits
Exposure cube: /scratch/kocevski/487856/ltcube_698112001_698371201_4FGL_J1421.1+3859_daily_bin1770.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/487856/Model_4FGL_J1421.1+3859_daily_bin1770.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) = 5124.26508932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .84924E-01   1.0000          .0000       .10000E+07
     2 'norm      '    1.0578       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.5646       1.0000          .0000       .10000E+07
     4 'norm      '    7.3481       1.0000          .0000       .10000E+07
     5 'Prefactor '    29.198       1.0000          .0000       .10000E+07
     6 'Prefactor '    8.2627       1.0000          .0000       .10000E+07
     7 'Prefactor '    .72968E-04   1.0000          .0000       .10000E+07
     8 'norm      '    1.7311       1.0000          .0000       .10000E+07
     9 'Prefactor '    .25790E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .29183E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    35.028       1.0000          .0000       .10000E+07
    12 'norm      '    2.3956       1.0000          .0000       .10000E+07
    13 'norm      '    2.3237       1.0000          .0000       .10000E+07
    14 'Prefactor '    .27402E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    182.17       1.0000          .0000       .10000E+07
    16 'norm      '    .12476E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .73596E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    5.3944       1.0000          .0000       .10000E+07
    19 'Prefactor '    3.0502       1.0000          .0000       .10000E+07
    20 'norm      '    .96898       1.0000          .0000       .10000E+07
    21 'norm      '    .11563E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    11.741       1.0000          .0000       .10000E+07
    23 'Prefactor '    92.089       1.0000          .0000       .10000E+07
    24 'Prefactor '    .50567E-03   1.0000          .0000       .10000E+07
    25 'Normalizat'    .87216       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0191       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5124.258     FROM MIGRAD    STATUS=CONVERGED    184 CALLS     2248 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77716E-09    28.091        .13207E-05** at limit **
   2  norm          1.0569        1.1693       -.13520E-06   -.53235E-03
   3  Prefactor     7.5503        5.3360       -.49943E-07   -.14913E-02
   4  norm          7.3562        1.7987        .27547E-07    .65424E-02
   5  Prefactor     30.247        45.177       -.87270E-05   -.84026E-02
   6  Prefactor     8.2969        5.7280       -.47876E-06    .29017E-02
   7  Prefactor     .99920E-09    13.344       -.47858E-06** at limit **
   8  norm          1.7332        3.5154       -.32275E-06    .64663E-02
   9  Prefactor     .77716E-09    8.5986        .60034E-06** at limit **
  10  Prefactor      .0000        9.8395       -.25021E-05** at limit **
  11  Prefactor     34.995        7.5522        .23545E-06   -.10134E-02
  12  norm          2.3792        10.692        .88419E-05    .44443E-02
  13  norm          2.3119        9.1531       -.29343E-05   -.10550E-02
  14  Prefactor     .14988E-06    2.4500        .10222E-05** at limit **
  15  Prefactor     181.61        21.605       -.89075E-06   -.89587E-01
  16  norm          .15321E-07    6.0246       -.35483E-05** at limit **
  17  Prefactor     .76883E-07    3.8743        .18188E-05** at limit **
  18  Prefactor     5.4318        6.0864       -.14594E-06   -.24368E-02
  19  Prefactor     3.0966        8.4298       -.42198E-06    .17945E-02
  20  norm          .96960        1.1197        .36564E-07    .22301E-02
  21  norm           .0000        3.5625       -.83173E-06** at limit **
  22  Prefactor     11.595        10.665       -.10542E-05   -.87001E-02
  23  Prefactor     91.087        60.698       -.81150E-05    .22108E-01
  24  Prefactor     .83267E-09    37.185       -.10215E-05** at limit **
  25  Normalizat    .87232        .23323        .27526E-04    .95336E-04
  26  Prefactor     1.0193        .26237       -.18743E-04   -.10727E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.77156e-10
  norm       = 1.05689
  Prefactor  = 7.55026
  norm       = 7.35619
  Prefactor  = 30.247
  Prefactor  = 8.2969
  Prefactor  = 9.99201e-10
  norm       = 1.7332
  Prefactor  = 7.77156e-10
  Prefactor  = 0
  Prefactor  = 34.9952
  norm       = 2.37917
  norm       = 2.31191
  Prefactor  = 1.4988e-07
  Prefactor  = 181.605
  norm       = 1.53211e-08
  Prefactor  = 7.68829e-08
  Prefactor  = 5.43181
  Prefactor  = 3.09657
  norm       = 0.969605
  norm       = 0
  Prefactor  = 11.5948
  Prefactor  = 91.087
  Prefactor  = 8.32667e-10
  Normalizat = 0.872316
  Prefactor  = 1.0193
 **********
 **   18 **HESSE 
 **********

 FCN=   5124.258     FROM HESSE     STATUS=OK           512 CALLS     2760 TOTAL
                     EDM=   .45E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77716E-09    28.081        .14353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0569        1.2707        .18359E-02   -1.5687    
   3  Prefactor     7.5503        5.3407        .36439E-03   -1.5653    
   4  norm          7.3562        14.309        .36977E-03   -1.5654    
   5  Prefactor     30.247        46.349        .18510E-03   -1.5598    
   6  Prefactor     8.2969        5.7348        .34853E-03   -1.5650    
   7  Prefactor     .99920E-09    13.314        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7332        3.5596        .79755E-03   -1.5682    
   9  Prefactor     .77716E-09    8.6150        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        9.8663        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     34.995        7.5681        .16898E-03   -1.5590    
  12  norm          2.3792        10.939        .66136E-03   -1.5677    
  13  norm          2.3119        9.2430        .67258E-03   -1.5678    
  14  Prefactor     .14988E-06    5.8573        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     181.61        54.260        .74097E-04   -1.5438    
  16  norm          .15321E-07    6.3911        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .76883E-07    5.6251        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.4318        6.0957        .43243E-03   -1.5661    
  19  Prefactor     3.0966        8.4692        .58066E-03   -1.5673    
  20  norm          .96960        1.1276        .42664E-03   -1.5688    
  21  norm           .0000        3.5530        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.595        10.819        .29211E-03   -1.5640    
  23  Prefactor     91.087        64.574        .10421E-03   -1.5517    
  24  Prefactor     .83267E-09    37.171        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .87232        .20069        .44545E-01   -.97440    
  26  Prefactor     1.0193        .22076        .63071E-01   -.92089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48191e-07
Minuit parameter uncertainties:
  1  0.000295111
  2  1.2707
  3  5.34067
  4  14.3086
  5  46.35
  6  5.73485
  7  0.000228918
  8  3.55956
  9  0.000165775
  10  1.28269e-05
  11  7.56811
  12  10.2029
  13  9.24309
  14  0.00187381
  15  54.2604
  16  0.000625494
  17  0.00131518
  18  6.09571
  19  8.46922
  20  1.12759
  21  8.45287e-06
  22  10.8192
  23  64.575
  24  0.000357322
  25  0.200863
  26  0.220959
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  0.000e+00  1.283e-05  0.000e+00  1.000e+06 ( 1.000e-13)
292        Index:  2.670e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  9.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  1.019e+00  2.210e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  8.723e-01  2.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 215.292 38.997
Photon Flux Upper Limit: 8.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/487856/likelihoodResults_698112001_698371201_4FGL_J1421.1+3859_daily_bin1770.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) = 5124.30654609
delta logL = -0.0489709828371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5122.94413746
delta logL = 1.31343764889

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15924E-04   1.0000          .0000       .10000E+07
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    .74650       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1229       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5124.258     FROM MIGRAD    STATUS=CONVERGED    131 CALLS      560 TOTAL
                     EDM=   .43E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    .36712        .42118E-03** at limit **
   2  Index         1.5350        5.8499        .50000       -.90949E-11
   3  Normalizat    .87232        .99890E-03    .42908E-01   -.43840E-04
   4  Prefactor     1.0193        .11670E-02    .63062E-01   -.14661E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 1.53496
  Normalizat = 0.872315
  Prefactor  = 1.0193
 **********
 **   18 **HESSE 
 **********

 FCN=   5124.258     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      589 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    1.8094        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5350        5.7543        .50000       -.76565    
   3  Normalizat    .87232        .22164E-02    .25749E-03   -2.1672    
   4  Prefactor     1.0193        .25879E-02    .27894E-03   -.92089    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.11262e-12
Minuit parameter uncertainties:
  1  1.82458e-05
  2  115262
  3  0.00221635
  4  0.00258786
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/487856': 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): 102
logL (Free Index) = 5124.25757511
delta logL = 2.27373675443e-11

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  5.551e-11  1.825e-05  0.000e+00  1.000e+06 ( 1.000e-13)
292        Index:  1.535e+00  1.153e+05  0.000e+00  1.000e+01 (-1.000e+00)
293        Scale:  9.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  1.019e+00  2.588e-03  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  8.723e-01  2.216e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 215.292 38.997

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/487856/cmap_HighResolution_698112001_698371201_4FGL_J1421.1+3859_daily_bin1770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.42e-03', job_status='DONE', photon_flux_upper_limit='8.18e-08', time_completed='2023-02-18 01:03:47.448562', job_id='487856', GAL2='1.02', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1676711027.45', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.27e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1770' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 18 01:03:47 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 487856: <4FGL_J1421.1+3859_daily_bin1770> in cluster <slac> Done

Job <4FGL_J1421.1+3859_daily_bin1770> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Feb 18 00:55:29 2023
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 18 00:55:30 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 18 00:55:30 2023
Terminated at Sat Feb 18 01:03:48 2023
Results reported at Sat Feb 18 01:03:48 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin1770 215.292 38.9966 698112001 698371201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1421.1+3859 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   444.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   497 sec.
    Turnaround time :                            499 sec.

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

