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


Performing analysis on: 4FGL_J1521.8+4338_weekly_bin758
RA = 230.464, Dec = 43.6344
tmin = 697420801, tmax = 698025601
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='97205', job_status='RUN', time_executed='2023-02-14 01:51:19.524229', time_epoch_executed='1676368279.52' WHERE source_name='4FGL J1521.8+4338' and cadence='weekly' and bin_id='758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/97205

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/97205/ft1_4FGL_J1521.8+4338_weekly_bin758.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/97205/ft2_4FGL_J1521.8+4338_weekly_bin758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/97205/ft1_4FGL_J1521.8+4338_weekly_bin758.fits outfile=/scratch/kocevski/97205/ft1_filteredMKT_4FGL_J1521.8+4338_weekly_bin758.fits ra=230.464 dec=43.6344 rad=12.0 tmin=697420801.0 tmax=698025601.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 7.92
user 7.63
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/97205/ft2_4FGL_J1521.8+4338_weekly_bin758.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/97205/ft1_filteredMKT_4FGL_J1521.8+4338_weekly_bin758.fits evtable="EVENTS" outfile="/scratch/kocevski/97205/ft1_filtered_4FGL_J1521.8+4338_weekly_bin758.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.55
user 0.37
sys 0.17

Number of photons that the gtmktime cut: 1191

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/97205/ft1_filtered_4FGL_J1521.8+4338_weekly_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/97205/ft2_4FGL_J1521.8+4338_weekly_bin758.fits sctable="SC_DATA" expcube=/scratch/kocevski/97205/ltcube_697420801_698025601_4FGL_J1521.8+4338_weekly_bin758.fits outfile=/scratch/kocevski/97205/expmap_697420801_698025601_4FGL_J1521.8+4338_weekly_bin758.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/97205/ltcube_697420801_698025601_4FGL_J1521.8+4338_weekly_bin758.fits
.....................!
real 191.26
user 186.78
sys 4.13

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/97205/ft1_filtered_4FGL_J1521.8+4338_weekly_bin758.fits scfile=/scratch/kocevski/97205/ft2_4FGL_J1521.8+4338_weekly_bin758.fits outfile=/scratch/kocevski/97205/cmap_697420801_698025601_4FGL_J1521.8+4338_weekly_bin758.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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/97205/ft1_filtered_4FGL_J1521.8+4338_weekly_bin758.fits scfile=/scratch/kocevski/97205/ft2_4FGL_J1521.8+4338_weekly_bin758.fits outfile=/scratch/kocevski/97205/cmap_HighResolution_697420801_698025601_4FGL_J1521.8+4338_weekly_bin758.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.56
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/97205/ft1_filtered_4FGL_J1521.8+4338_weekly_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/97205/ft2_4FGL_J1521.8+4338_weekly_bin758.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/97205/Model_4FGL_J1521.8+4338_weekly_bin758.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/97205/ft1_filtered_4FGL_J1521.8+4338_weekly_bin758.fits.....................!
real 85.38
user 83.91
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/97205/ft1_filtered_4FGL_J1521.8+4338_weekly_bin758.fits', '/scratch/kocevski/97205/ft2_4FGL_J1521.8+4338_weekly_bin758.fits', expMap='/scratch/kocevski/97205/expmap_697420801_698025601_4FGL_J1521.8+4338_weekly_bin758.fits', expCube='/scratch/kocevski/97205/ltcube_697420801_698025601_4FGL_J1521.8+4338_weekly_bin758.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/97205/Model_4FGL_J1521.8+4338_weekly_bin758.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/97205/ft1_filtered_4FGL_J1521.8+4338_weekly_bin758.fits
Spacecraft file(s): /scratch/kocevski/97205/ft2_4FGL_J1521.8+4338_weekly_bin758.fits
Exposure map: /scratch/kocevski/97205/expmap_697420801_698025601_4FGL_J1521.8+4338_weekly_bin758.fits
Exposure cube: /scratch/kocevski/97205/ltcube_697420801_698025601_4FGL_J1521.8+4338_weekly_bin758.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/97205/Model_4FGL_J1521.8+4338_weekly_bin758.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 12966.9994917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15487E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .96949E-02   1.0000          .0000       .10000E+07
     3 'norm      '    6.6952       1.0000          .0000       .10000E+07
     4 'Prefactor '    12.103       1.0000          .0000       .10000E+07
     5 'norm      '    .11430E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    18.920       1.0000          .0000       .10000E+07
     7 'norm      '    1.5926       1.0000          .0000       .10000E+07
     8 'Prefactor '    .26959       1.0000          .0000       .10000E+07
     9 'Prefactor '    4.5748       1.0000          .0000       .10000E+07
    10 'norm      '    .38536       1.0000          .0000       .10000E+07
    11 'norm      '    .71720E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    .68223E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    7.3326       1.0000          .0000       .10000E+07
    14 'Prefactor '    7.5069       1.0000          .0000       .10000E+07
    15 'Prefactor '    24.522       1.0000          .0000       .10000E+07
    16 'norm      '    .22557E-01   1.0000          .0000       .10000E+07
    17 'norm      '    .11410E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .41300E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    1.1946       1.0000          .0000       .10000E+07
    20 'Prefactor '    3.4734       1.0000          .0000       .10000E+07
    21 'Prefactor '    3.3435       1.0000          .0000       .10000E+07
    22 'Prefactor '    .81433E-05   1.0000          .0000       .10000E+07
    23 'Normalizat'    .89717       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92399       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=   12965.85     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     1647 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15543E-08    7.8804       -.45350E-06** at limit **
   2  Prefactor     .77982E-06    22.789       -.14209E-05** at limit **
   3  norm          6.6842        4.1962        .37482E-07   -.42910E-02
   4  Prefactor     11.999        3.1654       -.10214E-06   -.54855E-01
   5  norm          .14655E-07    9.3463       -.10642E-05** at limit **
   6  Prefactor     18.925        9.1179        .39886E-06    .75711E-02
   7  norm          1.5936        .90537       -.10206E-06    .12842E-02
   8  Prefactor     .26440        3.6952       -.14045E-06    .10681E-02
   9  Prefactor     4.5658        4.1804        .30902E-07    .15244E-02
  10  norm          .38477        .63365       -.88877E-07   -.51669E-03
  11  norm           .0000        .91603        .39116E-07** at limit **
  12  Prefactor      .0000        1.8386        .55740E-06** at limit **
  13  Prefactor     7.1905        1.3966        .21839E-07   -.90537E-02
  14  Prefactor     7.6135        3.8606        .13060E-07   -.13610E-01
  15  Prefactor     24.488        6.3596       -.13445E-07   -.14806E-01
  16  norm          .22657E-01    1.8464        .32263E-07** at limit **
  17  norm          .50959E-07    14.117       -.26127E-06** at limit **
  18  Prefactor      .0000        2.6571       -.11581E-06** at limit **
  19  Prefactor     .34308E-04    22.375       -.62537E-06** at limit **
  20  Prefactor     3.4778        3.1910       -.35418E-06    .64880E-03
  21  Prefactor     3.3552        2.2687       -.28321E-07   -.14890E-01
  22  Prefactor      .0000        1.7885       -.17514E-06** at limit **
  23  Normalizat    .89746        .12765       -.22623E-06   -.11744E-03
  24  Prefactor     .92413        .13367        .55612E-05   -.74516E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.55431e-09
  Prefactor  = 7.79821e-07
  norm       = 6.68417
  Prefactor  = 11.9994
  norm       = 1.46549e-08
  Prefactor  = 18.9255
  norm       = 1.59359
  Prefactor  = 0.264401
  Prefactor  = 4.5658
  norm       = 0.384774
  norm       = 0
  Prefactor  = 0
  Prefactor  = 7.19049
  Prefactor  = 7.61347
  Prefactor  = 24.488
  norm       = 0.0226565
  norm       = 5.09592e-08
  Prefactor  = 0
  Prefactor  = 3.43077e-05
  Prefactor  = 3.47781
  Prefactor  = 3.35522
  Prefactor  = 0
  Normalizat = 0.897455
  Prefactor  = 0.924133
 **********
 **   18 **HESSE 
 **********

 FCN=   12965.85     FROM HESSE     STATUS=OK           457 CALLS     2104 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15543E-08    7.9765        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .77982E-06    25.802        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.6842        4.2267        .38756E-03   -1.5656    
   4  Prefactor     11.999        8.1116        .28769E-03   -1.5639    
   5  norm          .14655E-07    9.5113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.925        9.5459        .22998E-03   -1.5621    
   7  norm          1.5936        .91555        .84034E-03   -1.5683    
   8  Prefactor     .26440        3.7223        .10649E-02   -1.5698    
   9  Prefactor     4.5658        4.1986        .47039E-03   -1.5665    
  10  norm          .38477        .68471        .25889E-02   -1.5696    
  11  norm           .0000        .91173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        1.8448        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.1905        20.871        .37016E-03   -1.5654    
  14  Prefactor     7.6135        10.689        .36580E-03   -1.5653    
  15  Prefactor     24.488        8.7466        .20198E-03   -1.5609    
  16  norm          .22657E-01    .27644        .23403E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .50959E-07    14.204        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        2.6576        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .34308E-04    146.25        .10403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.4778        3.7953        .54233E-03   -1.5671    
  21  Prefactor     3.3552        12.184        .55326E-03   -1.5671    
  22  Prefactor      .0000        1.7391        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .89746        .10980        .44865E-01   -.96550    
  24  Prefactor     .92413        .11272        .45310E-01   -.95303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32427e-07
