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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1716
RA = 60.4867, Dec = -20.5804
tmin = 684115201, tmax = 684374401
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='18796', job_status='RUN', time_executed='2022-09-16 11:07:23.201160', time_epoch_executed='1663351643.2' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1716'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/18796

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/18796/ft1_4FGL_J0401.9-2034_daily_bin1716.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/18796/ft2_4FGL_J0401.9-2034_daily_bin1716.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/18796/ft1_4FGL_J0401.9-2034_daily_bin1716.fits outfile=/scratch/kocevski/18796/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1716.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=684115201.0 tmax=684374401.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.17
user 3.88
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/18796/ft2_4FGL_J0401.9-2034_daily_bin1716.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/18796/ft2_4FGL_J0401.9-2034_daily_bin1716.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/18796/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1716.fits evtable="EVENTS" outfile="/scratch/kocevski/18796/ft1_filtered_4FGL_J0401.9-2034_daily_bin1716.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.52
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 720

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/18796/ft1_filtered_4FGL_J0401.9-2034_daily_bin1716.fits" evtable="EVENTS" scfile=/scratch/kocevski/18796/ft2_4FGL_J0401.9-2034_daily_bin1716.fits sctable="SC_DATA" outfile=/scratch/kocevski/18796/ltcube_684115201_684374401_4FGL_J0401.9-2034_daily_bin1716.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/18796/ft2_4FGL_J0401.9-2034_daily_bin1716.fits
.....................!
real 17.06
user 16.53
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/18796/ft1_filtered_4FGL_J0401.9-2034_daily_bin1716.fits evtable="EVENTS" scfile=/scratch/kocevski/18796/ft2_4FGL_J0401.9-2034_daily_bin1716.fits sctable="SC_DATA" expcube=/scratch/kocevski/18796/ltcube_684115201_684374401_4FGL_J0401.9-2034_daily_bin1716.fits outfile=/scratch/kocevski/18796/expmap_684115201_684374401_4FGL_J0401.9-2034_daily_bin1716.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/18796/ltcube_684115201_684374401_4FGL_J0401.9-2034_daily_bin1716.fits
.....................!
real 193.62
user 187.38
sys 5.09

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 Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 146 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 J0401.9-2034 @ 60.4867 -20.5804

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/18796/ft1_filtered_4FGL_J0401.9-2034_daily_bin1716.fits scfile=/scratch/kocevski/18796/ft2_4FGL_J0401.9-2034_daily_bin1716.fits outfile=/scratch/kocevski/18796/cmap_684115201_684374401_4FGL_J0401.9-2034_daily_bin1716.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=60.4867 yref=-20.5804 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/18796/ft1_filtered_4FGL_J0401.9-2034_daily_bin1716.fits scfile=/scratch/kocevski/18796/ft2_4FGL_J0401.9-2034_daily_bin1716.fits outfile=/scratch/kocevski/18796/cmap_HighResolution_684115201_684374401_4FGL_J0401.9-2034_daily_bin1716.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=60.4867 yref=-20.5804 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.60
user 0.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/18796/ft1_filtered_4FGL_J0401.9-2034_daily_bin1716.fits evtable="EVENTS" scfile=/scratch/kocevski/18796/ft2_4FGL_J0401.9-2034_daily_bin1716.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/18796/Model_4FGL_J0401.9-2034_daily_bin1716.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/18796/ft1_filtered_4FGL_J0401.9-2034_daily_bin1716.fits....................!
real 184.08
user 180.92
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/18796/ft1_filtered_4FGL_J0401.9-2034_daily_bin1716.fits', '/scratch/kocevski/18796/ft2_4FGL_J0401.9-2034_daily_bin1716.fits', expMap='/scratch/kocevski/18796/expmap_684115201_684374401_4FGL_J0401.9-2034_daily_bin1716.fits', expCube='/scratch/kocevski/18796/ltcube_684115201_684374401_4FGL_J0401.9-2034_daily_bin1716.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/18796/Model_4FGL_J0401.9-2034_daily_bin1716.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0401.9-2034'

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.016e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
251        Index:  2.309e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/18796/ft1_filtered_4FGL_J0401.9-2034_daily_bin1716.fits
Spacecraft file(s): /scratch/kocevski/18796/ft2_4FGL_J0401.9-2034_daily_bin1716.fits
Exposure map: /scratch/kocevski/18796/expmap_684115201_684374401_4FGL_J0401.9-2034_daily_bin1716.fits
Exposure cube: /scratch/kocevski/18796/ltcube_684115201_684374401_4FGL_J0401.9-2034_daily_bin1716.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/18796/Model_4FGL_J0401.9-2034_daily_bin1716.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) = 7825.88109289

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37198E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '     .0000       1.0000          .0000       .10000E+07
     3 'Prefactor '    6.1053       1.0000          .0000       .10000E+07
     4 'Prefactor '    7.9117       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14486E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.8834       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11218E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .38858E-08   1.0000          .0000       .10000E+07
     9 'norm      '    2.7665       1.0000          .0000       .10000E+07
    10 'Prefactor '    .16924E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .26096E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .50164E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.9040       1.0000          .0000       .10000E+07
    14 'norm      '    .14209E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.3989       1.0000          .0000       .10000E+07
    16 'Prefactor '    11.816       1.0000          .0000       .10000E+07
    17 'Prefactor '    2.3440       1.0000          .0000       .10000E+07
    18 'Prefactor '    .65781E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    38.236       1.0000          .0000       .10000E+07
    20 'Prefactor '    .13990E-01   1.0000          .0000       .10000E+07
    21 'Normalizat'    .91956       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84773       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7825.827     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     1810 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38858E-09    47.736       -.15437E-05** at limit **
   2  Prefactor      .0000        1.1692        .61690E-07** at limit **
   3  Prefactor     6.1038        5.9820        .47038E-06   -.49257E-01
   4  Prefactor     7.9081        6.8543       -.50671E-06   -.48935E-01
   5  Prefactor     .83267E-09    11.198       -.84252E-06** at limit **
   6  Prefactor     1.8850        1.5932        .51344E-07    .92756E-03
   7  Prefactor      .0000        1.4082       -.32839E-07** at limit **
   8  Prefactor      .0000        .87746        .35735E-07** at limit **
   9  norm          2.7664        .85666        .13602E-07   -.41609E-03
  10  Prefactor     .49960E-09    8.7927       -.37519E-07** at limit **
  11  norm          .22795E-01    11.996       -.10139E-05** at limit **
  12  Prefactor      .0000        5.5069        .35032E-06** at limit **
  13  Prefactor     1.9059        1.6359        .39415E-07    .46837E-03
  14  norm           .0000        3.1602       -.25344E-06** at limit **
  15  Prefactor     2.4144        1.2635       -.93082E-07    .43252E-02
  16  Prefactor     11.779        5.7651        .34250E-06   -.10470E-02
  17  Prefactor     2.3437        2.2402       -.44737E-07   -.17528E-03
  18  Prefactor      .0000        2.3765        .12842E-06** at limit **
  19  Prefactor     38.334        1.0400        .27579E-08   -.19821E-02
  20  Prefactor     .13878E-08    20.310        .20985E-06** at limit **
  21  Normalizat    .91980        .15610       -.22966E-05    .43583E-04
  22  Prefactor     .84765        .13301        .75926E-06    .48367E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.88578e-10
  Prefactor  = 0
  Prefactor  = 6.10378
  Prefactor  = 7.90809
  Prefactor  = 8.32667e-10
  Prefactor  = 1.88499
  Prefactor  = 0
  Prefactor  = 0
  norm       = 2.76635
  Prefactor  = 4.996e-10
  norm       = 0.0227953
  Prefactor  = 0
  Prefactor  = 1.90594
  norm       = 0
  Prefactor  = 2.41435
  Prefactor  = 11.7789
  Prefactor  = 2.34374
  Prefactor  = 0
  Prefactor  = 38.3345
  Prefactor  = 1.38778e-09
  Normalizat = 0.919795
  Prefactor  = 0.847652
 **********
 **   18 **HESSE 
 **********

 FCN=   7825.827     FROM HESSE     STATUS=OK           390 CALLS     2200 TOTAL
                     EDM=   .72E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38858E-09    47.674        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.1680        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.1038        11.632        .40609E-03   -1.5659    
   4  Prefactor     7.9081        7.9082        .35624E-03   -1.5652    
   5  Prefactor     .83267E-09    11.216        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.8850        1.6112        .75816E-03   -1.5681    
   7  Prefactor      .0000        1.4017        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .88142        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.7664        .85856        .61165E-03   -1.5675    
  10  Prefactor     .49960E-09    8.8202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .22795E-01    .51817        .36958E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        5.5120        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9059        1.6432        .75332E-03   -1.5680    
  14  norm           .0000        3.1617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.4144        21.666        .66085E-03   -1.5677    
  16  Prefactor     11.779        5.7698        .29118E-03   -1.5639    
  17  Prefactor     2.3437        2.2466        .66934E-03   -1.5677    
  18  Prefactor      .0000        2.3726        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     38.334        21.855        .16174E-03   -1.5584    
  20  Prefactor     .13878E-08    20.293        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .91980        .13971        .45151E-01   -.95768    
  22  Prefactor     .84765        .11753        .44335E-01   -.97995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.24815e-08
