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


Performing analysis on: 4FGL_J0515.8+1527_monthly_bin174
RA = 78.953, Dec = 15.4614
tmin = 688003201, tmax = 690595201
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='840286', job_status='RUN', time_executed='2022-11-20 01:03:37.375563', time_epoch_executed='1668935017.38' WHERE source_name='4FGL J0515.8+1527' and cadence='monthly' and bin_id='174'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/840286

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/840286/ft1_4FGL_J0515.8+1527_monthly_bin174.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/840286/ft2_4FGL_J0515.8+1527_monthly_bin174.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/840286/ft1_4FGL_J0515.8+1527_monthly_bin174.fits outfile=/scratch/kocevski/840286/ft1_filteredMKT_4FGL_J0515.8+1527_monthly_bin174.fits ra=78.953 dec=15.4614 rad=12.0 tmin=688003201.0 tmax=690595201.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 31.50
user 30.60
sys 0.81

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/840286/ft2_4FGL_J0515.8+1527_monthly_bin174.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/840286/ft2_4FGL_J0515.8+1527_monthly_bin174.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/840286/ft1_filteredMKT_4FGL_J0515.8+1527_monthly_bin174.fits evtable="EVENTS" outfile="/scratch/kocevski/840286/ft1_filtered_4FGL_J0515.8+1527_monthly_bin174.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.87
user 0.66
sys 0.20

Number of photons that the gtmktime cut: 20313

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/840286/ft1_filtered_4FGL_J0515.8+1527_monthly_bin174.fits" evtable="EVENTS" scfile=/scratch/kocevski/840286/ft2_4FGL_J0515.8+1527_monthly_bin174.fits sctable="SC_DATA" outfile=/scratch/kocevski/840286/ltcube_688003201_690595201_4FGL_J0515.8+1527_monthly_bin174.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/840286/ft2_4FGL_J0515.8+1527_monthly_bin174.fits
.....................!
real 143.97
user 143.20
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/840286/ft1_filtered_4FGL_J0515.8+1527_monthly_bin174.fits evtable="EVENTS" scfile=/scratch/kocevski/840286/ft2_4FGL_J0515.8+1527_monthly_bin174.fits sctable="SC_DATA" expcube=/scratch/kocevski/840286/ltcube_688003201_690595201_4FGL_J0515.8+1527_monthly_bin174.fits outfile=/scratch/kocevski/840286/expmap_688003201_690595201_4FGL_J0515.8+1527_monthly_bin174.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/840286/ltcube_688003201_690595201_4FGL_J0515.8+1527_monthly_bin174.fits
.....................!
real 194.43
user 187.88
sys 6.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
Extended source S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/S147.fits is the correct path to the extended template.
Extended source IC 443 in ROI with RadialGaussian spatial model.
Added 165 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0515.8+1527 @ 78.953 15.4614

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/840286/ft1_filtered_4FGL_J0515.8+1527_monthly_bin174.fits scfile=/scratch/kocevski/840286/ft2_4FGL_J0515.8+1527_monthly_bin174.fits outfile=/scratch/kocevski/840286/cmap_688003201_690595201_4FGL_J0515.8+1527_monthly_bin174.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=78.953 yref=15.4614 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.84
user 0.64
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/840286/ft1_filtered_4FGL_J0515.8+1527_monthly_bin174.fits scfile=/scratch/kocevski/840286/ft2_4FGL_J0515.8+1527_monthly_bin174.fits outfile=/scratch/kocevski/840286/cmap_HighResolution_688003201_690595201_4FGL_J0515.8+1527_monthly_bin174.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=78.953 yref=15.4614 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.83
user 0.63
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/840286/ft1_filtered_4FGL_J0515.8+1527_monthly_bin174.fits evtable="EVENTS" scfile=/scratch/kocevski/840286/ft2_4FGL_J0515.8+1527_monthly_bin174.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/840286/Model_4FGL_J0515.8+1527_monthly_bin174.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
adding source IC 443
adding source S 147
Working on...
/scratch/kocevski/840286/ft1_filtered_4FGL_J0515.8+1527_monthly_bin174.fits.....................!
real 4336.79
user 4327.00
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/840286/ft1_filtered_4FGL_J0515.8+1527_monthly_bin174.fits', '/scratch/kocevski/840286/ft2_4FGL_J0515.8+1527_monthly_bin174.fits', expMap='/scratch/kocevski/840286/expmap_688003201_690595201_4FGL_J0515.8+1527_monthly_bin174.fits', expCube='/scratch/kocevski/840286/ltcube_688003201_690595201_4FGL_J0515.8+1527_monthly_bin174.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/840286/Model_4FGL_J0515.8+1527_monthly_bin174.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0515.8+1527'

