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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin1778
RA = 201.501, Dec = 35.1218
tmin = 700185601, tmax = 700444801
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='964605', job_status='RUN', time_executed='2023-03-14 01:08:52.613205', time_epoch_executed='1678781332.61' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='1778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/964605

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/964605/ft1_4FGL_J1326.0+3507_daily_bin1778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/964605/ft2_4FGL_J1326.0+3507_daily_bin1778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/964605/ft1_4FGL_J1326.0+3507_daily_bin1778.fits outfile=/scratch/kocevski/964605/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1778.fits ra=201.501 dec=35.1218 rad=12.0 tmin=700185601.0 tmax=700444801.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.95
user 3.71
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/964605/ft2_4FGL_J1326.0+3507_daily_bin1778.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/964605/ft2_4FGL_J1326.0+3507_daily_bin1778.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/964605/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1778.fits evtable="EVENTS" outfile="/scratch/kocevski/964605/ft1_filtered_4FGL_J1326.0+3507_daily_bin1778.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.49
user 0.32
sys 0.15

Number of photons that the gtmktime cut: 544

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/964605/ft1_filtered_4FGL_J1326.0+3507_daily_bin1778.fits" evtable="EVENTS" scfile=/scratch/kocevski/964605/ft2_4FGL_J1326.0+3507_daily_bin1778.fits sctable="SC_DATA" outfile=/scratch/kocevski/964605/ltcube_700185601_700444801_4FGL_J1326.0+3507_daily_bin1778.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/964605/ft2_4FGL_J1326.0+3507_daily_bin1778.fits
.....................!
real 12.94
user 12.55
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/964605/ft1_filtered_4FGL_J1326.0+3507_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/964605/ft2_4FGL_J1326.0+3507_daily_bin1778.fits sctable="SC_DATA" expcube=/scratch/kocevski/964605/ltcube_700185601_700444801_4FGL_J1326.0+3507_daily_bin1778.fits outfile=/scratch/kocevski/964605/expmap_700185601_700444801_4FGL_J1326.0+3507_daily_bin1778.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/964605/ltcube_700185601_700444801_4FGL_J1326.0+3507_daily_bin1778.fits
.....................!
real 192.53
user 185.99
sys 6.01

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

