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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1708
RA = 60.4867, Dec = -20.5804
tmin = 682041601, tmax = 682300801
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='18785', job_status='RUN', time_executed='2022-09-16 11:08:24.538713', time_epoch_executed='1663351704.54' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1708'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/18785

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/18785/ft1_4FGL_J0401.9-2034_daily_bin1708.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/18785/ft2_4FGL_J0401.9-2034_daily_bin1708.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/18785/ft1_4FGL_J0401.9-2034_daily_bin1708.fits outfile=/scratch/kocevski/18785/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1708.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=682041601.0 tmax=682300801.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.01
user 3.77
sys 0.23

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

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

Number of photons that the gtmktime cut: 408

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/18785/ft1_filtered_4FGL_J0401.9-2034_daily_bin1708.fits" evtable="EVENTS" scfile=/scratch/kocevski/18785/ft2_4FGL_J0401.9-2034_daily_bin1708.fits sctable="SC_DATA" outfile=/scratch/kocevski/18785/ltcube_682041601_682300801_4FGL_J0401.9-2034_daily_bin1708.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/18785/ft2_4FGL_J0401.9-2034_daily_bin1708.fits
.....................!
real 15.41
user 15.02
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/18785/ft1_filtered_4FGL_J0401.9-2034_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/18785/ft2_4FGL_J0401.9-2034_daily_bin1708.fits sctable="SC_DATA" expcube=/scratch/kocevski/18785/ltcube_682041601_682300801_4FGL_J0401.9-2034_daily_bin1708.fits outfile=/scratch/kocevski/18785/expmap_682041601_682300801_4FGL_J0401.9-2034_daily_bin1708.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/18785/ltcube_682041601_682300801_4FGL_J0401.9-2034_daily_bin1708.fits
.....................!
real 192.69
user 186.93
sys 5.40

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/18785/ft1_filtered_4FGL_J0401.9-2034_daily_bin1708.fits scfile=/scratch/kocevski/18785/ft2_4FGL_J0401.9-2034_daily_bin1708.fits outfile=/scratch/kocevski/18785/cmap_682041601_682300801_4FGL_J0401.9-2034_daily_bin1708.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/18785/ft1_filtered_4FGL_J0401.9-2034_daily_bin1708.fits scfile=/scratch/kocevski/18785/ft2_4FGL_J0401.9-2034_daily_bin1708.fits outfile=/scratch/kocevski/18785/cmap_HighResolution_682041601_682300801_4FGL_J0401.9-2034_daily_bin1708.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.41
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/18785/ft1_filtered_4FGL_J0401.9-2034_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/18785/ft2_4FGL_J0401.9-2034_daily_bin1708.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/18785/Model_4FGL_J0401.9-2034_daily_bin1708.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/18785/ft1_filtered_4FGL_J0401.9-2034_daily_bin1708.fits.....................!
real 107.10
user 105.64
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41176       1.0000          .0000       .10000E+07
     2 'Prefactor '    .36645E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .30839E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .70902E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    18.963       1.0000          .0000       .10000E+07
     6 'Prefactor '    .31978E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    8.8706       1.0000          .0000       .10000E+07
     8 'Prefactor '    .60280E-03   1.0000          .0000       .10000E+07
     9 'norm      '    2.9717       1.0000          .0000       .10000E+07
    10 'Prefactor '    5.0042       1.0000          .0000       .10000E+07
    11 'norm      '    1.6028       1.0000          .0000       .10000E+07
    12 'Prefactor '    .19881E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .38352E-02   1.0000          .0000       .10000E+07
    14 'norm      '    6.7614       1.0000          .0000       .10000E+07
    15 'Prefactor '    .18912E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    20.439       1.0000          .0000       .10000E+07
    17 'Prefactor '    .16697E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    10.670       1.0000          .0000       .10000E+07
    19 'Prefactor '    .31641E-08   1.0000          .0000       .10000E+07
    20 'Prefactor '    .77699E-06   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0714       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .80722       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=   4535.326     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     1386 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14022E-06    5.9225        .18134E-05** at limit **
   2  Prefactor     .11102E-09    2.0871       -.12374E-06** at limit **
   3  Prefactor     .55511E-10    7.8919        .19251E-06** at limit **
   4  Prefactor     .61506E-07    19.964       -.24805E-05** at limit **
   5  Prefactor     18.341        4.1200       -.48303E-06    .15494E-01
   6  Prefactor      .0000        2.9558        .56638E-07** at limit **
   7  Prefactor     8.8786        5.5189       -.10906E-06    .69247E-02
   8  Prefactor      .0000        2.5154        .14272E-07** at limit **
   9  norm          2.9736        1.3808       -.77259E-07    .37530E-02
  10  Prefactor     4.7424        10.347       -.26683E-05    .29046E-01
  11  norm          1.6028        1.6424        .47747E-07   -.41635E-02
  12  Prefactor     .58087E-06    83.068       -.37768E-06** at limit **
  13  Prefactor      .0000        3.8685       -.33100E-07** at limit **
  14  norm          6.6367        14.958        .46335E-05    .61104E-02
  15  Prefactor     .12063E-06    32.797        .16234E-05** at limit **
  16  Prefactor     20.484        10.502        .13361E-06   -.86765E-03
  17  Prefactor      .0000        2.2285        .12317E-07** at limit **
  18  Prefactor     10.409        2.6050       -.40638E-06    .45357E-02
  19  Prefactor     .43909E-07    15.215        .25615E-05** at limit **
  20  Prefactor     .43854E-08    13.329       -.13167E-05** at limit **
  21  Normalizat    1.0717        .23413       -.17874E-05    .91001E-04
  22  Prefactor     .80746        .18860       -.75764E-07   -.20036E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.40221e-07
  Prefactor  = 1.11022e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 6.15064e-08
  Prefactor  = 18.3415
  Prefactor  = 0
  Prefactor  = 8.87862
  Prefactor  = 0
  norm       = 2.97362
  Prefactor  = 4.74242
  norm       = 1.60278
  Prefactor  = 5.80869e-07
  Prefactor  = 0
  norm       = 6.63672
  Prefactor  = 1.20626e-07
  Prefactor  = 20.484
  Prefactor  = 0
  Prefactor  = 10.4085
  Prefactor  = 4.39093e-08
  Prefactor  = 4.38538e-09
  Normalizat = 1.07174
  Prefactor  = 0.807459
 **********
 **   18 **HESSE 
 **********

 FCN=   4535.326     FROM HESSE     STATUS=OK           380 CALLS     1766 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14022E-06    78.415        .88136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11102E-09    2.0853        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    7.8991        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .61506E-07    20.872        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.341        25.017        .22972E-03   -1.5622    
   6  Prefactor      .0000        2.9269        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.8786        5.5270        .33629E-03   -1.5648    
   8  Prefactor      .0000        2.5164        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.9736        1.3819        .58874E-03   -1.5673    
  10  Prefactor     4.7424        47.085        .44930E-03   -1.5664    
  11  norm          1.6028        1.6648        .83693E-03   -1.5683    
  12  Prefactor     .58087E-06    86.976        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        3.8252        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.6367        15.390        .38564E-03   -1.5656    
  15  Prefactor     .12063E-06    33.483        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     20.484        10.514        .22126E-03   -1.5617    
  17  Prefactor      .0000        2.2280        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.409        17.630        .30648E-03   -1.5643    
  19  Prefactor     .43909E-07    16.410        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .43854E-08    13.411        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0717        .20687        .39308E-01   -.90664    
  22  Prefactor     .80746        .16614        .43811E-01   -.99454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99732e-07