Minuit parameter uncertainties:
  1  0.000222131
  2  0.00897124
  3  4.22673
  4  8.11163
  5  0.000747261
  6  9.54593
  7  0.915546
  8  1.98413
  9  4.19858
  10  0.684712
  11  1.70434e-07
  12  1.35657e-05
  13  20.8715
  14  10.689
  15  8.7466
  16  0.158279
  17  0.00170144
  18  9.8316e-06
  19  0.141672
  20  3.79531
  21  12.1837
  22  1.40649e-06
  23  0.109825
  24  0.112747
Done.

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

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  2.449e+01  8.747e+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

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  9.241e-01  1.127e-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:  8.975e-01  1.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.95
Ra Dec: 230.464 43.634
Photon Index (Fixed Index): 2.94 +/- 0.00
Photon Flux (Fixed Index): 8.52e-08 +/- 3.04e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 6.27e-06

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) = 12965.3553929
delta logL = 0.494678005914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12965.3388436
delta logL = 0.511227273037

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.428       1.0000          .0000       .10000E+07
     2 'Index     '    2.4984       1.0000          .0000       10.000    
     3 'Normalizat'    .92651       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90255       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12965.34     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      275 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.426        9.8671        .76391E-05   -.38694E-03
   2  Index         2.4981        .40806        .80174E-02   -.15746E-04
   3  Normalizat    .92651        .12849        .22271E-03   -.23073E-03
   4  Prefactor     .90256        .13427        .24008E-03    .49248E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.4256
  Index      = 2.49807
  Normalizat = 0.926511
  Prefactor  = 0.902557
 **********
 **   18 **HESSE 
 **********

 FCN=   12965.34     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.426        9.8745        .30557E-06   -1.5603    
   2  Index         2.4981        .40809        .32069E-03   -.52405    
   3  Normalizat    .92651        .12866        .89084E-05   -.95535    
   4  Prefactor     .90256        .13441        .96032E-05   -.96052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03822e-10