Setting source of interest to:
4FGL J1326.0+3507 @ 201.501 35.1218

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/964605/ft1_filtered_4FGL_J1326.0+3507_daily_bin1778.fits scfile=/scratch/kocevski/964605/ft2_4FGL_J1326.0+3507_daily_bin1778.fits outfile=/scratch/kocevski/964605/cmap_700185601_700444801_4FGL_J1326.0+3507_daily_bin1778.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=201.501 yref=35.1218 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.58
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/964605/ft1_filtered_4FGL_J1326.0+3507_daily_bin1778.fits scfile=/scratch/kocevski/964605/ft2_4FGL_J1326.0+3507_daily_bin1778.fits outfile=/scratch/kocevski/964605/cmap_HighResolution_700185601_700444801_4FGL_J1326.0+3507_daily_bin1778.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=201.501 yref=35.1218 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/964605/ft1_filtered_4FGL_J1326.0+3507_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/964605/ft2_4FGL_J1326.0+3507_daily_bin1778.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/964605/Model_4FGL_J1326.0+3507_daily_bin1778.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/964605/ft1_filtered_4FGL_J1326.0+3507_daily_bin1778.fits.....................!
real 50.46
user 49.10
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/964605/ft1_filtered_4FGL_J1326.0+3507_daily_bin1778.fits', '/scratch/kocevski/964605/ft2_4FGL_J1326.0+3507_daily_bin1778.fits', expMap='/scratch/kocevski/964605/expmap_700185601_700444801_4FGL_J1326.0+3507_daily_bin1778.fits', expCube='/scratch/kocevski/964605/ltcube_700185601_700444801_4FGL_J1326.0+3507_daily_bin1778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/964605/Model_4FGL_J1326.0+3507_daily_bin1778.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1326.0+3507'

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  5.851e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
320        Index:  2.152e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  1.846e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/964605/ft1_filtered_4FGL_J1326.0+3507_daily_bin1778.fits
Spacecraft file(s): /scratch/kocevski/964605/ft2_4FGL_J1326.0+3507_daily_bin1778.fits
Exposure map: /scratch/kocevski/964605/expmap_700185601_700444801_4FGL_J1326.0+3507_daily_bin1778.fits
Exposure cube: /scratch/kocevski/964605/ltcube_700185601_700444801_4FGL_J1326.0+3507_daily_bin1778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/964605/Model_4FGL_J1326.0+3507_daily_bin1778.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) = 6110.72781935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2140       1.0000          .0000       .10000E+07
     2 'Prefactor '    8.8716       1.0000          .0000       .10000E+07
     3 'norm      '    .33692E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    24.858       1.0000          .0000       .10000E+07
     5 'norm      '    1.3982       1.0000          .0000       .10000E+07
     6 'Prefactor '    .72999E-03   1.0000          .0000       .10000E+07
     7 'norm      '    2.2468       1.0000          .0000       .10000E+07
     8 'norm      '    .19451E-06   1.0000          .0000       .10000E+07
     9 'norm      '    11.784       1.0000          .0000       .10000E+07
    10 'norm      '    9.9902       1.0000          .0000       .10000E+07
    11 'norm      '    .14032E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .11355E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .29699E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .17857E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.7808       1.0000          .0000       .10000E+07
    16 'Prefactor '    5.2656       1.0000          .0000       .10000E+07
    17 'norm      '    .67731       1.0000          .0000       .10000E+07
    18 'Prefactor '    .76605E-08   1.0000          .0000       .10000E+07
    19 'norm      '    .68349E-04   1.0000          .0000       .10000E+07
    20 'norm      '    .85390E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .21698E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .68606E-06   1.0000          .0000       .10000E+07
    23 'norm      '    .30185E-03   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.7061       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .44089       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6110.709     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     2104 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1946        3.3370        .14942E-08   -.18072E-01
   2  Prefactor     8.8667        7.0687        .63635E-08    .24040E-02
   3  norm          .11102E-09    3.2579        .45649E-07** at limit **
   4  Prefactor     25.210        8.1512       -.93334E-08    .22750E-01
   5  norm          1.3962        5.0332       -.81443E-07   -.10146E-02
   6  Prefactor     .16653E-09    9.0065       -.80607E-08** at limit **
   7  norm          2.2377        4.4867       -.71856E-07   -.17828E-02
   8  norm          .11102E-09    4.4802       -.59385E-08** at limit **
   9  norm          11.760        4.1450       -.53660E-07   -.70484E-02
  10  norm          10.013        2.7611       -.37820E-07   -.36642E-03
  11  norm          .14272E-06    6.5469        .25138E-06** at limit **
  12  Prefactor     .55511E-10    1.7967       -.27901E-07** at limit **
  13  Prefactor     .50165E-06    3.9190        .51614E-07** at limit **
  14  Prefactor     .76050E-07    82.936        .78835E-06** at limit **
  15  Prefactor     1.8245        3.0586        .17153E-07   -.12647E-01
  16  Prefactor     5.0425        3.3996       -.40028E-07   -.98234E-02
  17  norm          .67781        .94650        .48925E-07    .53880E-02
  18  Prefactor     .31952E-06    5.9399        .87635E-07** at limit **
  19  norm          .72164E-09    4.1086        .52245E-07** at limit **
  20  norm          .38858E-09    2.5178       -.12904E-06** at limit **
  21  Prefactor     .31419E-06    34.703       -.56558E-06** at limit **
  22  Prefactor     .31314E-06    35.800       -.31254E-06** at limit **
  23  norm          .43260E-06    3.9398        .23634E-08** at limit **
  24  Normalizat    1.7060        .21477        .34669E-06   -.16222E-03
  25  Prefactor     .44102        .24406       -.22168E-05   -.95235E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.19457
  Prefactor  = 8.86671
  norm       = 1.11022e-10
  Prefactor  = 25.2099
  norm       = 1.39616
  Prefactor  = 1.66533e-10
  norm       = 2.23774
  norm       = 1.11022e-10
  norm       = 11.7599
  norm       = 10.0128
  norm       = 1.42719e-07
  Prefactor  = 5.55112e-11
  Prefactor  = 5.01654e-07
  Prefactor  = 7.60503e-08
  Prefactor  = 1.82447
  Prefactor  = 5.04255
  norm       = 0.677806
  Prefactor  = 3.19522e-07
  norm       = 7.21645e-10
  norm       = 3.88578e-10
  Prefactor  = 3.14193e-07
  Prefactor  = 3.13138e-07
  norm       = 4.32598e-07
  Normalizat = 1.70602
  Prefactor  = 0.441024
 **********
 **   18 **HESSE 
 **********

 FCN=   6110.709     FROM HESSE     STATUS=OK           475 CALLS     2579 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1946        27.773        .69094E-03   -1.5678    
   2  Prefactor     8.8667        7.2824        .33627E-03   -1.5648    
   3  norm          .11102E-09    3.2480        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     25.210        32.128        .20061E-03   -1.5608    
   5  norm          1.3962        5.0571        .91757E-03   -1.5684    
   6  Prefactor     .16653E-09    9.1170        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.2377        4.5398        .68529E-03   -1.5678    
   8  norm          .11102E-09    4.4818        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.760        8.3763        .29158E-03   -1.5639    
  10  norm          10.013        12.265        .31678E-03   -1.5645    
  11  norm          .14272E-06    7.2582        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .55511E-10    1.7882        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .50165E-06    5.6796        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .76050E-07    83.134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.8245        41.946        .78394E-03   -1.5681    
  16  Prefactor     5.0425        31.760        .43779E-03   -1.5663    
  17  norm          .67781        .95880        .62569E-03   -1.5691    
  18  Prefactor     .31952E-06    8.2403        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .72164E-09    4.1111        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .38858E-09    2.5052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .31419E-06    36.826        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .31314E-06    39.389        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .43260E-06    5.5152        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.7060        .19719        .46037E-01   -.72143    
  25  Prefactor     .44102        .22461        .96373E-01   -1.1476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29387e-07
