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 133 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7416
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1762
RA = 226.103, Dec = 10.4978
tmin = 696038401, tmax = 696297601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='112010', job_status='RUN', time_executed='2023-01-25 01:09:50.726081', time_epoch_executed='1674637790.73' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/112010

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/112010/ft1_4FGL_J1504.4+1029_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/112010/ft2_4FGL_J1504.4+1029_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/112010/ft1_4FGL_J1504.4+1029_daily_bin1762.fits outfile=/scratch/kocevski/112010/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1762.fits ra=226.103 dec=10.4978 rad=12.0 tmin=696038401.0 tmax=696297601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.15
user 2.83
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/112010/ft2_4FGL_J1504.4+1029_daily_bin1762.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/112010/ft2_4FGL_J1504.4+1029_daily_bin1762.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/112010/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1762.fits evtable="EVENTS" outfile="/scratch/kocevski/112010/ft1_filtered_4FGL_J1504.4+1029_daily_bin1762.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.44
user 0.28
sys 0.15

Number of photons that the gtmktime cut: 692

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/112010/ft1_filtered_4FGL_J1504.4+1029_daily_bin1762.fits" evtable="EVENTS" scfile=/scratch/kocevski/112010/ft2_4FGL_J1504.4+1029_daily_bin1762.fits sctable="SC_DATA" outfile=/scratch/kocevski/112010/ltcube_696038401_696297601_4FGL_J1504.4+1029_daily_bin1762.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/112010/ft2_4FGL_J1504.4+1029_daily_bin1762.fits
.....................!
real 10.87
user 10.58
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/112010/ft1_filtered_4FGL_J1504.4+1029_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/112010/ft2_4FGL_J1504.4+1029_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/112010/ltcube_696038401_696297601_4FGL_J1504.4+1029_daily_bin1762.fits outfile=/scratch/kocevski/112010/expmap_696038401_696297601_4FGL_J1504.4+1029_daily_bin1762.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/112010/ltcube_696038401_696297601_4FGL_J1504.4+1029_daily_bin1762.fits
.....................!
real 156.46
user 151.52
sys 4.63

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

