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 139 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 = 7465
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J0427.3-3900_daily_bin1776
RA = 66.826, Dec = -39.0097
tmin = 699667201, tmax = 699926401
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='824228', job_status='RUN', time_executed='2023-03-08 00:08:05.422028', time_epoch_executed='1678262885.42' WHERE source_name='4FGL J0427.3-3900' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/824228

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/824228/ft1_4FGL_J0427.3-3900_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/824228/ft2_4FGL_J0427.3-3900_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/824228/ft1_4FGL_J0427.3-3900_daily_bin1776.fits outfile=/scratch/kocevski/824228/ft1_filteredMKT_4FGL_J0427.3-3900_daily_bin1776.fits ra=66.826 dec=-39.0097 rad=12.0 tmin=699667201.0 tmax=699926401.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.96
user 3.66
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/824228/ft2_4FGL_J0427.3-3900_daily_bin1776.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/824228/ft2_4FGL_J0427.3-3900_daily_bin1776.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/824228/ft1_filteredMKT_4FGL_J0427.3-3900_daily_bin1776.fits evtable="EVENTS" outfile="/scratch/kocevski/824228/ft1_filtered_4FGL_J0427.3-3900_daily_bin1776.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.14

Number of photons that the gtmktime cut: 663

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/824228/ft1_filtered_4FGL_J0427.3-3900_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/824228/ft2_4FGL_J0427.3-3900_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/824228/ltcube_699667201_699926401_4FGL_J0427.3-3900_daily_bin1776.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/824228/ft2_4FGL_J0427.3-3900_daily_bin1776.fits
.....................!
real 12.44
user 11.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/824228/ft1_filtered_4FGL_J0427.3-3900_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/824228/ft2_4FGL_J0427.3-3900_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/824228/ltcube_699667201_699926401_4FGL_J0427.3-3900_daily_bin1776.fits outfile=/scratch/kocevski/824228/expmap_699667201_699926401_4FGL_J0427.3-3900_daily_bin1776.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/824228/ltcube_699667201_699926401_4FGL_J0427.3-3900_daily_bin1776.fits
.....................!
real 191.41
user 185.67
sys 5.41

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 180 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 J0427.3-3900 @ 66.826 -39.0097

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/824228/ft1_filtered_4FGL_J0427.3-3900_daily_bin1776.fits scfile=/scratch/kocevski/824228/ft2_4FGL_J0427.3-3900_daily_bin1776.fits outfile=/scratch/kocevski/824228/cmap_699667201_699926401_4FGL_J0427.3-3900_daily_bin1776.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=66.826 yref=-39.0097 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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/824228/ft1_filtered_4FGL_J0427.3-3900_daily_bin1776.fits scfile=/scratch/kocevski/824228/ft2_4FGL_J0427.3-3900_daily_bin1776.fits outfile=/scratch/kocevski/824228/cmap_HighResolution_699667201_699926401_4FGL_J0427.3-3900_daily_bin1776.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=66.826 yref=-39.0097 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/824228/ft1_filtered_4FGL_J0427.3-3900_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/824228/ft2_4FGL_J0427.3-3900_daily_bin1776.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/824228/Model_4FGL_J0427.3-3900_daily_bin1776.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/824228/ft1_filtered_4FGL_J0427.3-3900_daily_bin1776.fits.....................!
real 150.87
user 149.34
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/824228/ft1_filtered_4FGL_J0427.3-3900_daily_bin1776.fits', '/scratch/kocevski/824228/ft2_4FGL_J0427.3-3900_daily_bin1776.fits', expMap='/scratch/kocevski/824228/expmap_699667201_699926401_4FGL_J0427.3-3900_daily_bin1776.fits', expCube='/scratch/kocevski/824228/ltcube_699667201_699926401_4FGL_J0427.3-3900_daily_bin1776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/824228/Model_4FGL_J0427.3-3900_daily_bin1776.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0427.3-3900'

4FGL J0427.3-3900
   Spectrum: PowerLaw
