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


Performing analysis on: 4FGL_J1521.8+4338_daily_bin1751
RA = 230.464, Dec = 43.6344
tmin = 693187201, tmax = 693446401
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='81557', job_status='RUN', time_executed='2022-12-23 00:57:47.635870', time_epoch_executed='1671785867.64' WHERE source_name='4FGL J1521.8+4338' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/81557

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/81557/ft1_4FGL_J1521.8+4338_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/81557/ft2_4FGL_J1521.8+4338_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/81557/ft1_4FGL_J1521.8+4338_daily_bin1751.fits outfile=/scratch/kocevski/81557/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin1751.fits ra=230.464 dec=43.6344 rad=12.0 tmin=693187201.0 tmax=693446401.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.61
user 3.38
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/81557/ft2_4FGL_J1521.8+4338_daily_bin1751.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/81557/ft2_4FGL_J1521.8+4338_daily_bin1751.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/81557/ft1_filteredMKT_4FGL_J1521.8+4338_daily_bin1751.fits evtable="EVENTS" outfile="/scratch/kocevski/81557/ft1_filtered_4FGL_J1521.8+4338_daily_bin1751.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.33
sys 0.14

Number of photons that the gtmktime cut: 520

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/81557/ft1_filtered_4FGL_J1521.8+4338_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/81557/ft2_4FGL_J1521.8+4338_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/81557/ltcube_693187201_693446401_4FGL_J1521.8+4338_daily_bin1751.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/81557/ft2_4FGL_J1521.8+4338_daily_bin1751.fits
.....................!
real 11.96
user 11.59
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/81557/ft1_filtered_4FGL_J1521.8+4338_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/81557/ft2_4FGL_J1521.8+4338_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/81557/ltcube_693187201_693446401_4FGL_J1521.8+4338_daily_bin1751.fits outfile=/scratch/kocevski/81557/expmap_693187201_693446401_4FGL_J1521.8+4338_daily_bin1751.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/81557/ltcube_693187201_693446401_4FGL_J1521.8+4338_daily_bin1751.fits
.....................!
real 190.22
user 185.12
sys 4.79

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