Minuit parameter uncertainties:
  1  9.87452
  2  0.408692
  3  0.128707
  4  0.134455
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/97205': 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) = 12965.3388432
delta logL = 0.511227650541

Extracting fit parameters...

4FGL J1521.8+4338
   Spectrum: PowerLaw
310    Prefactor:  2.743e+01  9.875e+00  0.000e+00  1.000e+06 ( 1.000e-12)
311        Index:  2.498e+00  4.087e-01  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:  9.026e-01  1.345e-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:  9.265e-01  1.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.87
Ra Dec: 230.464 43.634
Photon Index (Free Index): 2.50 +/- 0.41
Photon Flux (Free Index): 6.58e-08 +/- 3.20e-08
Energy Flux (Free Index): 1.91e-05 +/- 7.30e-06

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/97205/cmap_HighResolution_697420801_698025601_4FGL_J1521.8+4338_weekly_bin758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.52e-08', energy_flux2='1.91e-05', photon_flux_error='3.04e-08', dlogl='5.11e-01', energy_flux='1.76e-05', photon_flux2='6.58e-08', job_status='DONE', time_completed='2023-02-14 02:06:00.796921', photon_index_error2='0.41', photon_index2='2.50', ts='15.95', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='7.30e-06', EG='0.90', time_epoch_completed='1676369160.8', return_code='0', job_id='97205', GAL2='0.90', EG2='0.93', return_code2='0', energy_flux_error='6.27e-06', photon_flux_error2='3.20e-08', ts2='16.87', photon_index='2.94' WHERE bin_id='758' AND source_name='4FGL J1521.8+4338' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 14 02:06:00 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 97205: <4FGL_J1521.8+4338_weekly_bin758> in cluster <slac> Done

Job <4FGL_J1521.8+4338_weekly_bin758> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Feb 14 01:50:29 2023
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 14 01:50:30 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 14 01:50:30 2023
Terminated at Tue Feb 14 02:06:01 2023
Results reported at Tue Feb 14 02:06:01 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1521.8+4338_weekly_bin758 230.464 43.6344 697420801 698025601 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 :                                   881.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            932 sec.

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