Setting source of interest to:
4FGL J1504.4+1029 @ 226.103 10.4978

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/112010/ft1_filtered_4FGL_J1504.4+1029_daily_bin1762.fits scfile=/scratch/kocevski/112010/ft2_4FGL_J1504.4+1029_daily_bin1762.fits outfile=/scratch/kocevski/112010/cmap_696038401_696297601_4FGL_J1504.4+1029_daily_bin1762.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=226.103 yref=10.4978 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.49
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/112010/ft1_filtered_4FGL_J1504.4+1029_daily_bin1762.fits scfile=/scratch/kocevski/112010/ft2_4FGL_J1504.4+1029_daily_bin1762.fits outfile=/scratch/kocevski/112010/cmap_HighResolution_696038401_696297601_4FGL_J1504.4+1029_daily_bin1762.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=226.103 yref=10.4978 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.49
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/112010/ft1_filtered_4FGL_J1504.4+1029_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/112010/ft2_4FGL_J1504.4+1029_daily_bin1762.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/112010/Model_4FGL_J1504.4+1029_daily_bin1762.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/112010/ft1_filtered_4FGL_J1504.4+1029_daily_bin1762.fits.....................!
real 48.56
user 47.36
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/112010/ft1_filtered_4FGL_J1504.4+1029_daily_bin1762.fits', '/scratch/kocevski/112010/ft2_4FGL_J1504.4+1029_daily_bin1762.fits', expMap='/scratch/kocevski/112010/expmap_696038401_696297601_4FGL_J1504.4+1029_daily_bin1762.fits', expCube='/scratch/kocevski/112010/ltcube_696038401_696297601_4FGL_J1504.4+1029_daily_bin1762.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/112010/Model_4FGL_J1504.4+1029_daily_bin1762.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1504.4+1029'

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.267e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-10)
201        alpha:  2.124e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
202         beta:  9.862e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.027e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/112010/ft1_filtered_4FGL_J1504.4+1029_daily_bin1762.fits
Spacecraft file(s): /scratch/kocevski/112010/ft2_4FGL_J1504.4+1029_daily_bin1762.fits
Exposure map: /scratch/kocevski/112010/expmap_696038401_696297601_4FGL_J1504.4+1029_daily_bin1762.fits
Exposure cube: /scratch/kocevski/112010/ltcube_696038401_696297601_4FGL_J1504.4+1029_daily_bin1762.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/112010/Model_4FGL_J1504.4+1029_daily_bin1762.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .67996E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .13661E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .76100E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .51260E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .19729E-01   1.0000          .0000       .10000E+07
     6 'norm      '    .98432E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    16.842       1.0000          .0000       .10000E+07
     8 'Prefactor '    29.721       1.0000          .0000       .10000E+07
     9 'Prefactor '    .13738E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .16290       1.0000          .0000       .10000E+07
    11 'norm      '    2.3362       1.0000          .0000       .10000E+07
    12 'norm      '    .50845E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .72240E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .97683E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    50.999       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.1617       1.0000          .0000       .10000E+07
    17 'Prefactor '    14.619       1.0000          .0000       .10000E+07
    18 'Prefactor '    .26804E-02   1.0000          .0000       .10000E+07
    19 'norm      '    3.6989       1.0000          .0000       .10000E+07
    20 'Prefactor '    7.8361       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.2755       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88985       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7660.834     FROM MIGRAD    STATUS=CONVERGED    150 CALLS     1729 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    6.7654       -.27940E-06** at limit **
   2  Prefactor      .0000        3.7779        .12273E-07** at limit **
   3  norm           .0000        1.4577        .29685E-07** at limit **
   4  Prefactor     .45265E-05    38.364       -.18238E-05** at limit **
   5  Prefactor     .45519E-08    15.186       -.77564E-06** at limit **
   6  norm          .83569E-05    29.667        .51699E-05** at limit **
   7  Prefactor     17.399        26.966        .12790E-04    .20133E-01
   8  Prefactor     29.944        5.0813        .19044E-05    .37096E-01
   9  Prefactor     .33640E-07    26.563        .83388E-06** at limit **
  10  norm          .16297        .13197        .38473E-07** at limit **
  11  norm          2.3385        1.7471        .13794E-06    .26119E-02
  12  norm          .16653E-09    2.4248        .25694E-06** at limit **
  13  norm          .49960E-09    13.294       -.66703E-06** at limit **
  14  norm          .29421E-08    14.992        .17184E-05** at limit **
  15  Prefactor     52.034        53.279        .68956E-05   -.14583E-01
  16  Prefactor     3.1769        4.1688        .15368E-06   -.87326E-02
  17  Prefactor     15.078        14.564        .21972E-06    .33266E-01
  18  Prefactor     .33307E-09    8.8892       -.13944E-06** at limit **
  19  norm          3.6983        2.4541        .13262E-06    .51330E-02
  20  Prefactor     7.5043        22.255       -.90584E-05    .12849E-01
  21  Normalizat    1.2734        .25420       -.46160E-04   -.46216E-03
  22  Prefactor     .89018        .14290        .92928E-05   -.44987E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  Prefactor  = 4.52649e-06
  Prefactor  = 4.55191e-09
  norm       = 8.35687e-06
  Prefactor  = 17.3987
  Prefactor  = 29.9438
  Prefactor  = 3.36398e-08
  norm       = 0.162966
  norm       = 2.33847
  norm       = 1.66533e-10
  norm       = 4.996e-10
  norm       = 2.94209e-09
  Prefactor  = 52.0345
  Prefactor  = 3.17689
  Prefactor  = 15.0783
  Prefactor  = 3.33067e-10
  norm       = 3.69834
  Prefactor  = 7.5043
  Normalizat = 1.27345
  Prefactor  = 0.890176
 **********
 **   18 **HESSE 
 **********

 FCN=   7660.834     FROM HESSE     STATUS=OK           386 CALLS     2115 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    6.7778        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        3.7750        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        1.4531        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .45265E-05    58.599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .45519E-08    15.121        .17055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .83569E-05    68.747        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.399        28.423        .24378E-03   -1.5625    
   8  Prefactor     29.944        21.771        .18346E-03   -1.5599    
   9  Prefactor     .33640E-07    26.729        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .16297        .13722        .62258E-03   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.3385        1.7561        .67059E-03   -1.5677    
  12  norm          .16653E-09    2.4257        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .49960E-09    13.306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .29421E-08    14.419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     52.034        60.722        .14004E-03   -1.5564    
  16  Prefactor     3.1769        4.1961        .56975E-03   -1.5672    
  17  Prefactor     15.078        51.942        .26170E-03   -1.5630    
  18  Prefactor     .33307E-09    8.9116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.6983        2.4624        .52486E-03   -1.5670    
  20  Prefactor     7.5043        142.47        .35797E-03   -1.5653    
  21  Normalizat    1.2734        .21095        .66919E-01   -.84363    
  22  Prefactor     .89018        .11806        .44875E-01   -.96485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.69112e-07
