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


Performing analysis on: 4FGL_J1421.1+3859_daily_bin1718
RA = 215.292, Dec = 38.9966
tmin = 684633601, tmax = 684892801
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='145016', job_status='RUN', time_executed='2022-09-16 18:20:07.901642', time_epoch_executed='1663377607.9' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='1718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/145016

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/145016/ft1_4FGL_J1421.1+3859_daily_bin1718.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/145016/ft2_4FGL_J1421.1+3859_daily_bin1718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/145016/ft1_4FGL_J1421.1+3859_daily_bin1718.fits outfile=/scratch/kocevski/145016/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin1718.fits ra=215.292 dec=38.9966 rad=12.0 tmin=684633601.0 tmax=684892801.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.28
user 3.04
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/145016/ft2_4FGL_J1421.1+3859_daily_bin1718.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/145016/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin1718.fits evtable="EVENTS" outfile="/scratch/kocevski/145016/ft1_filtered_4FGL_J1421.1+3859_daily_bin1718.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.55
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 383

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/145016/ft1_filtered_4FGL_J1421.1+3859_daily_bin1718.fits" evtable="EVENTS" scfile=/scratch/kocevski/145016/ft2_4FGL_J1421.1+3859_daily_bin1718.fits sctable="SC_DATA" outfile=/scratch/kocevski/145016/ltcube_684633601_684892801_4FGL_J1421.1+3859_daily_bin1718.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/145016/ft2_4FGL_J1421.1+3859_daily_bin1718.fits
.....................!
real 15.95
user 15.43
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/145016/ft1_filtered_4FGL_J1421.1+3859_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/145016/ft2_4FGL_J1421.1+3859_daily_bin1718.fits sctable="SC_DATA" expcube=/scratch/kocevski/145016/ltcube_684633601_684892801_4FGL_J1421.1+3859_daily_bin1718.fits outfile=/scratch/kocevski/145016/expmap_684633601_684892801_4FGL_J1421.1+3859_daily_bin1718.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/145016/ltcube_684633601_684892801_4FGL_J1421.1+3859_daily_bin1718.fits
.....................!
real 192.80
user 186.41
sys 5.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
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/145016/ft1_filtered_4FGL_J1421.1+3859_daily_bin1718.fits scfile=/scratch/kocevski/145016/ft2_4FGL_J1421.1+3859_daily_bin1718.fits outfile=/scratch/kocevski/145016/cmap_684633601_684892801_4FGL_J1421.1+3859_daily_bin1718.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/145016/ft1_filtered_4FGL_J1421.1+3859_daily_bin1718.fits scfile=/scratch/kocevski/145016/ft2_4FGL_J1421.1+3859_daily_bin1718.fits outfile=/scratch/kocevski/145016/cmap_HighResolution_684633601_684892801_4FGL_J1421.1+3859_daily_bin1718.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/145016/ft1_filtered_4FGL_J1421.1+3859_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/145016/ft2_4FGL_J1421.1+3859_daily_bin1718.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/145016/Model_4FGL_J1421.1+3859_daily_bin1718.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/145016/ft1_filtered_4FGL_J1421.1+3859_daily_bin1718.fits.....................!
real 37.89
user 36.50
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/145016/ft1_filtered_4FGL_J1421.1+3859_daily_bin1718.fits', '/scratch/kocevski/145016/ft2_4FGL_J1421.1+3859_daily_bin1718.fits', expMap='/scratch/kocevski/145016/expmap_684633601_684892801_4FGL_J1421.1+3859_daily_bin1718.fits', expCube='/scratch/kocevski/145016/ltcube_684633601_684892801_4FGL_J1421.1+3859_daily_bin1718.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/145016/Model_4FGL_J1421.1+3859_daily_bin1718.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/145016/ft1_filtered_4FGL_J1421.1+3859_daily_bin1718.fits
Spacecraft file(s): /scratch/kocevski/145016/ft2_4FGL_J1421.1+3859_daily_bin1718.fits
Exposure map: /scratch/kocevski/145016/expmap_684633601_684892801_4FGL_J1421.1+3859_daily_bin1718.fits
Exposure cube: /scratch/kocevski/145016/ltcube_684633601_684892801_4FGL_J1421.1+3859_daily_bin1718.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/145016/Model_4FGL_J1421.1+3859_daily_bin1718.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) = 4144.92301296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.686       1.0000          .0000       .10000E+07
     2 'norm      '    .11985E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    34.805       1.0000          .0000       .10000E+07
     4 'norm      '    26.422       1.0000          .0000       .10000E+07
     5 'Prefactor '    11.500       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.7626       1.0000          .0000       .10000E+07
     7 'Prefactor '    12.077       1.0000          .0000       .10000E+07
     8 'norm      '    .15269E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .50892E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    5.8341       1.0000          .0000       .10000E+07
    11 'Prefactor '    33.928       1.0000          .0000       .10000E+07
    12 'norm      '    .37698E-01   1.0000          .0000       .10000E+07
    13 'norm      '    1.3180       1.0000          .0000       .10000E+07
    14 'Prefactor '    .72916       1.0000          .0000       .10000E+07
    15 'Prefactor '    .33068E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .55292E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .38323       1.0000          .0000       .10000E+07
    18 'Prefactor '    8.8203       1.0000          .0000       .10000E+07
    19 'Prefactor '    .12099E-04   1.0000          .0000       .10000E+07
    20 'norm      '    .28577E-04   1.0000          .0000       .10000E+07
    21 'norm      '    .53135E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .32770       1.0000          .0000       .10000E+07
    23 'Prefactor '    .39881       1.0000          .0000       .10000E+07
    24 'Prefactor '    10.832       1.0000          .0000       .10000E+07
    25 'Normalizat'    .96932       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90347       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=   4144.922     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     3577 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.779        15.472        .53669E-06   -.14667    
   2  norm           .0000        1.2076       -.13253E-06** at limit **
   3  Prefactor     34.829        10.108        .41337E-06    .79044E-02
   4  norm          26.359        13.261       -.21016E-06   -.10635    
   5  Prefactor     11.246        28.375       -.11082E-05    .11736E-01
   6  Prefactor     3.7668        3.7522       -.68236E-06   -.44327E-03
   7  Prefactor     11.971        5.1755       -.65243E-07   -.38211E-01
   8  norm          .38858E-09    1.8604       -.19402E-06** at limit **
   9  Prefactor     .23036E-05    10.931       -.15678E-05** at limit **
  10  Prefactor     6.2896        19.547       -.19815E-06   -.15709E-01
  11  Prefactor     33.898        6.8913       -.23116E-06   -.42190E-01
  12  norm          .71387E-06    9.6155       -.12390E-05** at limit **
  13  norm          1.2860        10.641        .28659E-06   -.99213E-02
  14  Prefactor     .70388        1.5892       -.11672E-06   -.81161E-02
  15  Prefactor     .12280E-05    11.496       -.16325E-05** at limit **
  16  norm          .38858E-09    4.2029        .24178E-06** at limit **
  17  Prefactor     .37820        4.3234        .47366E-07    .11661E-01
  18  Prefactor     8.9126        7.8740       -.79284E-06   -.27766E-01
  19  Prefactor     .16653E-09    2.0113        .81357E-07** at limit **
  20  norm          .55511E-10    2.2128       -.12663E-06** at limit **
  21  norm           .0000        .85004        .12325E-06** at limit **
  22  Prefactor     .33763        6.0299        .52495E-06    .27761E-01
  23  Prefactor     .35829E-05    6.8541       -.10746E-05** at limit **
  24  Prefactor     10.792        1.6543       -.24570E-07    .32841E-01
  25  Normalizat    .96837        .25247        .84012E-06    .29102E-04
  26  Prefactor     .90437        .26870        .74184E-05    .43165E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.7793
  norm       = 0
  Prefactor  = 34.8295
  norm       = 26.3585
  Prefactor  = 11.2463
  Prefactor  = 3.76679
  Prefactor  = 11.9707
  norm       = 3.88578e-10
  Prefactor  = 2.3036e-06
  Prefactor  = 6.28965
  Prefactor  = 33.8978
  norm       = 7.13873e-07
  norm       = 1.28603
  Prefactor  = 0.703883
  Prefactor  = 1.22796e-06
  norm       = 3.88578e-10
  Prefactor  = 0.3782
  Prefactor  = 8.91264
  Prefactor  = 1.66533e-10
  norm       = 5.55112e-11
  norm       = 0
  Prefactor  = 0.337629
  Prefactor  = 3.58286e-06
  Prefactor  = 10.792
  Normalizat = 0.968366
  Prefactor  = 0.904372
 **********
 **   18 **HESSE 
 **********

 FCN=   4144.922     FROM HESSE     STATUS=OK           528 CALLS     4105 TOTAL
                     EDM=   .45E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.779        504.79        .20131E-03   -1.5608    
   2  norm           .0000        1.2054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     34.829        11.446        .16952E-03   -1.5590    
   4  norm          26.359        26.524        .19458E-03   -1.5605    
   5  Prefactor     11.246        37.214        .29517E-03   -1.5641    
   6  Prefactor     3.7668        3.7749        .52023E-03   -1.5669    
   7  Prefactor     11.971        26.705        .28800E-03   -1.5639    
   8  norm          .38858E-09    1.8591        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .23036E-05    21.718        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.2896        21.022        .41555E-03   -1.5658    
  11  Prefactor     33.898        7.9388        .17170E-03   -1.5592    
  12  norm          .71387E-06    17.768        .90404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2860        11.196        .95858E-03   -1.5685    
  14  Prefactor     .70388        65.861        .58372E-03   -1.5691    
  15  Prefactor     .12280E-05    21.411        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .38858E-09    4.2051        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .37820        15.839        .91456E-02   -1.5696    
  18  Prefactor     8.9126        8.1875        .33726E-03   -1.5648    
  19  Prefactor     .16653E-09    2.0123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .55511E-10    1.0844        .21593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        .84971        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .33763        4.6340        .70187E-02   -1.5696    
  23  Prefactor     .35829E-05    94.460        .89625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.792        23.081        .30417E-03   -1.5642    
  25  Normalizat    .96837        .22746        .45781E-01   -.94098    
  26  Prefactor     .90437        .22992        .45049E-01   -.95988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.49531e-05