Setting source of interest to:
4FGL J1521.8+4338 @ 230.464 43.6344

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/81557/ft1_filtered_4FGL_J1521.8+4338_daily_bin1751.fits scfile=/scratch/kocevski/81557/ft2_4FGL_J1521.8+4338_daily_bin1751.fits outfile=/scratch/kocevski/81557/cmap_693187201_693446401_4FGL_J1521.8+4338_daily_bin1751.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=230.464 yref=43.6344 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/81557/ft1_filtered_4FGL_J1521.8+4338_daily_bin1751.fits scfile=/scratch/kocevski/81557/ft2_4FGL_J1521.8+4338_daily_bin1751.fits outfile=/scratch/kocevski/81557/cmap_HighResolution_693187201_693446401_4FGL_J1521.8+4338_daily_bin1751.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=230.464 yref=43.6344 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/81557/ft1_filtered_4FGL_J1521.8+4338_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/81557/ft2_4FGL_J1521.8+4338_daily_bin1751.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/81557/Model_4FGL_J1521.8+4338_daily_bin1751.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/81557/ft1_filtered_4FGL_J1521.8+4338_daily_bin1751.fits....................!
real 45.59
user 44.31
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/81557/ft1_filtered_4FGL_J1521.8+4338_daily_bin1751.fits', '/scratch/kocevski/81557/ft2_4FGL_J1521.8+4338_daily_bin1751.fits', expMap='/scratch/kocevski/81557/expmap_693187201_693446401_4FGL_J1521.8+4338_daily_bin1751.fits', expCube='/scratch/kocevski/81557/ltcube_693187201_693446401_4FGL_J1521.8+4338_daily_bin1751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/81557/Model_4FGL_J1521.8+4338_daily_bin1751.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1521.8+4338'

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  3.344e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
311        Index:  2.936e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
312        Scale:  4.193e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/81557/ft1_filtered_4FGL_J1521.8+4338_daily_bin1751.fits
Spacecraft file(s): /scratch/kocevski/81557/ft2_4FGL_J1521.8+4338_daily_bin1751.fits
Exposure map: /scratch/kocevski/81557/expmap_693187201_693446401_4FGL_J1521.8+4338_daily_bin1751.fits
Exposure cube: /scratch/kocevski/81557/ltcube_693187201_693446401_4FGL_J1521.8+4338_daily_bin1751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/81557/Model_4FGL_J1521.8+4338_daily_bin1751.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) = 5672.92913022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.429       1.0000          .0000       .10000E+07
     2 'Prefactor '    .33877E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .23898E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    6.3814       1.0000          .0000       .10000E+07
     5 'norm      '    .97279E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .31330E-04   1.0000          .0000       .10000E+07
     7 'norm      '    1.9653       1.0000          .0000       .10000E+07
     8 'Prefactor '    7.6752       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.5610       1.0000          .0000       .10000E+07
    10 'norm      '    .15331       1.0000          .0000       .10000E+07
    11 'norm      '    .95130       1.0000          .0000       .10000E+07
    12 'Prefactor '    .83008E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    2.2519       1.0000          .0000       .10000E+07
    14 'Prefactor '    .28858E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .31001E-02   1.0000          .0000       .10000E+07
    16 'norm      '    2.4916       1.0000          .0000       .10000E+07
    17 'norm      '    9.5547       1.0000          .0000       .10000E+07
    18 'Prefactor '    .87464E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .11302E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    .33840E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    .11900E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .15442       1.0000          .0000       .10000E+07
    23 'Normalizat'    .70049       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3964       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5672.923     FROM MIGRAD    STATUS=CONVERGED    209 CALLS     2202 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.508        1.8574        .24670E-07    .17996E-02
   2  Prefactor     .41855E-07    24.968        .12938E-05** at limit **
   3  norm          .24647E-06    4.2851        .39752E-06** at limit **
   4  Prefactor     6.4102        1.8937       -.49746E-07    .39441E-02
   5  norm          .17208E-08    7.7417        .29101E-06** at limit **
   6  Prefactor     .55511E-10    7.8953       -.52274E-06** at limit **
   7  norm          1.9663        1.3518        .13790E-07    .88439E-03
   8  Prefactor     7.5972        7.8567        .52433E-07    .62489E-03
   9  Prefactor     1.5619        3.4211        .93106E-06   -.18110E-02
  10  norm          .15287        2.0447       -.95981E-09** at limit **
  11  norm          .95711        3.1874       -.19224E-06   -.62083E-03
  12  Prefactor     .34972E-08    7.5976        .32285E-06** at limit **
  13  Prefactor     4.8181        231.57       -.60344E-06   -.23550E-03
  14  Prefactor     .44409E-09    12.514       -.52329E-06** at limit **
  15  Prefactor     .12329E-06    9.4808        .47248E-08** at limit **
  16  norm          2.4905        1.5960       -.36693E-07    .53893E-03
  17  norm          9.5559        11.452        .41415E-06    .87843E-03
  18  Prefactor     .11102E-09    8.6544        .45926E-06** at limit **
  19  Prefactor     .24869E-07    12.230        .96708E-07** at limit **
  20  Prefactor     .55511E-10    1.9400        .21201E-07** at limit **
  21  Prefactor     .55511E-10    6.5068        .70059E-06** at limit **
  22  Prefactor     .15659        8.8026        .13061E-05** at limit **
  23  Normalizat    .70060        .20687        .40120E-05   -.10306E-03
  24  Prefactor     1.3954        .23243       -.98239E-06   -.13786E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.5084
  Prefactor  = 4.18554e-08
  norm       = 2.4647e-07
  Prefactor  = 6.41017
  norm       = 1.72085e-09
  Prefactor  = 5.55112e-11
  norm       = 1.96625
  Prefactor  = 7.59718
  Prefactor  = 1.5619
  norm       = 0.152867
  norm       = 0.957114
  Prefactor  = 3.4972e-09
  Prefactor  = 4.81815
  Prefactor  = 4.44089e-10
  Prefactor  = 1.2329e-07
  norm       = 2.49046
  norm       = 9.55591
  Prefactor  = 1.11022e-10
  Prefactor  = 2.4869e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 0.15659
  Normalizat = 0.700605
  Prefactor  = 1.39545
 **********
 **   18 **HESSE 
 **********

 FCN=   5672.923     FROM HESSE     STATUS=OK           455 CALLS     2657 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.508        23.871        .22695E-03   -1.5620    
   2  Prefactor     .41855E-07    27.758        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .24647E-06    28.220        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.4102        16.278        .39709E-03   -1.5657    
   5  norm          .17208E-08    15.617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    7.8886        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.9663        1.3650        .73951E-03   -1.5680    
   8  Prefactor     7.5972        7.5179        .36173E-03   -1.5653    
   9  Prefactor     1.5619        3.4654        .85130E-03   -1.5683    
  10  norm          .15287        .92287        .25913E-02   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .95711        3.2066        .42276E-03   -1.5688    
  12  Prefactor     .34972E-08    15.204        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.8181        225.13        .68443E-03   -1.5664    
  14  Prefactor     .44409E-09    12.575        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .12329E-06    22.438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.4905        1.5985        .64727E-03   -1.5676    
  17  norm          9.5559        11.479        .32396E-03   -1.5646    
  18  Prefactor     .11102E-09    8.6473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .24869E-07    22.639        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-10    1.9381        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .55511E-10    6.5239        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .15659        2.5416        .38195E-02   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .70060        .17333        .61256E-01   -1.0387    
  24  Prefactor     1.3954        .19137        .50111E-01   -.80512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15493e-07