266    Prefactor:  8.184e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
267        Index:  2.844e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
268        Scale:  5.048e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/824228/ft1_filtered_4FGL_J0427.3-3900_daily_bin1776.fits
Spacecraft file(s): /scratch/kocevski/824228/ft2_4FGL_J0427.3-3900_daily_bin1776.fits
Exposure map: /scratch/kocevski/824228/expmap_699667201_699926401_4FGL_J0427.3-3900_daily_bin1776.fits
Exposure cube: /scratch/kocevski/824228/ltcube_699667201_699926401_4FGL_J0427.3-3900_daily_bin1776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/824228/Model_4FGL_J0427.3-3900_daily_bin1776.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) = 6785.71881182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8920       1.0000          .0000       .10000E+07
     2 'norm      '    1.4127       1.0000          .0000       .10000E+07
     3 'Prefactor '    61.099       1.0000          .0000       .10000E+07
     4 'Prefactor '    19.389       1.0000          .0000       .10000E+07
     5 'Prefactor '    .37154       1.0000          .0000       .10000E+07
     6 'norm      '    18.982       1.0000          .0000       .10000E+07
     7 'norm      '    25.160       1.0000          .0000       .10000E+07
     8 'Prefactor '    .18466E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .17999E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .38745E-05   1.0000          .0000       .10000E+07
    11 'norm      '    1.1464       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.0819       1.0000          .0000       .10000E+07
    13 'norm      '    42.355       1.0000          .0000       .10000E+07
    14 'norm      '    .22527       1.0000          .0000       .10000E+07
    15 'norm      '    2.4335       1.0000          .0000       .10000E+07
    16 'Prefactor '    .11158E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    .80250E-05   1.0000          .0000       .10000E+07
    18 'norm      '    5.0564       1.0000          .0000       .10000E+07
    19 'Prefactor '    .32360E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    78.906       1.0000          .0000       .10000E+07
    21 'Prefactor '    .49638E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .44740E-05   1.0000          .0000       .10000E+07
    23 'norm      '    3.8172       1.0000          .0000       .10000E+07
    24 'Normalizat'    1.2951       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86731       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=   6782.986     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     1314 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8930        3.6883        .16865E-06   -.10869E-02
   2  norm          1.4095        1.1066       -.45086E-07    .16194E-02
   3  Prefactor     63.874        54.539        .21937E-06    .32782E-02
   4  Prefactor     19.436        1.1066       -.63951E-08    .29151E-02
   5  Prefactor     .85137E-06    92.304       -.21637E-05** at limit **
   6  norm          18.974        1.4419        .37001E-07   -.10210E-01
   7  norm          25.475        11.469       -.14432E-06   -.12843    
   8  Prefactor     .10174E-05    8.8764       -.10203E-06** at limit **
   9  Prefactor     .31086E-08    8.7127        .42397E-06** at limit **
  10  Prefactor     .22204E-09    6.4510       -.26090E-06** at limit **
  11  norm          1.1463        .73783        .17018E-08   -.30236E-03
  12  Prefactor     2.1032        3.1200       -.63085E-07   -.66571E-04
  13  norm          41.996        2.9026        .15736E-07    .18988E-01
  14  norm          .55618E-05    110.45        .53286E-06** at limit **
  15  norm          2.4359        1.7648        .20223E-06   -.38042E-02
  16  Prefactor      .0000        3.1914       -.34984E-06** at limit **
  17  Prefactor     .10791E-05    8.9570       -.20127E-06** at limit **
  18  norm          5.0543        5.3201        .32019E-06   -.23890E-02
  19  Prefactor      .0000        27.098        .12178E-06** at limit **
  20  Prefactor     74.966        68.218       -.30375E-06    .37979E-02
  21  Prefactor     .55511E-10    1.5679       -.59608E-06** at limit **
  22  Prefactor     .55511E-10    6.6297       -.10002E-05** at limit **
  23  norm          3.8414        4.0325       -.15370E-06    .11044E-02
  24  Normalizat    1.2953        .29919        .10513E-04    .20671E-04
  25  Prefactor     .86847        .28866       -.18090E-04    .69905E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.89301
  norm       = 1.40951
  Prefactor  = 63.8736
  Prefactor  = 19.436
  Prefactor  = 8.51375e-07
  norm       = 18.9743
  norm       = 25.475
  Prefactor  = 1.01735e-06
  Prefactor  = 3.10862e-09
  Prefactor  = 2.22045e-10
  norm       = 1.14628
  Prefactor  = 2.10317
  norm       = 41.9963
  norm       = 5.56183e-06
  norm       = 2.43586
  Prefactor  = 0
  Prefactor  = 1.07914e-06
  norm       = 5.05427
  Prefactor  = 0
  Prefactor  = 74.9656
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-11
  norm       = 3.84138
  Normalizat = 1.2953
  Prefactor  = 0.868474
 **********
 **   18 **HESSE 
 **********

 FCN=   6782.986     FROM HESSE     STATUS=OK           479 CALLS     1793 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8930        3.6926        .41347E-03   -1.5659    
   2  norm          1.4095        1.1056        .91089E-04   -1.5684    
   3  Prefactor     63.874        54.562        .12794E-03   -1.5548    
   4  Prefactor     19.436        21.840        .22718E-03   -1.5620    
   5  Prefactor     .85137E-06    94.415        .92861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          18.974        1.4552        .22960E-03   -1.5621    
   7  norm          25.475        14.441        .19940E-03   -1.5607    
   8  Prefactor     .10174E-05    11.689        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .31086E-08    8.7164        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .22204E-09    6.4508        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1463        .73945        .10824E-02   -1.5687    
  12  Prefactor     2.1032        3.3252        .71540E-03   -1.5679    
  13  norm          41.996        18.573        .15367E-03   -1.5578    
  14  norm          .55618E-05    126.55        .11342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.4359        1.7888        .65568E-03   -1.5677    
  16  Prefactor      .0000        3.1741        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10791E-05    11.963        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.0543        5.3185        .44693E-03   -1.5663    
  19  Prefactor      .0000        27.153        .16328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     74.966        68.290        .11258E-03   -1.5535    
  21  Prefactor     .55511E-10    1.5630        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .55511E-10    6.6099        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.8414        4.0419        .51636E-03   -1.5669    
  24  Normalizat    1.2953        .24844        .76245E-01   -.83707    
  25  Prefactor     .86847        .24017        .89907E-01   -.97252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73595e-07
