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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1712
RA = 60.4867, Dec = -20.5804
tmin = 683078401, tmax = 683337601
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='18790', job_status='RUN', time_executed='2022-09-16 11:09:06.554166', time_epoch_executed='1663351746.55' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/18790

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/18790/ft1_4FGL_J0401.9-2034_daily_bin1712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/18790/ft2_4FGL_J0401.9-2034_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/18790/ft1_4FGL_J0401.9-2034_daily_bin1712.fits outfile=/scratch/kocevski/18790/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1712.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=683078401.0 tmax=683337601.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.81
user 4.55
sys 0.24

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

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

Number of photons that the gtmktime cut: 591

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/18790/ft1_filtered_4FGL_J0401.9-2034_daily_bin1712.fits" evtable="EVENTS" scfile=/scratch/kocevski/18790/ft2_4FGL_J0401.9-2034_daily_bin1712.fits sctable="SC_DATA" outfile=/scratch/kocevski/18790/ltcube_683078401_683337601_4FGL_J0401.9-2034_daily_bin1712.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/18790/ft2_4FGL_J0401.9-2034_daily_bin1712.fits
.....................!
real 14.92
user 14.53
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/18790/ft1_filtered_4FGL_J0401.9-2034_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/18790/ft2_4FGL_J0401.9-2034_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/18790/ltcube_683078401_683337601_4FGL_J0401.9-2034_daily_bin1712.fits outfile=/scratch/kocevski/18790/expmap_683078401_683337601_4FGL_J0401.9-2034_daily_bin1712.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/18790/ltcube_683078401_683337601_4FGL_J0401.9-2034_daily_bin1712.fits
.....................!
real 193.28
user 187.49
sys 5.37

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/18790/ft1_filtered_4FGL_J0401.9-2034_daily_bin1712.fits scfile=/scratch/kocevski/18790/ft2_4FGL_J0401.9-2034_daily_bin1712.fits outfile=/scratch/kocevski/18790/cmap_683078401_683337601_4FGL_J0401.9-2034_daily_bin1712.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.61
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/18790/ft1_filtered_4FGL_J0401.9-2034_daily_bin1712.fits scfile=/scratch/kocevski/18790/ft2_4FGL_J0401.9-2034_daily_bin1712.fits outfile=/scratch/kocevski/18790/cmap_HighResolution_683078401_683337601_4FGL_J0401.9-2034_daily_bin1712.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.62
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/18790/ft1_filtered_4FGL_J0401.9-2034_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/18790/ft2_4FGL_J0401.9-2034_daily_bin1712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/18790/Model_4FGL_J0401.9-2034_daily_bin1712.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/18790/ft1_filtered_4FGL_J0401.9-2034_daily_bin1712.fits.....................!
real 147.75
user 146.11
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/18790/ft1_filtered_4FGL_J0401.9-2034_daily_bin1712.fits', '/scratch/kocevski/18790/ft2_4FGL_J0401.9-2034_daily_bin1712.fits', expMap='/scratch/kocevski/18790/expmap_683078401_683337601_4FGL_J0401.9-2034_daily_bin1712.fits', expCube='/scratch/kocevski/18790/ltcube_683078401_683337601_4FGL_J0401.9-2034_daily_bin1712.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/18790/Model_4FGL_J0401.9-2034_daily_bin1712.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/18790/ft1_filtered_4FGL_J0401.9-2034_daily_bin1712.fits
Spacecraft file(s): /scratch/kocevski/18790/ft2_4FGL_J0401.9-2034_daily_bin1712.fits
Exposure map: /scratch/kocevski/18790/expmap_683078401_683337601_4FGL_J0401.9-2034_daily_bin1712.fits
Exposure cube: /scratch/kocevski/18790/ltcube_683078401_683337601_4FGL_J0401.9-2034_daily_bin1712.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/18790/Model_4FGL_J0401.9-2034_daily_bin1712.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) = 6532.8407485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1888       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.6886       1.0000          .0000       .10000E+07
     3 'Prefactor '    .21441E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .33127E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .49108E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '     .0000       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11744E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .61173E-07   1.0000          .0000       .10000E+07
     9 'norm      '    5.9182       1.0000          .0000       .10000E+07
    10 'Prefactor '    31.353       1.0000          .0000       .10000E+07
    11 'norm      '    2.8798       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.9743       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.0351       1.0000          .0000       .10000E+07
    14 'norm      '    .27778E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .41361E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    30.427       1.0000          .0000       .10000E+07
    17 'Prefactor '    .22776       1.0000          .0000       .10000E+07
    18 'Prefactor '    7.2144       1.0000          .0000       .10000E+07
    19 'Prefactor '    .42925E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    13.731       1.0000          .0000       .10000E+07
    21 'Normalizat'    .68166       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0752       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=   6531.553     FROM MIGRAD    STATUS=CONVERGED    190 CALLS     1091 TOTAL
                     EDM=   .27E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        217.19        .15407E-06** at limit **
   2  Prefactor     3.6965        3.7118       -.11714E-07   -.12564E-03
   3  Prefactor     .72220E-07    28.972        .12851E-06** at limit **
   4  Prefactor      .0000        10.931        .19790E-08** at limit **
   5  Prefactor      .0000        15.974       -.25027E-06** at limit **
   6  Prefactor      .0000        .83359        .12573E-07** at limit **
   7  Prefactor      .0000        .76684       -.11970E-07** at limit **
   8  Prefactor      .0000        .97744       -.45692E-09** at limit **
   9  norm          5.9200        1.2583        .25907E-08   -.37884E-04
  10  Prefactor     31.077        8.2587        .28819E-08    .36549E-01
  11  norm          2.8839        1.6152       -.81336E-08   -.32788E-03
  12  Prefactor     3.5842        14.323       -.68935E-07   -.22991E-02
  13  Prefactor     3.0296        2.6186        .81839E-08    .30561E-05
  14  norm           .0000        3.7808        .53549E-07** at limit **
  15  Prefactor      .0000        11.538       -.21055E-08** at limit **
  16  Prefactor     30.081        10.194        .98929E-08   -.33439E-03
  17  Prefactor     .29759        10.769        .21835E-06   -.70089E-05
  18  Prefactor     7.1940        8.8458       -.23157E-07    .27742E-03
  19  Prefactor     .18763E-07    26.838        .21600E-07** at limit **
  20  Prefactor     16.627        40.050       -.34246E-06   -.59309E-03
  21  Normalizat    .68098        .19242       -.10431E-05   -.12067E-04
  22  Prefactor     1.0749        .16044        .63148E-06   -.79426E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 3.69651
  Prefactor  = 7.222e-08
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 5.91996
  Prefactor  = 31.0766
  norm       = 2.88395
  Prefactor  = 3.58422
  Prefactor  = 3.02964
  norm       = 0
  Prefactor  = 0
  Prefactor  = 30.0809
  Prefactor  = 0.297585
  Prefactor  = 7.19395
  Prefactor  = 1.87628e-08
  Prefactor  = 16.6275
  Normalizat = 0.680979
  Prefactor  = 1.07489
 **********
 **   18 **HESSE 
 **********

 FCN=   6531.553     FROM HESSE     STATUS=OK           392 CALLS     1483 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        216.24        .44107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.6965        3.7207        .52563E-03   -1.5670    
   3  Prefactor     .72220E-07    30.775        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        10.925        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        15.989        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        .83328        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        .77269        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .97658        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.9200        1.2532        .41255E-03   -1.5659    
  10  Prefactor     31.077        27.790        .17862E-03   -1.5596    
  11  norm          2.8839        1.6288        .59867E-03   -1.5674    
  12  Prefactor     3.5842        17.324        .58847E-03   -1.5670    
  13  Prefactor     3.0296        2.6351        .58219E-03   -1.5673    
  14  norm           .0000        3.8086        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        11.565        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.081        10.168        .18132E-03   -1.5598    
  17  Prefactor     .29759        1.8895        .66092E-02   -1.5697    
  18  Prefactor     7.1940        8.8633        .37321E-03   -1.5654    
  19  Prefactor     .18763E-07    27.311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.627        40.213        .27004E-03   -1.5626    
  21  Normalizat    .68098        .17093        .66863E-01   -1.0465    
  22  Prefactor     1.0749        .14201        .38614E-01   -.90273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80684e-08
