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


Performing analysis on: 4FGL_J0325.6-1646_daily_bin1748
RA = 51.4179, Dec = -16.781
tmin = 692409601, tmax = 692668801
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='875801', job_status='RUN', time_executed='2022-12-14 00:07:19.642675', time_epoch_executed='1671005239.64' WHERE source_name='4FGL J0325.6-1646' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/875801

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/875801/ft1_4FGL_J0325.6-1646_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/875801/ft2_4FGL_J0325.6-1646_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/875801/ft1_4FGL_J0325.6-1646_daily_bin1748.fits outfile=/scratch/kocevski/875801/ft1_filteredMKT_4FGL_J0325.6-1646_daily_bin1748.fits ra=51.4179 dec=-16.781 rad=12.0 tmin=692409601.0 tmax=692668801.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.70
user 3.33
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/875801/ft2_4FGL_J0325.6-1646_daily_bin1748.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/875801/ft2_4FGL_J0325.6-1646_daily_bin1748.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/875801/ft1_filteredMKT_4FGL_J0325.6-1646_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/875801/ft1_filtered_4FGL_J0325.6-1646_daily_bin1748.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.61
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 475

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/875801/ft1_filtered_4FGL_J0325.6-1646_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/875801/ft2_4FGL_J0325.6-1646_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/875801/ltcube_692409601_692668801_4FGL_J0325.6-1646_daily_bin1748.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/875801/ft2_4FGL_J0325.6-1646_daily_bin1748.fits
.....................!
real 13.00
user 12.51
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/875801/ft1_filtered_4FGL_J0325.6-1646_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/875801/ft2_4FGL_J0325.6-1646_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/875801/ltcube_692409601_692668801_4FGL_J0325.6-1646_daily_bin1748.fits outfile=/scratch/kocevski/875801/expmap_692409601_692668801_4FGL_J0325.6-1646_daily_bin1748.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/875801/ltcube_692409601_692668801_4FGL_J0325.6-1646_daily_bin1748.fits
.....................!
real 191.20
user 185.62
sys 5.23

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 167 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 J0325.6-1646 @ 51.4179 -16.781

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/875801/ft1_filtered_4FGL_J0325.6-1646_daily_bin1748.fits scfile=/scratch/kocevski/875801/ft2_4FGL_J0325.6-1646_daily_bin1748.fits outfile=/scratch/kocevski/875801/cmap_692409601_692668801_4FGL_J0325.6-1646_daily_bin1748.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=51.4179 yref=-16.781 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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/875801/ft1_filtered_4FGL_J0325.6-1646_daily_bin1748.fits scfile=/scratch/kocevski/875801/ft2_4FGL_J0325.6-1646_daily_bin1748.fits outfile=/scratch/kocevski/875801/cmap_HighResolution_692409601_692668801_4FGL_J0325.6-1646_daily_bin1748.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=51.4179 yref=-16.781 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/875801/ft1_filtered_4FGL_J0325.6-1646_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/875801/ft2_4FGL_J0325.6-1646_daily_bin1748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/875801/Model_4FGL_J0325.6-1646_daily_bin1748.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/875801/ft1_filtered_4FGL_J0325.6-1646_daily_bin1748.fits.....................!
real 116.34
user 114.90
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/875801/ft1_filtered_4FGL_J0325.6-1646_daily_bin1748.fits', '/scratch/kocevski/875801/ft2_4FGL_J0325.6-1646_daily_bin1748.fits', expMap='/scratch/kocevski/875801/expmap_692409601_692668801_4FGL_J0325.6-1646_daily_bin1748.fits', expCube='/scratch/kocevski/875801/ltcube_692409601_692668801_4FGL_J0325.6-1646_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/875801/Model_4FGL_J0325.6-1646_daily_bin1748.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0325.6-1646'

4FGL J0325.6-1646
   Spectrum: PowerLaw