4FGL J0515.8+1527
   Spectrum: PowerLaw
237    Prefactor:  1.467e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
238        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
239        Scale:  3.068e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/840286/ft1_filtered_4FGL_J0515.8+1527_monthly_bin174.fits
Spacecraft file(s): /scratch/kocevski/840286/ft2_4FGL_J0515.8+1527_monthly_bin174.fits
Exposure map: /scratch/kocevski/840286/expmap_688003201_690595201_4FGL_J0515.8+1527_monthly_bin174.fits
Exposure cube: /scratch/kocevski/840286/ltcube_688003201_690595201_4FGL_J0515.8+1527_monthly_bin174.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/840286/Model_4FGL_J0515.8+1527_monthly_bin174.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) = 200236.983095

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6692       1.0000          .0000       .10000E+07
     2 'Prefactor '    9.3802       1.0000          .0000       .10000E+07
     3 'norm      '    3.7898       1.0000          .0000       .10000E+07
     4 'Prefactor '    9.6354       1.0000          .0000       .10000E+07
     5 'Prefactor '    24.214       1.0000          .0000       .10000E+07
     6 'Prefactor '    .17888       1.0000          .0000       .10000E+07
     7 'norm      '    1.0920       1.0000          .0000       .10000E+07
     8 'norm      '    4.8999       1.0000          .0000       .10000E+07
     9 'Prefactor '    .49392E-01   1.0000          .0000       .10000E+07
    10 'norm      '    .19977E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .48347       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.2581       1.0000          .0000       .10000E+07
    13 'norm      '    4.4444       1.0000          .0000       .10000E+07
    14 'norm      '    2.7429       1.0000          .0000       .10000E+07
    15 'norm      '    .55948       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.2336       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2778       1.0000          .0000       .10000E+07
    18 'Prefactor '    .30254E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    1.5851       1.0000          .0000       .10000E+07
    20 'Prefactor '    1.8092       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.2323       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95428       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   200236.9     FROM MIGRAD    STATUS=CONVERGED    101 CALLS     1407 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6404        3.7314        .21630E-06    .17821E-01
   2  Prefactor     9.3872        1.2961        .95813E-07   -.82574E-02
   3  norm          3.7899        .71903        .28789E-07    .53068E-02
   4  Prefactor     9.6694        1.2224        .26010E-07    .68425E-01
   5  Prefactor     24.305        8.1161        .59667E-06   -.12230    
   6  Prefactor     .17946        4.3462        .49437E-06** at limit **
   7  norm          1.0913        .22267       -.46986E-07   -.51113E-01
   8  norm          4.8974        1.2233        .76196E-08   -.14423E-02
   9  Prefactor     .51981E-01    2.9542       -.68984E-06** at limit **
  10  norm           .0000        .48011       -.15389E-06** at limit **
  11  Prefactor     .48389        .56686       -.15827E-07    .64515E-02
  12  Prefactor     4.2699        4.1574        .64204E-06    .92623E-01
  13  norm          4.4441        .80234        .28999E-07   -.62316E-03
  14  norm          2.7447        1.6490        .18608E-07    .44078E-03
  15  norm          .55927        .28873       -.34436E-07   -.93275E-02
  16  Prefactor     1.2336        .40877E-01    .65954E-08   -.34053E-02
  17  Prefactor     2.2776        .31714        .86162E-10   -.25086E-02
  18  Prefactor     .22204E-09    3.6125        .32713E-07** at limit **
  19  Prefactor     1.5808        5.8278        .50016E-06    .38669E-02
  20  Prefactor     1.8109        1.3400        .28295E-07    .12050E-02
  21  Normalizat    1.2320        .10926       -.14788E-05   -.32076E-03
  22  Prefactor     .95430        .16440E-01   -.27853E-06   -.18018E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.64039
  Prefactor  = 9.38721
  norm       = 3.78986
  Prefactor  = 9.66935
  Prefactor  = 24.3049
  Prefactor  = 0.179457
  norm       = 1.09131
  norm       = 4.89745
  Prefactor  = 0.051981
  norm       = 0
  Prefactor  = 0.483891
  Prefactor  = 4.26993
  norm       = 4.44413
  norm       = 2.74471
  norm       = 0.559269
  Prefactor  = 1.23358
  Prefactor  = 2.27757
  Prefactor  = 2.22045e-10
  Prefactor  = 1.58082
  Prefactor  = 1.81088
  Normalizat = 1.23203
  Prefactor  = 0.954296
 **********
 **   18 **HESSE 
 **********

 FCN=   200236.9     FROM HESSE     STATUS=OK           410 CALLS     1817 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6404        3.7361        .46550E-03   -1.5665    
   2  Prefactor     9.3872        10.395        .32698E-03   -1.5647    
   3  norm          3.7899        .72146        .51830E-03   -1.5669    
   4  Prefactor     9.6694        7.1827        .32259E-03   -1.5646    
   5  Prefactor     24.305        11.403        .20327E-03   -1.5609    
   6  Prefactor     .17946        .47617        .12164E-01   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0913        .23241        .11431E-02   -1.5687    
   8  norm          4.8974        1.2316        .45416E-03   -1.5664    
   9  Prefactor     .51981E-01    .14840        .86158E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        .48005        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .48389        .56848        .80391E-04   -1.5694    
  12  Prefactor     4.2699        6.1268        .48804E-03   -1.5667    
  13  norm          4.4441        .80762        .47741E-03   -1.5666    
  14  norm          2.7447        1.6591        .61447E-03   -1.5675    
  15  norm          .55927        .29661        .72939E-03   -1.5693    
  16  Prefactor     1.2336        .39965E-01    .27634E-02   -1.5486    
  17  Prefactor     2.2776        .31257        .68007E-03   -1.5678    
  18  Prefactor     .22204E-09    3.5739        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.5808        5.8392        .84290E-03   -1.5683    
  20  Prefactor     1.8109        1.3553        .77650E-03   -1.5681    
  21  Normalizat    1.2320        .10981        .17920       -.85619    
  22  Prefactor     .95430        .15693E-01    .32665E-01   -.94269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.24406e-07