Minuit parameter uncertainties:
  1  3.85765e-05
  2  1.32481e-05
  3  6.8951e-06
  4  0.0325731
  5  0.000524559
  6  0.0479386
  7  28.4231
  8  21.7712
  9  0.00189572
  10  0.137223
  11  1.75615
  12  3.95388e-05
  13  0.000165127
  14  0.000411207
  15  60.7226
  16  4.19609
  17  51.944
  18  0.000106391
  19  2.46238
  20  65.3971
  21  0.211093
  22  0.118097
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.630e-01  1.372e-01  0.000e+00  1.000e+06 ( 1.000e-10)
201        alpha:  2.124e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
202         beta:  9.862e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.027e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
469    Prefactor:  8.902e-01  1.181e-01  0.000e+00  1.000e+01 ( 1.000e+00)
470        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
471        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
468   Normalization:  1.273e+00  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.21
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.97e-08 +/- 3.34e-08
Energy Flux (Fixed Index): 1.61e-05 +/- 1.35e-05

TS (Fixed Index): 3.21
Ra Dec: 226.103 10.498
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.62e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/112010/likelihoodResults_696038401_696297601_4FGL_J1504.4+1029_daily_bin1762.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7660.71791192
delta logL = 0.115658680406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7660.71200641
delta logL = 0.121564197219

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17491       1.0000          .0000       .10000E+07
     2 'alpha     '    2.4642       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2546       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89602       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4720E+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=   7660.712     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      240 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17493        .13118        .26588E-04** at limit **
   2  alpha         2.4642        .68200        .19564E-01   -.22336E-04
   3  Normalizat    1.2546        .24771        .29790E-03   -.38303E-03
   4  Prefactor     .89601        .14184        .19952E-03   -.71979E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.174928
  alpha      = 2.46422
  Normalizat = 1.25459
  Prefactor  = 0.896011
 **********
 **   18 **HESSE 
 **********

 FCN=   7660.712     FROM HESSE     STATUS=OK            27 CALLS      267 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17493        .13017        .10635E-05   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4642        .67679        .78254E-03   -.14312E-01
   3  Normalizat    1.2546        .24798        .59579E-04   -.84932    
   4  Prefactor     .89601        .14195        .39903E-04   -.96281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4228e-10
Minuit parameter uncertainties:
  1  0.130166
  2  0.685349
  3  0.248215
  4  0.142007
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/112010': 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) = 7660.71200629
delta logL = 0.121564309619

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.749e-01  1.302e-01  0.000e+00  1.000e+06 ( 1.000e-10)
201        alpha:  2.464e+00  6.853e-01  0.000e+00  5.000e+00 ( 1.000e+00)
202         beta:  9.862e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.027e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
469    Prefactor:  8.960e-01  1.420e-01  0.000e+00  1.000e+01 ( 1.000e+00)
470        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
471        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
468   Normalization:  1.255e+00  2.482e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.46
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.46 +/- 0.69
Photon Flux (Free Index): 5.63e-08 +/- 5.18e-08
Energy Flux (Free Index): 1.60e-05 +/- 1.18e-05

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/112010/cmap_HighResolution_696038401_696297601_4FGL_J1504.4+1029_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.62e-05', comment='SUCCESS', photon_flux='3.97e-08', energy_flux2='1.60e-05', photon_flux_error='3.34e-08', dlogl='1.22e-01', energy_flux='1.61e-05', photon_flux2='5.63e-08', job_status='DONE', time_completed='2023-01-25 01:17:42.756461', photon_index_error2='0.69', photon_index2='2.46', ts='3.21', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.18e-05', EG='1.27', time_epoch_completed='1674638262.76', return_code='0', job_id='112010', GAL2='0.90', EG2='1.25', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='5.18e-08', ts2='3.46', photon_index='2.12' WHERE bin_id='1762' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 01:17:42 PST 2023


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 112010: <4FGL_J1504.4+1029_daily_bin1762> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1762> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Jan 25 01:05:24 2023
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 01:07:28 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 01:07:28 2023
Terminated at Wed Jan 25 01:17:43 2023
Results reported at Wed Jan 25 01:17:43 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1762 226.103 10.4978 696038401 696297601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1504.4+1029 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   471.11 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             283.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   614 sec.
    Turnaround time :                            739 sec.

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