Minuit parameter uncertainties:
  1  223.702
  2  4.29122e-07
  3  11.4459
  4  26.5241
  5  37.2144
  6  3.77491
  7  26.7053
  8  5.19967e-05
  9  0.0141464
  10  21.0223
  11  7.9388
  12  0.0071231
  13  7.58891
  14  13.6176
  15  0.0102552
  16  7.98473e-05
  17  4.89504
  18  8.18747
  19  3.69141e-05
  20  1.16291e-05
  21  1.90858e-06
  22  2.50167
  23  0.036794
  24  23.0812
  25  0.227688
  26  0.230166
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  6.290e+00  2.102e+01  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:  9.044e-01  2.302e-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:  9.684e-01  2.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 215.292 38.997
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/145016/likelihoodResults_684633601_684892801_4FGL_J1421.1+3859_daily_bin1718.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) = 4144.90581043
delta logL = 0.0164939176075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4144.88806821
delta logL = 0.0342361392877

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1103       1.0000          .0000       .10000E+07
     2 'Index     '    3.2786       1.0000          .0000       10.000    
     3 'Normalizat'    .96057       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91045       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4144.888     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      245 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1089        37.061        .22988E-04   -.48293E-02
   2  Index         3.2789        3.0820        .94126E-02   -.15392E-03
   3  Normalizat    .96062        .24459        .23809E-03   -.52850E-03
   4  Prefactor     .91039        .26857        .27284E-03   -.26591E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.10886
  Index      = 3.2789
  Normalizat = 0.960624
  Prefactor  = 0.91039
 **********
 **   18 **HESSE 
 **********

 FCN=   4144.888     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1089        14.654        .91952E-06   -1.5673    
   2  Index         3.2789        2.0416        .37650E-03   -.35141    
   3  Normalizat    .96062        .24482        .47618E-04   -.94362    
   4  Prefactor     .91039        .26891        .54569E-04   -.95779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56592e-09