Minuit parameter uncertainties:
  1  23.8711
  2  0.00215565
  3  0.00527461
  4  16.2786
  5  0.000329895
  6  3.53488e-05
  7  1.365
  8  7.51789
  9  3.46545
  10  0.751202
  11  3.20657
  12  0.000462023
  13  65.8729
  14  0.000147535
  15  0.00332625
  16  1.59849
  17  11.4792
  18  6.60475e-05
  19  0.00149995
  20  2.08062e-05
  21  4.01627e-05
  22  1.26173
  23  0.17347
  24  0.191468
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  1.233e-07  3.326e-03  0.000e+00  1.000e+06 ( 1.000e-12)
311        Index:  2.936e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
312        Scale:  4.193e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  1.395e+00  1.915e-01  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  7.006e-01  1.735e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 230.464 43.634
Photon Flux Upper Limit: 9.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/81557/likelihoodResults_693187201_693446401_4FGL_J1521.8+4338_daily_bin1751.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) = 5672.90952706
delta logL = 0.0135086156988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5671.85138389
delta logL = 1.0716517842

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5671.851     FROM MIGRAD    STATUS=CONVERGED    163 CALLS      444 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .98416E-02    .83488E-02    .12614E-03** at limit **
   2  Index         9.1563        .67815        .33831       -.13969E-04
   3  Normalizat    .60525        .19677        .65577E-01   -.14041E-03
   4  Prefactor     1.4666        .21041        .49075E-01    .50244E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00984159
  Index      = 9.1563
  Normalizat = 0.605251
  Prefactor  = 1.46656
 **********
 **   18 **HESSE 
 **********

 FCN=   5671.851     FROM HESSE     STATUS=OK            33 CALLS      477 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .98416E-02    .16544E-01    .57530E-05   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.1563        1.2005        .16909E-01   -29.256    
   3  Normalizat    .60525        .21538        .29018E-03   -2.0640    
   4  Prefactor     1.4666        .23631        .21694E-03   -.78481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04177e-10
Minuit parameter uncertainties:
  1  0.016544
  2  1.24131
  3  0.21568
  4  0.236483
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/81557': 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) = 5671.85137515
delta logL = 1.07166052924

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  9.842e-03  1.654e-02  0.000e+00  1.000e+06 ( 1.000e-12)
311        Index:  9.156e+00  1.241e+00  0.000e+00  1.000e+01 (-1.000e+00)
312        Scale:  4.193e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  1.467e+00  2.365e-01  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  6.053e-01  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.33
Ra Dec: 230.464 43.634
Photon Index (Free Index): 9.16 +/- 1.24
Photon Flux (Free Index): 6.20e-08 +/- 4.91e-08
Energy Flux (Free Index): 7.03e-06 +/- 5.57e-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/81557/cmap_HighResolution_693187201_693446401_4FGL_J1521.8+4338_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.24e-03', comment='SUCCESS', energy_flux2='7.03e-06', dlogl='1.07e+00', photon_flux2='6.20e-08', job_status='DONE', time_completed='2022-12-23 01:08:25.828497', photon_index_error2='1.24', photon_index2='9.16', ts='-0.00', fit_tolerance='1e-08', GAL='1.40', photon_index_error='0.00', photon_flux_upper_limit='9.08e-08', energy_flux_error2='5.57e-06', EG='0.70', time_epoch_completed='1671786505.83', return_code='0', job_id='81557', GAL2='1.47', EG2='0.61', return_code2='0', photon_flux_error2='4.91e-08', ts2='2.33', photon_index='2.94' WHERE bin_id='1751' AND source_name='4FGL J1521.8+4338' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 01:08:25 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 81557: <4FGL_J1521.8+4338_daily_bin1751> in cluster <slac> Done

Job <4FGL_J1521.8+4338_daily_bin1751> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Dec 23 00:55:18 2022
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:55:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:55:19 2022
Terminated at Fri Dec 23 01:08:26 2022
Results reported at Fri Dec 23 01:08:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_daily_bin1751 230.464 43.6344 693187201 693446401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1521.8+4338 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   640.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            788 sec.

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