Minuit parameter uncertainties:
  1  0.000144284
  2  3.7207
  3  0.00298138
  4  7.9953e-06
  5  2.6911e-05
  6  1.7031e-07
  7  7.1009e-07
  8  8.80825e-08
  9  1.25322
  10  27.7906
  11  1.62877
  12  15.7597
  13  2.63515
  14  2.70888e-06
  15  1.19584e-05
  16  10.1676
  17  1.49973
  18  8.86329
  19  0.0014319
  20  40.2136
  21  0.171063
  22  0.142055
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  3.030e+00  2.635e+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:  1.075e+00  1.421e-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:  6.810e-01  1.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.34
Ra Dec: 60.487 -20.580
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 3.97e-08 +/- 3.45e-08
Energy Flux (Fixed Index): 1.48e-05 +/- 1.29e-05

TS (Fixed Index): 2.34
Ra Dec: 60.487 -20.580
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/18790/likelihoodResults_683078401_683337601_4FGL_J0401.9-2034_daily_bin1712.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) = 6531.26994583
delta logL = 0.283453706856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6531.25987897
delta logL = 0.293520562278

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5560       1.0000          .0000       .10000E+07
     2 'Index     '    3.0349       1.0000          .0000       10.000    
     3 'Normalizat'    .64462       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0961       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=   6531.260     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      241 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5551        24.961        .85311E-04    .74709E-02
   2  Index         3.0357        3.6884        .12243        .20418E-03
   3  Normalizat    .64469        .73211E-01    .68549E-01   -.23081E-04
   4  Prefactor     1.0962        .54553E-01    .37737E-01   -.15452E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.55511
  Index      = 3.03568
  Normalizat = 0.64469
  Prefactor  = 1.09624
 **********
 **   18 **HESSE 
 **********

 FCN=   6531.260     FROM HESSE     STATUS=OK            31 CALLS      272 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5551        5.1851        .34125E-05   -1.5683    
   2  Index         3.0357        2.1109        .63105E-02   -.40374    
   3  Normalizat    .64469        .20066        .30337E-03   -1.0612    
   4  Prefactor     1.0962        .17125        .20935E-03   -.89587    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22793e-10