272    Prefactor:  1.374e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
273        Index:  1.861e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  2.719e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/875801/ft1_filtered_4FGL_J0325.6-1646_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/875801/ft2_4FGL_J0325.6-1646_daily_bin1748.fits
Exposure map: /scratch/kocevski/875801/expmap_692409601_692668801_4FGL_J0325.6-1646_daily_bin1748.fits
Exposure cube: /scratch/kocevski/875801/ltcube_692409601_692668801_4FGL_J0325.6-1646_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/875801/Model_4FGL_J0325.6-1646_daily_bin1748.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) = 5369.56071804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '     .0000       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11448E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .75578E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    20.938       1.0000          .0000       .10000E+07
     5 'Prefactor '    .37318E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.2973       1.0000          .0000       .10000E+07
     7 'Prefactor '    .15349E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    23.093       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.1847       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.3548       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.7665       1.0000          .0000       .10000E+07
    12 'Prefactor '    .47182E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    8.3920       1.0000          .0000       .10000E+07
    14 'norm      '    .11069E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    12.554       1.0000          .0000       .10000E+07
    16 'Prefactor '    4.1146       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.5276       1.0000          .0000       .10000E+07
    18 'Prefactor '    .43291       1.0000          .0000       .10000E+07
    19 'Normalizat'    .65152       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0641       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5369.518     FROM MIGRAD    STATUS=CONVERGED    166 CALLS     1575 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        3.5022        .13677E-06** at limit **
   2  Prefactor     .55511E-10    4.7332       -.54947E-06** at limit **
   3  norm           .0000        .75570        .25539E-07** at limit **
   4  Prefactor     20.781        16.552        .45705E-07   -.69774E-02
   5  Prefactor     .83822E-08    47.904        .22794E-06** at limit **
   6  Prefactor     .23088E-05    168.29       -.17819E-06** at limit **
   7  Prefactor      .0000        1.8205       -.46985E-07** at limit **
   8  Prefactor     23.336        15.012       -.66803E-07   -.55106E-01
   9  Prefactor     3.2093        10.178       -.18416E-06    .21467E-03
  10  Prefactor     1.3549        1.7520       -.96259E-07    .95388E-03
  11  Prefactor     3.7462        3.6072       -.13602E-06    .78869E-03
  12  Prefactor      .0000        2.8786        .14900E-06** at limit **
  13  Prefactor     7.4909        38.996       -.28184E-06    .21119E-01
  14  norm           .0000        .67526       -.17020E-06** at limit **
  15  Prefactor     13.446        27.403        .84332E-08    .35405E-01
  16  Prefactor     4.0931        2.7521        .49439E-07   -.61576E-03
  17  Prefactor     4.8398        17.171        .76430E-07   -.71823E-02
  18  Prefactor     .41116        26.104       -.61808E-06   -.26634E-02
  19  Normalizat    .65014        .20208        .44842E-05    .37280E-04
  20  Prefactor     1.0647        .16455       -.19904E-05    .60362E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 0
  Prefactor  = 20.7806
  Prefactor  = 8.38218e-09
  Prefactor  = 2.30882e-06
  Prefactor  = 0
  Prefactor  = 23.3364
  Prefactor  = 3.20928
  Prefactor  = 1.35486
  Prefactor  = 3.74616
  Prefactor  = 0
  Prefactor  = 7.49092
  norm       = 0
  Prefactor  = 13.4463
  Prefactor  = 4.09309
  Prefactor  = 4.83978
  Prefactor  = 0.411163
  Normalizat = 0.650141
  Prefactor  = 1.06467
 **********
 **   18 **HESSE 
 **********

 FCN=   5369.518     FROM HESSE     STATUS=OK           351 CALLS     1926 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.0094        .25911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55511E-10    4.7277        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        .75581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.781        16.575        .21860E-03   -1.5617    
   5  Prefactor     .83822E-08    5.6750        .50761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .23088E-05    222.98        .97042E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        1.8096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.336        18.966        .20814E-03   -1.5611    
   9  Prefactor     3.2093        10.272        .56758E-03   -1.5672    
  10  Prefactor     1.3549        1.7837        .93890E-03   -1.5685    
  11  Prefactor     3.7462        3.6341        .51995E-03   -1.5669    
  12  Prefactor      .0000        2.8667        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.4909        46.129        .34582E-03   -1.5653    
  14  norm           .0000        .66400        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.446        30.771        .28246E-03   -1.5635    
  16  Prefactor     4.0931        2.7897        .49673E-03   -1.5668    
  17  Prefactor     4.8398        62.718        .53797E-03   -1.5664    
  18  Prefactor     .41116        6.1365        .59908E-02   -1.5695    
  19  Normalizat    .65014        .17961        .61827E-01   -1.0590    
  20  Prefactor     1.0647        .14273        .39147E-01   -.90604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40462e-07
Minuit parameter uncertainties:
  1  1.57409e-06
  2  2.67136e-05
  3  4.55619e-07
  4  16.5753
  5  0.000435659
  6  0.0453811
  7  4.1361e-06
  8  18.9658
  9  10.2716
  10  1.78372
  11  3.6341
  12  1.7634e-06
  13  37.1784
  14  2.2875e-06
  15  30.7718
  16  2.78968
  17  34.8454
  18  3.17686
  19  0.179775
  20  0.142782
Done.

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