Minuit parameter uncertainties:
  1  0.00663258
  2  2.8224e-05
  3  4.31642e-05
  4  0.00226648
  5  25.0171
  6  1.63358e-05
  7  5.52696
  8  4.73615e-06
  9  1.38193
  10  29.8865
  11  1.66482
  12  0.0142163
  13  7.96458e-06
  14  15.3898
  15  0.00401988
  16  10.5142
  17  6.3561e-06
  18  17.6301
  19  0.00169784
  20  0.000483723
  21  0.20703
  22  0.166243
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  0.000e+00  7.965e-06  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.075e-01  1.662e-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:  1.072e+00  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/18785/likelihoodResults_682041601_682300801_4FGL_J0401.9-2034_daily_bin1708.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): 102
logL (Free Index) = 4535.33083493
delta logL = -0.00462677171345

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4535.32620319
delta logL = 4.96992925036e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34073E-02   1.0000          .0000       .10000E+07
     2 'Index     '    2.7046       1.0000          .0000       10.000    
     3 'Normalizat'    1.0720       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80729       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4535.295     FROM MIGRAD    STATUS=FAILED       102 CALLS      311 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20685        10.240        .55595E-04** at limit **
   2  Index         3.4162        6.7078        .12275E-01    .16101E-03
   3  Normalizat    1.0529        .23982        .24646E-03    .27277E-03
   4  Prefactor     .81499        .18971        .22972E-03    .47861E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4535.295     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      397 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20685        10.240        .13403E-04   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4162        6.7078        .19125E-02   -.32232    
   3  Normalizat    1.0529        .23982        .11408E-03   -.91280    
   4  Prefactor     .81499        .18971        .18610E-03   -.99178    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4535.295     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      428 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20690        1.6854        .22238E-05** at limit **
   2  Index         3.4161        2.3308        .24551E-02   -.57550E-04
   3  Normalizat    1.0529        .23657        .49291E-04    .24195E-03
   4  Prefactor     .81499        .18985        .45945E-04    .41625E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.206903
  Index      = 3.41607
  Normalizat = 1.05286
  Prefactor  = 0.814985
 **********
 **   18 **HESSE 
 **********

 FCN=   4535.295     FROM HESSE     STATUS=OK            23 CALLS      451 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20690        1.5474        .88952E-07   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4161        2.2401        .98203E-04   -.32234    
   3  Normalizat    1.0529        .23668        .98582E-05   -.91280    
   4  Prefactor     .81499        .18990        .91889E-05   -.99178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.83512e-10
Minuit parameter uncertainties:
  1  1.13166
  2  2.33307
  3  0.236915
  4  0.190051
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/18785': 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) = 4535.29458132
delta logL = 0.0316268330644

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  2.069e-01  1.132e+00  0.000e+00  1.000e+06 ( 1.000e-12)
251        Index:  3.416e+00  2.333e+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:  8.150e-01  1.901e-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:  1.053e+00  2.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 60.487 -20.580

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/18785/cmap_HighResolution_682041601_682300801_4FGL_J0401.9-2034_daily_bin1708.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.32e-03', job_status='DONE', photon_flux_upper_limit='9.53e-08', time_completed='2022-09-16 11:17:32.008417', job_id='18785', GAL2='0.81', fit_tolerance='1e-08', EG2='1.05', EG='1.07', time_epoch_completed='1663352252.01', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='3.16e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1708' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 11:17:32 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 18785: <4FGL_J0401.9-2034_daily_bin1708> in cluster <slac> Done

Job <4FGL_J0401.9-2034_daily_bin1708> 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) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 11:06:08 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:08 2022
Terminated at Fri Sep 16 11:17:32 2022
Results reported at Fri Sep 16 11:17:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1708 60.4867 -20.5804 682041601 682300801 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 :                                   549.63 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             313.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            735 sec.

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