Minuit parameter uncertainties:
  1  5.18508
  2  2.19309
  3  0.200883
  4  0.17134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/18790': 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) = 6531.25987497
delta logL = 0.293524563018

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.555e+00  5.185e+00  0.000e+00  1.000e+06 ( 1.000e-12)
251        Index:  3.036e+00  2.193e+00  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:  1.096e+00  1.713e-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:  6.447e-01  2.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.99
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 3.04 +/- 2.19
Photon Flux (Free Index): 6.63e-08 +/- 6.00e-08
Energy Flux (Free Index): 1.30e-05 +/- 1.12e-05

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/18790/cmap_HighResolution_683078401_683337601_4FGL_J0401.9-2034_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.76e-03', comment='SUCCESS', photon_flux='3.97e-08', energy_flux2='1.30e-05', photon_flux_error='3.45e-08', dlogl='2.94e-01', energy_flux='1.48e-05', photon_flux2='6.63e-08', job_status='DONE', time_completed='2022-09-16 11:19:14.507128', photon_index_error2='2.19', photon_index2='3.04', ts='2.34', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.12e-05', EG='0.68', time_epoch_completed='1663352354.51', return_code='0', job_id='18790', GAL2='1.10', EG2='0.64', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='6.00e-08', ts2='2.99', photon_index='2.31' WHERE bin_id='1712' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 11:19:14 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 18790: <4FGL_J0401.9-2034_daily_bin1712> in cluster <slac> Done

Job <4FGL_J0401.9-2034_daily_bin1712> 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) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 11:06:12 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:12 2022
Terminated at Fri Sep 16 11:19:14 2022
Results reported at Fri Sep 16 11:19:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1712 60.4867 -20.5804 683078401 683337601 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 :                                   610.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             288.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            837 sec.

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