Minuit parameter uncertainties:
  1  0.000274153
  2  1.30492e-06
  3  11.6325
  4  7.90821
  5  0.000192387
  6  1.61121
  7  1.39517e-06
  8  2.00809e-06
  9  0.858563
  10  0.00013637
  11  0.217364
  12  5.25936e-06
  13  1.64319
  14  3.55531e-06
  15  14.4652
  16  5.76978
  17  2.24656
  18  7.22786e-06
  19  21.8553
  20  0.000335767
  21  0.139766
  22  0.117566
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.906e+00  1.643e+00  0.000e+00  1.000e+06 ( 1.000e-12)
251        Index:  2.309e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
468    Prefactor:  8.477e-01  1.176e-01  0.000e+00  1.000e+01 ( 1.000e+00)
469        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
470        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  9.198e-01  1.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.80
Ra Dec: 60.487 -20.580
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 2.50e-08 +/- 2.15e-08
Energy Flux (Fixed Index): 9.33e-06 +/- 8.04e-06

TS (Fixed Index): 2.80
Ra Dec: 60.487 -20.580
Photon Flux Upper Limit: 7.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/18796/likelihoodResults_684115201_684374401_4FGL_J0401.9-2034_daily_bin1716.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) = 7824.48789766
delta logL = 1.33938359587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7824.47377458
delta logL = 1.35350667234

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7824.474     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0212        1.5919        .72769E-03   -.68333E-02
   2  Index         1.4659        .34618        .21683       -.10305E-04
   3  Normalizat    .93493        .13214        .45347E-01    .21580E-03
   4  Prefactor     .84123        .11637        .44251E-01   -.15499E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.0212
  Index      = 1.46592
  Normalizat = 0.934928
  Prefactor  = 0.84123
 **********
 **   18 **HESSE 
 **********

 FCN=   7824.474     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0212        1.9371        .96435E-05   -1.5680    
   2  Index         1.4659        .47714        .84483E-02   -.78499    
   3  Normalizat    .93493        .15021        .23552E-03   -.95243    
   4  Prefactor     .84123        .13237        .21642E-03   -.98226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53797e-10