Minuit parameter uncertainties:
  1  3.69258
  2  1.10565
  3  54.5628
  4  21.8398
  5  0.0179313
  6  1.45521
  7  14.4414
  8  0.00689695
  9  0.00032935
  10  7.8691e-05
  11  0.739447
  12  3.32519
  13  18.5733
  14  0.0530607
  15  1.78876
  16  1.36965e-05
  17  0.00718609
  18  5.31847
  19  1.6897e-05
  20  68.2912
  21  1.39448e-05
  22  3.27295e-05
  23  4.04186
  24  0.248665
  25  0.240466
Done.

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

Extracting fit parameters...

4FGL J0427.3-3900
   Spectrum: PowerLaw
266    Prefactor:  2.220e-10  7.869e-05  0.000e+00  1.000e+06 ( 1.000e-12)
267        Index:  2.844e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
268        Scale:  5.048e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  8.685e-01  2.405e-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
577   Normalization:  1.295e+00  2.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 66.826 -39.010
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/824228/likelihoodResults_699667201_699926401_4FGL_J0427.3-3900_daily_bin1776.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) = 6782.98625839
delta logL = -0.000148196655573

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6782.98611023
delta logL = -4.05816535931e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6782.986     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      281 TOTAL
                     EDM=   .88E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22204E-09    .46946E-01    .42118E-03** at limit **
   2  Index         3.2455        6.4693        .50000        .11369E-09
   3  Normalizat    1.2953        .63893E-03    .76245E-01   -.21461E-03
   4  Prefactor     .86847        .63488E-03    .89907E-01   -.59513E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22045e-10
  Index      = 3.24551
  Normalizat = 1.2953
  Prefactor  = 0.868475
 **********
 **   18 **HESSE 
 **********

 FCN=   6782.986     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      312 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22204E-09    .23935        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2455        6.9164        .50000       -.35853    
   3  Normalizat    1.2953        .14396E-02    .33742E-03   -.83707    
   4  Prefactor     .86847        .14286E-02    .39824E-03   -.97252    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.49666e-12
Minuit parameter uncertainties:
  1  1.44479e-05
  2  21519.8
  3  0.00143955
  4  0.00142857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/824228': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6782.98611019
delta logL = -7.36690708436e-11

Extracting fit parameters...

4FGL J0427.3-3900
   Spectrum: PowerLaw
266    Prefactor:  2.220e-10  1.445e-05  0.000e+00  1.000e+06 ( 1.000e-12)
267        Index:  3.246e+00  2.152e+04  0.000e+00  1.000e+01 (-1.000e+00)
268        Scale:  5.048e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
577   Normalization:  1.295e+00  1.440e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 66.826 -39.010

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/824228/cmap_HighResolution_699667201_699926401_4FGL_J0427.3-3900_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', job_status='DONE', photon_flux_upper_limit='1.34e-07', time_completed='2023-03-08 00:19:55.201466', job_id='824228', GAL2='0.87', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1678263595.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='-7.37e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.84' WHERE bin_id='1776' AND source_name='4FGL J0427.3-3900' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 00:19:55 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 824189: <4FGL_J0427.3-3900_daily_bin1776> in cluster <slac> Done

Job <4FGL_J0427.3-3900_daily_bin1776> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Mar  8 00:05:17 2023
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 00:05:30 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 00:05:30 2023
Terminated at Wed Mar  8 00:18:19 2023
Results reported at Wed Mar  8 00:18:19 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3-3900_daily_bin1776 66.826 -39.0097 699667201 699926401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0427.3-3900 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   705.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             384.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            782 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 824228: <4FGL_J0427.3-3900_daily_bin1776> in cluster <slac> Done

Job <4FGL_J0427.3-3900_daily_bin1776> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Mar  8 00:05:20 2023
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 00:05:34 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 00:05:34 2023
Terminated at Wed Mar  8 00:19:55 2023
Results reported at Wed Mar  8 00:19:55 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3-3900_daily_bin1776 66.826 -39.0097 699667201 699926401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0427.3-3900 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   711.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            875 sec.

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

