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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin1762
RA = 196.172, Dec = -3.8139
tmin = 696038401, tmax = 696297601
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='109174', job_status='RUN', time_executed='2023-01-25 00:57:46.930500', time_epoch_executed='1674637066.93' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/109174

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/109174/ft1_4FGL_J1304.6-0348_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/109174/ft2_4FGL_J1304.6-0348_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/109174/ft1_4FGL_J1304.6-0348_daily_bin1762.fits outfile=/scratch/kocevski/109174/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin1762.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=696038401.0 tmax=696297601.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.72
user 3.44
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/109174/ft2_4FGL_J1304.6-0348_daily_bin1762.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/109174/ft2_4FGL_J1304.6-0348_daily_bin1762.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/109174/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin1762.fits evtable="EVENTS" outfile="/scratch/kocevski/109174/ft1_filtered_4FGL_J1304.6-0348_daily_bin1762.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: 830

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/109174/ft1_filtered_4FGL_J1304.6-0348_daily_bin1762.fits" evtable="EVENTS" scfile=/scratch/kocevski/109174/ft2_4FGL_J1304.6-0348_daily_bin1762.fits sctable="SC_DATA" outfile=/scratch/kocevski/109174/ltcube_696038401_696297601_4FGL_J1304.6-0348_daily_bin1762.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/109174/ft2_4FGL_J1304.6-0348_daily_bin1762.fits
.....................!
real 14.65
user 14.17
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/109174/ft1_filtered_4FGL_J1304.6-0348_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/109174/ft2_4FGL_J1304.6-0348_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/109174/ltcube_696038401_696297601_4FGL_J1304.6-0348_daily_bin1762.fits outfile=/scratch/kocevski/109174/expmap_696038401_696297601_4FGL_J1304.6-0348_daily_bin1762.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/109174/ltcube_696038401_696297601_4FGL_J1304.6-0348_daily_bin1762.fits
.....................!
real 194.45
user 187.76
sys 5.49

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
Added 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1304.6-0348 @ 196.172 -3.8139

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/109174/ft1_filtered_4FGL_J1304.6-0348_daily_bin1762.fits scfile=/scratch/kocevski/109174/ft2_4FGL_J1304.6-0348_daily_bin1762.fits outfile=/scratch/kocevski/109174/cmap_696038401_696297601_4FGL_J1304.6-0348_daily_bin1762.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=196.172 yref=-3.8139 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/109174/ft1_filtered_4FGL_J1304.6-0348_daily_bin1762.fits scfile=/scratch/kocevski/109174/ft2_4FGL_J1304.6-0348_daily_bin1762.fits outfile=/scratch/kocevski/109174/cmap_HighResolution_696038401_696297601_4FGL_J1304.6-0348_daily_bin1762.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=196.172 yref=-3.8139 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/109174/ft1_filtered_4FGL_J1304.6-0348_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/109174/ft2_4FGL_J1304.6-0348_daily_bin1762.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/109174/Model_4FGL_J1304.6-0348_daily_bin1762.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 GAL_V02
Working on...
/scratch/kocevski/109174/ft1_filtered_4FGL_J1304.6-0348_daily_bin1762.fits.....................!
real 67.51
user 65.90
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/109174/ft1_filtered_4FGL_J1304.6-0348_daily_bin1762.fits', '/scratch/kocevski/109174/ft2_4FGL_J1304.6-0348_daily_bin1762.fits', expMap='/scratch/kocevski/109174/expmap_696038401_696297601_4FGL_J1304.6-0348_daily_bin1762.fits', expCube='/scratch/kocevski/109174/ltcube_696038401_696297601_4FGL_J1304.6-0348_daily_bin1762.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/109174/Model_4FGL_J1304.6-0348_daily_bin1762.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1304.6-0348'

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  2.667e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
315        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  2.075e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/109174/ft1_filtered_4FGL_J1304.6-0348_daily_bin1762.fits
Spacecraft file(s): /scratch/kocevski/109174/ft2_4FGL_J1304.6-0348_daily_bin1762.fits
Exposure map: /scratch/kocevski/109174/expmap_696038401_696297601_4FGL_J1304.6-0348_daily_bin1762.fits
Exposure cube: /scratch/kocevski/109174/ltcube_696038401_696297601_4FGL_J1304.6-0348_daily_bin1762.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/109174/Model_4FGL_J1304.6-0348_daily_bin1762.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) = 8842.19516721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0852       1.0000          .0000       .10000E+07
     2 'norm      '    1.4425       1.0000          .0000       .10000E+07
     3 'Prefactor '    .38472E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .15864E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .38282       1.0000          .0000       .10000E+07
     6 'Prefactor '    .30060E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .33431E-03   1.0000          .0000       .10000E+07
     8 'norm      '    10.977       1.0000          .0000       .10000E+07
     9 'norm      '    .44556       1.0000          .0000       .10000E+07
    10 'Prefactor '    5.0605       1.0000          .0000       .10000E+07
    11 'norm      '    1.7292       1.0000          .0000       .10000E+07
    12 'norm      '    .30513E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    3.7350       1.0000          .0000       .10000E+07
    14 'Prefactor '    28.769       1.0000          .0000       .10000E+07
    15 'Prefactor '    .75472E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    4.4046       1.0000          .0000       .10000E+07
    17 'norm      '    .89928E-08   1.0000          .0000       .10000E+07
    18 'norm      '    .10415E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .67390       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.4170       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .91836       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8842.152     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1332 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0850        1.8333        .14505E-06   -.94113E-03
   2  norm          1.4427        .53667        .75561E-07   -.23414E-01
   3  Prefactor     .11102E-09    6.4933       -.37494E-06** at limit **
   4  Prefactor     .13323E-08    6.7449        .12395E-05** at limit **
   5  norm          .38278        1.2665        .81422E-07    .50991E-03
   6  Prefactor     .55511E-10    1.9372       -.25514E-07** at limit **
   7  Prefactor     .30531E-08    14.322        .53310E-06** at limit **
   8  norm          10.748        1.8097        .31214E-06   -.17449E-01
   9  norm          .44391        .17483       -.73372E-08    .51446E-02
  10  Prefactor     7.8601        51.064        .18767E-06   -.48224E-02
  11  norm          1.7167        5.1608        .10570E-06   -.95884E-03
  12  norm          .55511E-10    4.0138       -.22518E-06** at limit **
  13  Prefactor     3.7627        6.1406        .31264E-07   -.15344E-02
  14  Prefactor     28.216        3.5023        .33995E-06   -.47640E-01
  15  Prefactor     .18097E-07    26.251        .11197E-05** at limit **
  16  Prefactor     4.3771        11.034        .44397E-05    .91735E-02
  17  norm           .0000        .57002       -.55690E-07** at limit **
  18  norm          .55511E-10    2.6149        .64963E-07** at limit **
  19  norm          .41560        3.0974        .11335E-05   -.19493E-01
  20  Normalizat    1.4169        .22526       -.35413E-06    .66866E-04
  21  Prefactor     .91826        .15897       -.22054E-05    .38243E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.08499
  norm       = 1.44265
  Prefactor  = 1.11022e-10
  Prefactor  = 1.33227e-09
  norm       = 0.382777
  Prefactor  = 5.55112e-11
  Prefactor  = 3.05311e-09
  norm       = 10.7478
  norm       = 0.443909
  Prefactor  = 7.86009
  norm       = 1.71665
  norm       = 5.55112e-11
  Prefactor  = 3.7627
  Prefactor  = 28.2159
  Prefactor  = 1.80966e-08
  Prefactor  = 4.37706
  norm       = 0
  norm       = 5.55112e-11
  norm       = 0.415602
  Normalizat = 1.41695
  Prefactor  = 0.918256
 **********
 **   18 **HESSE 
 **********

 FCN=   8842.152     FROM HESSE     STATUS=OK           365 CALLS     1697 TOTAL
                     EDM=   .94E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0850        2.2493        .37610E-02   -1.5687    
   2  norm          1.4427        .54495        .89766E-03   -1.5684    
   3  Prefactor     .11102E-09    6.4647        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .13323E-08    6.7343        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .38278        1.2597        .91505E-03   -1.5696    
   6  Prefactor     .55511E-10    1.9347        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .30531E-08    14.558        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.748        16.625        .30215E-03   -1.5642    
   9  norm          .44391        .17655        .52822E-03   -1.5695    
  10  Prefactor     7.8601        50.890        .44674E-03   -1.5652    
  11  norm          1.7167        5.2477        .79811E-03   -1.5682    
  12  norm          .55511E-10    4.0340        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.7627        6.1556        .52222E-03   -1.5669    
  14  Prefactor     28.216        17.018        .18647E-03   -1.5602    
  15  Prefactor     .18097E-07    25.591        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.3771        11.146        .47963E-03   -1.5666    
  17  norm           .0000        .56672        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .55511E-10    2.6006        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .41560        105.49        .62853E-03   -1.5695    
  20  Normalizat    1.4169        .18886        .61446E-01   -.80140    
  21  Prefactor     .91826        .13247        .45239E-01   -.95506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.4039e-07