Minuit parameter uncertainties:
  1  1.93706
  2  0.478597
  3  0.150278
  4  0.132417
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/18796': 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) = 7824.47377417
delta logL = 1.35350708093

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  2.021e+00  1.937e+00  0.000e+00  1.000e+06 ( 1.000e-12)
251        Index:  1.466e+00  4.786e-01  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
468    Prefactor:  8.412e-01  1.324e-01  0.000e+00  1.000e+01 ( 1.000e+00)
469        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
470        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  9.349e-01  1.503e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.51
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 1.47 +/- 0.48
Photon Flux (Free Index): 1.09e-08 +/- 1.17e-08
Energy Flux (Free Index): 3.87e-05 +/- 4.58e-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/18796/cmap_HighResolution_684115201_684374401_4FGL_J0401.9-2034_daily_bin1716.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.80e-03', comment='SUCCESS', photon_flux='2.50e-08', energy_flux2='3.87e-05', photon_flux_error='2.15e-08', dlogl='1.35e+00', energy_flux='9.33e-06', photon_flux2='1.09e-08', job_status='DONE', time_completed='2022-09-16 11:19:32.380069', photon_index_error2='0.48', photon_index2='1.47', ts='2.80', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='7.56e-08', energy_flux_error2='4.58e-05', EG='0.92', time_epoch_completed='1663352372.38', return_code='0', job_id='18796', GAL2='0.84', EG2='0.93', return_code2='0', energy_flux_error='8.04e-06', photon_flux_error2='1.17e-08', ts2='5.51', photon_index='2.31' WHERE bin_id='1716' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 11:19:32 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 18796: <4FGL_J0401.9-2034_daily_bin1716> in cluster <slac> Done

Job <4FGL_J0401.9-2034_daily_bin1716> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 11:05:17 2022
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 11:06:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 11:06:13 2022
Terminated at Fri Sep 16 11:19:33 2022
Results reported at Fri Sep 16 11:19:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1716 60.4867 -20.5804 684115201 684374401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0401.9-2034 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   728.03 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             361.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            856 sec.

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