Extracting fit parameters...

4FGL J0325.6-1646
   Spectrum: PowerLaw
272    Prefactor:  0.000e+00  4.136e-06  0.000e+00  1.000e+06 ( 1.000e-13)
273        Index:  1.861e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  2.719e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  1.065e+00  1.428e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  6.501e-01  1.798e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 51.418 -16.781
Photon Flux Upper Limit: 4.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/875801/likelihoodResults_692409601_692668801_4FGL_J0325.6-1646_daily_bin1748.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) = 5369.51886198
delta logL = -0.00066989734114

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5369.51819667
delta logL = -4.58589511254e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15445E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .63147       1.0000          .0000       10.000    
     3 'Normalizat'    .65022       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0648       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5368.239     FROM MIGRAD    STATUS=FAILED       440 CALLS      640 TOTAL
                     EDM=   .20E+02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-09    .58287E-09     .0000    ** at limit **
   2  Index         9.7933        .58903         .0000       -.15767E-01
   3  Normalizat    .56690        .83735E-02     .0000       -.37968    
   4  Prefactor     1.1115        .74279E-02     .0000       -.40445    
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5368.233     FROM SIMPLEX   STATUS=PROGRESS      72 CALLS      712 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38858E-09    .58287E-09    .96162E-10** at limit **
   2  Index         9.9031        .58903        .27954E-02   -.15767E-01
   3  Normalizat    .56829        .83735E-02    .12857E-03   -.37968    
   4  Prefactor     1.1120        .74279E-02    .42028E-04   -.40445    
                               ERR DEF=  .500    
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   5368.233     FROM MIGRAD    STATUS=FAILED        52 CALLS      764 TOTAL
                     EDM=   .12E+03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38858E-09    .97145E-09     .0000    ** at limit **
   2  Index         9.9031        6.6781         .0000       -.12537E-01
   3  Normalizat    .56829        .19479E-01     .0000        .64235E-01
   4  Prefactor     1.1120        .17220E-01     .0000        .26991    
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.88578e-10
  Index      = 9.9031
  Normalizat = 0.568293
  Prefactor  = 1.112
 **********
 **   18 **HESSE 
 **********

 FCN=   5368.233     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      791 TOTAL
                     EDM=   .24E+03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38858E-09    .94369E-09    .74901E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.9031        6.6592        .61025E-03    1.3736    
   3  Normalizat    .56829        .19353E-01    .58178E-04   -1.0935    
   4  Prefactor     1.1120        .17104E-01    .37645E-04   -.89084    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 237.293
Minuit parameter uncertainties:
  1  9.63763e-10
  2  1.02966
  3  0.0193534
  4  0.0171039
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/875801': 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): 1
logL (Free Index) = 5368.23322039
delta logL = 1.28497169192

Extracting fit parameters...

4FGL J0325.6-1646
   Spectrum: PowerLaw
272    Prefactor:  3.886e-10  9.638e-10  0.000e+00  1.000e+06 ( 1.000e-13)
273        Index:  9.903e+00  1.030e+00  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  2.719e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  1.112e+00  1.710e-02  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  5.683e-01  1.935e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 51.418 -16.781
Photon Index (Free Index): 9.90 +/- 1.03
Photon Flux (Free Index): 7.22e-08 +/- 5.71e-08
Energy Flux (Free Index): 8.09e-06 +/- 6.32e-06

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/875801/cmap_HighResolution_692409601_692668801_4FGL_J0325.6-1646_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-03', comment='SUCCESS', energy_flux2='8.09e-06', dlogl='1.28e+00', photon_flux2='7.22e-08', job_status='DONE', time_completed='2022-12-14 00:17:39.099708', photon_index_error2='1.03', photon_index2='9.90', ts='0.00', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='4.15e-08', energy_flux_error2='6.32e-06', EG='0.65', time_epoch_completed='1671005859.1', return_code='0', job_id='875801', GAL2='1.11', EG2='0.57', return_code2='1', photon_flux_error2='5.71e-08', ts2='2.75', photon_index='1.86' WHERE bin_id='1748' AND source_name='4FGL J0325.6-1646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:17:39 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 875801: <4FGL_J0325.6-1646_daily_bin1748> in cluster <slac> Done

Job <4FGL_J0325.6-1646_daily_bin1748> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec 14 00:05:09 2022
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:05:11 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:05:11 2022
Terminated at Wed Dec 14 00:17:39 2022
Results reported at Wed Dec 14 00:17:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0325.6-1646_daily_bin1748 51.4179 -16.781 692409601 692668801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0325.6-1646 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   620.49 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             279.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            750 sec.

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