Minuit parameter uncertainties:
  1  3.73613
  2  10.395
  3  0.721458
  4  7.18272
  5  11.4028
  6  0.476171
  7  0.232406
  8  1.23162
  9  0.148399
  10  7.83442e-07
  11  0.568485
  12  6.12683
  13  0.807616
  14  1.65907
  15  0.29661
  16  0.0399647
  17  0.312569
  18  5.30722e-05
  19  5.83921
  20  1.35525
  21  0.109829
  22  0.0156931
Done.

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

Extracting fit parameters...

4FGL J0515.8+1527
   Spectrum: PowerLaw
237    Prefactor:  4.839e-01  5.685e-01  0.000e+00  1.000e+06 ( 1.000e-13)
238        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
239        Scale:  3.068e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  9.543e-01  1.569e-02  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.232e+00  1.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.17
Ra Dec: 78.953 15.461
Photon Index (Fixed Index): 1.94 +/- 0.00
Photon Flux (Fixed Index): 3.96e-09 +/- 4.65e-09
Energy Flux (Fixed Index): 3.17e-06 +/- 3.73e-06

TS (Fixed Index): 1.17
Ra Dec: 78.953 15.461
Photon Flux Upper Limit: 1.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/840286/likelihoodResults_688003201_690595201_4FGL_J0515.8+1527_monthly_bin174.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) = 200236.874893
delta logL = 0.0723902408208

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 200236.870693
delta logL = 0.0765908449539

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   200236.9     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      274 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53836        .62365        .38377E-03    .27947E-01
   2  Index         1.6831        .65120        .11629E-01    .75899E-04
   3  Normalizat    1.2331        .97401E-01    .79751E-03    .22808E-05
   4  Prefactor     .95429        .15939E-01    .14435E-03    .10081E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.538358
  Index      = 1.68311
  Normalizat = 1.23312
  Prefactor  = 0.954285
 **********
 **   18 **HESSE 
 **********

 FCN=   200236.9     FROM HESSE     STATUS=OK            27 CALLS      301 TOTAL
                     EDM=   .27E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53836        .61873        .15351E-04   -1.5693    
   2  Index         1.6831        .65063        .23259E-02   -.72532    
   3  Normalizat    1.2331        .97421E-01    .31900E-04   -.85586    
   4  Prefactor     .95429        .15943E-01    .57740E-05   -.94269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74454e-13