Minuit parameter uncertainties:
  1  15.6142
  2  7.28237
  3  3.95023e-05
  4  32.1279
  5  5.05715
  6  8.23535e-05
  7  4.53978
  8  3.90536e-05
  9  8.37627
  10  12.2651
  11  0.00203546
  12  2.24452e-05
  13  0.00337597
  14  0.00502981
  15  17.4964
  16  25.3104
  17  0.958805
  18  0.00324529
  19  0.000110042
  20  6.33192e-05
  21  0.00680319
  22  0.00702397
  23  0.00308936
  24  0.197281
  25  0.225065
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  7.605e-08  5.030e-03  0.000e+00  1.000e+06 ( 1.000e-14)
320        Index:  2.152e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  1.846e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  4.410e-01  2.251e-01  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  1.706e+00  1.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 201.501 35.122
Photon Flux Upper Limit: 6.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/964605/likelihoodResults_700185601_700444801_4FGL_J1326.0+3507_daily_bin1778.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) = 6110.71458603
delta logL = -0.00583503605412

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6110.6288874
delta logL = 0.0798635897117

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3242       1.0000          .0000       .10000E+07
     2 'Index     '    3.2761       1.0000          .0000       10.000    
     3 'Normalizat'    1.6835       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45444       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+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=   6110.629     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      284 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3239        1058.4        .11099E-03   -.25882E-02
   2  Index         3.2761        6.1541        .97742E-02   -.76976E-04
   3  Normalizat    1.6836        .19034        .20454E-03   -.12186E-03
   4  Prefactor     .45440        .21684        .42113E-03   -.47944E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.32395
  Index      = 3.27608
  Normalizat = 1.68356
  Prefactor  = 0.454402
 **********
 **   18 **HESSE 
 **********

 FCN=   6110.629     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3239        17.221        .44395E-05   -1.5671    
   2  Index         3.2761        1.6993        .39097E-03   -.35201    
   3  Normalizat    1.6836        .21989        .40909E-04   -.72743    
   4  Prefactor     .45440        .24538        .16845E-04   -1.1412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32857e-10
Minuit parameter uncertainties:
  1  15.1317
  2  1.73883
  3  0.220021
  4  0.245951
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/964605': 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) = 6110.62888734
delta logL = 0.0798636583186

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  3.324e+00  1.513e+01  0.000e+00  1.000e+06 ( 1.000e-14)
320        Index:  3.276e+00  1.739e+00  0.000e+00  1.000e+01 (-1.000e+00)
321        Scale:  1.846e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  4.544e-01  2.460e-01  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  1.684e+00  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 201.501 35.122

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/964605/cmap_HighResolution_700185601_700444801_4FGL_J1326.0+3507_daily_bin1778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.03e-03', job_status='DONE', photon_flux_upper_limit='6.62e-08', time_completed='2023-03-14 01:19:21.886037', job_id='964605', GAL2='0.45', fit_tolerance='1e-08', EG2='1.68', EG='1.71', time_epoch_completed='1678781961.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.44', dlogl='7.99e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1778' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 14 01:19:21 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 964605: <4FGL_J1326.0+3507_daily_bin1778> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin1778> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Mar 14 01:05:18 2023
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 01:05:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 01:05:20 2023
Terminated at Tue Mar 14 01:19:22 2023
Results reported at Tue Mar 14 01:19:22 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin1778 201.501 35.1218 700185601 700444801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1326.0+3507 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   631.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            844 sec.

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