Minuit parameter uncertainties:
  1  2.24929
  2  0.544946
  3  4.95666e-05
  4  0.000189712
  5  1.25966
  6  1.84871e-05
  7  0.000420376
  8  16.6254
  9  0.176554
  10  40.0005
  11  5.24771
  12  3.27878e-05
  13  6.15563
  14  17.0184
  15  0.00136018
  16  11.1457
  17  4.87487e-06
  18  2.51684e-05
  19  13.2431
  20  0.188953
  21  0.132512
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  7.860e+00  4.000e+01  0.000e+00  1.000e+06 ( 1.000e-14)
315        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  2.075e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
604    Prefactor:  9.183e-01  1.325e-01  0.000e+00  1.000e+01 ( 1.000e+00)
605        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
606        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
603   Normalization:  1.417e+00  1.890e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 196.172 -3.814
Photon Flux Upper Limit: 7.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/109174/likelihoodResults_696038401_696297601_4FGL_J1304.6-0348_daily_bin1762.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) = 8842.07602039
delta logL = 0.0761109359828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8842.07239381
delta logL = 0.0797375235325

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8842.072     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      282 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1935        58.109        .16128E-04    .16776E-02
   2  Index         2.7808        2.3117        .10518E-01    .11214E-03
   3  Normalizat    1.4043        .22440        .27274E-03    .38818E-03
   4  Prefactor     .92271        .15868        .23359E-03    .35337E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.19347
  Index      = 2.78076
  Normalizat = 1.4043
  Prefactor  = 0.922709
 **********
 **   18 **HESSE 
 **********

 FCN=   8842.072     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1935        23.303        .64513E-06   -1.5658    
   2  Index         2.7808        1.4635        .42073E-03   -.45989    
   3  Normalizat    1.4043        .22411        .54549E-04   -.80504    
   4  Prefactor     .92271        .15837        .46717E-04   -.95352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13644e-10