Minuit parameter uncertainties:
  1  0.618731
  2  0.653959
  3  0.0974349
  4  0.0159429
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/840286': 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) = 200236.870693
delta logL = 0.0765908929461

Extracting fit parameters...

4FGL J0515.8+1527
   Spectrum: PowerLaw
237    Prefactor:  5.384e-01  6.187e-01  0.000e+00  1.000e+06 ( 1.000e-13)
238        Index:  1.683e+00  6.540e-01  0.000e+00  1.000e+01 (-1.000e+00)
239        Scale:  3.068e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  9.543e-01  1.594e-02  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.233e+00  9.743e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.32
Ra Dec: 78.953 15.461
Photon Index (Free Index): 1.68 +/- 0.65
Photon Flux (Free Index): 2.49e-09 +/- 4.39e-09
Energy Flux (Free Index): 4.28e-06 +/- 5.91e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -3.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  3.330e+00 [aplpy.core]
Saving /scratch/kocevski/840286/cmap_HighResolution_688003201_690595201_4FGL_J0515.8+1527_monthly_bin174.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-03', comment='SUCCESS', photon_flux='3.96e-09', energy_flux2='4.28e-06', photon_flux_error='4.65e-09', dlogl='7.66e-02', energy_flux='3.17e-06', photon_flux2='2.49e-09', job_status='DONE', time_completed='2022-11-20 04:20:14.731399', photon_index_error2='0.65', photon_index2='1.68', ts='1.17', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.64e-08', energy_flux_error2='5.91e-06', EG='1.23', time_epoch_completed='1668946814.73', return_code='0', job_id='840286', GAL2='0.95', EG2='1.23', return_code2='0', energy_flux_error='3.73e-06', photon_flux_error2='4.39e-09', ts2='1.32', photon_index='1.94' WHERE bin_id='174' AND source_name='4FGL J0515.8+1527' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Nov 20 04:20:14 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 840286: <4FGL_J0515.8+1527_monthly_bin174> in cluster <slac> Done

Job <4FGL_J0515.8+1527_monthly_bin174> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Nov 20 01:00:32 2022
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 01:01:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 01:01:28 2022
Terminated at Sun Nov 20 04:20:16 2022
Results reported at Sun Nov 20 04:20:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0515.8+1527_monthly_bin174 78.953 15.4614 688003201 690595201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0515.8+1527 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   11771.00 sec.
    Max Memory :                                 650 MB
    Average Memory :                             576.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   11928 sec.
    Turnaround time :                            11984 sec.

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