Minuit parameter uncertainties:
  1  13.4994
  2  2.11213
  3  0.245106
  4  0.269302
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/145016': 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) = 4144.88806815
delta logL = 0.0342361940593

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  3.109e+00  1.350e+01  0.000e+00  1.000e+06 ( 1.000e-13)
292        Index:  3.279e+00  2.112e+00  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:  9.104e-01  2.693e-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:  9.606e-01  2.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
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/145016/cmap_HighResolution_684633601_684892801_4FGL_J1421.1+3859_daily_bin1718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.65e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2022-09-16 18:30:26.055441', job_id='145016', GAL2='0.91', fit_tolerance='1e-08', EG2='0.96', EG='0.97', time_epoch_completed='1663378226.06', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='3.42e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1718' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 18:30:26 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 145016: <4FGL_J1421.1+3859_daily_bin1718> in cluster <slac> Done

Job <4FGL_J1421.1+3859_daily_bin1718> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 18:15:24 2022
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 18:16:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 18:16:16 2022
Terminated at Fri Sep 16 18:30:26 2022
Results reported at Fri Sep 16 18:30:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin1718 215.292 38.9966 684633601 684892801 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 :                                   619.14 sec.
    Max Memory :                                 1212 MB
    Average Memory :                             231.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            902 sec.

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