Minuit parameter uncertainties:
  1  23.3033
  2  1.49081
  3  0.224266
  4  0.158447
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/109174': 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) = 8842.07239351
delta logL = 0.0797378255884

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  6.193e+00  2.330e+01  0.000e+00  1.000e+06 ( 1.000e-14)
315        Index:  2.781e+00  1.491e+00  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  2.075e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
604    Prefactor:  9.227e-01  1.584e-01  0.000e+00  1.000e+01 ( 1.000e+00)
605        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
606        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
603   Normalization:  1.404e+00  2.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 196.172 -3.814

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/109174/cmap_HighResolution_696038401_696297601_4FGL_J1304.6-0348_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.39e-03', job_status='DONE', photon_flux_upper_limit='7.09e-08', time_completed='2023-01-25 01:08:58.684600', job_id='109174', GAL2='0.92', fit_tolerance='1e-08', EG2='1.40', EG='1.42', time_epoch_completed='1674637738.68', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='7.97e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1762' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 01:08:58 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 109174: <4FGL_J1304.6-0348_daily_bin1762> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin1762> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Jan 25 00:55:25 2023
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 00:56:45 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 00:56:45 2023
Terminated at Wed Jan 25 01:08:59 2023
Results reported at Wed Jan 25 01:08:59 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin1762 196.172 -3.8139 696038401 696297601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1304.6-0348 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   672.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            814 sec.

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

