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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1748
RA = 226.103, Dec = 10.4978
tmin = 692409601, tmax = 692668801
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='889377', job_status='RUN', time_executed='2022-12-14 00:51:10.046086', time_epoch_executed='1671007870.05' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/889377

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/889377/ft1_4FGL_J1504.4+1029_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/889377/ft2_4FGL_J1504.4+1029_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/889377/ft1_4FGL_J1504.4+1029_daily_bin1748.fits outfile=/scratch/kocevski/889377/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1748.fits ra=226.103 dec=10.4978 rad=12.0 tmin=692409601.0 tmax=692668801.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.57
user 3.32
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/889377/ft2_4FGL_J1504.4+1029_daily_bin1748.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/889377/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/889377/ft1_filtered_4FGL_J1504.4+1029_daily_bin1748.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 778

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/889377/ft1_filtered_4FGL_J1504.4+1029_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/889377/ft2_4FGL_J1504.4+1029_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/889377/ltcube_692409601_692668801_4FGL_J1504.4+1029_daily_bin1748.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/889377/ft2_4FGL_J1504.4+1029_daily_bin1748.fits
.....................!
real 12.19
user 11.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/889377/ft1_filtered_4FGL_J1504.4+1029_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/889377/ft2_4FGL_J1504.4+1029_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/889377/ltcube_692409601_692668801_4FGL_J1504.4+1029_daily_bin1748.fits outfile=/scratch/kocevski/889377/expmap_692409601_692668801_4FGL_J1504.4+1029_daily_bin1748.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/889377/ltcube_692409601_692668801_4FGL_J1504.4+1029_daily_bin1748.fits
.....................!
real 191.51
user 185.56
sys 5.18

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/889377/ft1_filtered_4FGL_J1504.4+1029_daily_bin1748.fits scfile=/scratch/kocevski/889377/ft2_4FGL_J1504.4+1029_daily_bin1748.fits outfile=/scratch/kocevski/889377/cmap_692409601_692668801_4FGL_J1504.4+1029_daily_bin1748.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/889377/ft1_filtered_4FGL_J1504.4+1029_daily_bin1748.fits scfile=/scratch/kocevski/889377/ft2_4FGL_J1504.4+1029_daily_bin1748.fits outfile=/scratch/kocevski/889377/cmap_HighResolution_692409601_692668801_4FGL_J1504.4+1029_daily_bin1748.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/889377/ft1_filtered_4FGL_J1504.4+1029_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/889377/ft2_4FGL_J1504.4+1029_daily_bin1748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/889377/Model_4FGL_J1504.4+1029_daily_bin1748.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/889377/ft1_filtered_4FGL_J1504.4+1029_daily_bin1748.fits.....................!
real 63.42
user 61.99
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/889377/ft1_filtered_4FGL_J1504.4+1029_daily_bin1748.fits', '/scratch/kocevski/889377/ft2_4FGL_J1504.4+1029_daily_bin1748.fits', expMap='/scratch/kocevski/889377/expmap_692409601_692668801_4FGL_J1504.4+1029_daily_bin1748.fits', expCube='/scratch/kocevski/889377/ltcube_692409601_692668801_4FGL_J1504.4+1029_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/889377/Model_4FGL_J1504.4+1029_daily_bin1748.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/889377/ft1_filtered_4FGL_J1504.4+1029_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/889377/ft2_4FGL_J1504.4+1029_daily_bin1748.fits
Exposure map: /scratch/kocevski/889377/expmap_692409601_692668801_4FGL_J1504.4+1029_daily_bin1748.fits
Exposure cube: /scratch/kocevski/889377/ltcube_692409601_692668801_4FGL_J1504.4+1029_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/889377/Model_4FGL_J1504.4+1029_daily_bin1748.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) = 8413.80958844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .43091E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    8.5114       1.0000          .0000       .10000E+07
     3 'norm      '    .33307E-08   1.0000          .0000       .10000E+07
     4 'Prefactor '    .62102       1.0000          .0000       .10000E+07
     5 'Prefactor '    .56472E-04   1.0000          .0000       .10000E+07
     6 'norm      '    .23187E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    20.304       1.0000          .0000       .10000E+07
     8 'Prefactor '    .11576E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10030E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .57529       1.0000          .0000       .10000E+07
    11 'norm      '    1.7060       1.0000          .0000       .10000E+07
    12 'norm      '    .51939E-04   1.0000          .0000       .10000E+07
    13 'norm      '    12.620       1.0000          .0000       .10000E+07
    14 'norm      '    .17715       1.0000          .0000       .10000E+07
    15 'Prefactor '    2.5387       1.0000          .0000       .10000E+07
    16 'Prefactor '    2.8759       1.0000          .0000       .10000E+07
    17 'Prefactor '    .33071E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    12.971       1.0000          .0000       .10000E+07
    19 'norm      '    1.4374       1.0000          .0000       .10000E+07
    20 'Prefactor '    175.26       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.5980       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77439       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=   8413.792     FROM MIGRAD    STATUS=CONVERGED    165 CALLS     1779 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .35305E-07    8.6295        .29759E-08** at limit **
   2  Prefactor     8.4052        8.5609       -.10084E-07    .49283E-03
   3  norm           .0000        .98318       -.26920E-07** at limit **
   4  Prefactor     .16161E-04    972.54        .15174E-05** at limit **
   5  Prefactor     .48295E-08    10.228       -.70834E-07** at limit **
   6  norm          .43632E-07    8.1195        .64445E-07** at limit **
   7  Prefactor     20.312        5.5188        .84940E-08   -.16010    
   8  Prefactor     .84266E-07    15.358       -.47925E-07** at limit **
   9  Prefactor     .11818E-06    19.042       -.28286E-06** at limit **
  10  norm          .57502        .18450       -.50383E-08   -.22302E-02
  11  norm          1.7071        1.8257        .25442E-08    .20681E-02
  12  norm          .49405E-08    8.4652        .55203E-07** at limit **
  13  norm          13.037        32.616       -.23791E-06    .40704E-02
  14  norm          .15186        10.336       -.52979E-07** at limit **
  15  Prefactor     2.4784        7.5835        .15066E-06   -.93403E-02
  16  Prefactor     2.8636        3.1137       -.15709E-07   -.45515E-03
  17  Prefactor     .55511E-09    38.692        .27702E-06** at limit **
  18  Prefactor     12.998        1.1023       -.29994E-08   -.45739E-02
  19  norm          1.4359        2.2186       -.23460E-07   -.63539E-03
  20  Prefactor     174.97        13.615        .17461E-07    .19951    
  21  Normalizat    1.5987        .24635        .20250E-05    .50814E-03
  22  Prefactor     .77442        .14250        .53006E-06    .58903E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.53051e-08
  Prefactor  = 8.40525
  norm       = 0
  Prefactor  = 1.61615e-05
  Prefactor  = 4.82947e-09
  norm       = 4.36318e-08
  Prefactor  = 20.3117
  Prefactor  = 8.42659e-08
  Prefactor  = 1.18183e-07
  norm       = 0.575025
  norm       = 1.70706
  norm       = 4.94049e-09
  norm       = 13.0371
  norm       = 0.151856
  Prefactor  = 2.4784
  Prefactor  = 2.86364
  Prefactor  = 5.55112e-10
  Prefactor  = 12.9977
  norm       = 1.43592
  Prefactor  = 174.968
  Normalizat = 1.59869
  Prefactor  = 0.774424
 **********
 **   18 **HESSE 
 **********

 FCN=   8413.792     FROM HESSE     STATUS=OK           400 CALLS     2179 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .35305E-07    8.7164        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.4052        8.5680        .34336E-03   -1.5650    
   3  norm           .0000        .98730        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .16161E-04    37.808        .14879E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .48295E-08    10.250        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .43632E-07    8.1907        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.312        22.147        .22200E-03   -1.5618    
   8  Prefactor     .84266E-07    15.574        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11818E-06    19.247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .57502        .18525        .48286E-03   -1.5693    
  11  norm          1.7071        1.8534        .80477E-03   -1.5682    
  12  norm          .49405E-08    8.4182        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          13.037        33.916        .28172E-03   -1.5636    
  14  norm          .15186        1.5721        .62164E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.4784        123.11        .64070E-03   -1.5676    
  16  Prefactor     2.8636        3.1070        .59909E-03   -1.5674    
  17  Prefactor     .55511E-09    38.255        .16293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.998        20.125        .27787E-03   -1.5636    
  19  norm          1.4359        2.2446        .89984E-03   -1.5684    
  20  Prefactor     174.97        102.27        .75544E-04   -1.5443    
  21  Normalizat    1.5987        .20725        .63106E-01   -.75042    
  22  Prefactor     .77442        .11828        .43383E-01   -1.0068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99309e-06
Minuit parameter uncertainties:
  1  0.00110971
  2  8.56798
  3  4.16846e-06
  4  0.0494388
  5  0.000446227
  6  0.00119546
  7  22.1473
  8  0.00229138
  9  0.00301636
  10  0.185252
  11  1.85341
  12  0.000408214
  13  33.9167
  14  0.977207
  15  34.9362
  16  3.10701
  17  0.000291906
  18  20.1254
  19  2.24462
  20  102.274
  21  0.207359
  22  0.118315
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  5.750e-01  1.853e-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:  7.744e-01  1.183e-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.599e+00  2.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.99
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.40e-07 +/- 4.51e-08
Energy Flux (Fixed Index): 5.67e-05 +/- 1.83e-05

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) = 8413.76802781
delta logL = 0.024326700488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8413.76715151
delta logL = 0.0252029988696

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57430       1.0000          .0000       .10000E+07
     2 'alpha     '    2.0569       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6071       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77126       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.

 FCN=   8413.767     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      195 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .57430        .23274        .48702E-03    .26958E-01
   2  alpha         2.0569        .35184        .24185       -.17924E-04
   3  Normalizat    1.6072        .20316        .62977E-01   -.33894E-05
   4  Prefactor     .77121        .11727        .43342E-01    .20423E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.574301
  alpha      = 2.05687
  Normalizat = 1.60723
  Prefactor  = 0.771209
 **********
 **   18 **HESSE 
 **********

 FCN=   8413.767     FROM HESSE     STATUS=OK            33 CALLS      228 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .57430        .18572        .21591E-05   -1.5693    
   2  alpha         2.0569        .29775        .10122E-01   -.17819    
   3  Normalizat    1.6072        .24482        .27853E-03   -.74808    
   4  Prefactor     .77121        .14057        .22146E-03   -1.0080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39817e-11
Minuit parameter uncertainties:
  1  0.185721
  2  0.298485
  3  0.245
  4  0.140631
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/889377': 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) = 8413.76715144
delta logL = 0.0252030725533

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  5.743e-01  1.857e-01  0.000e+00  1.000e+06 ( 1.000e-10)
201        alpha:  2.057e+00  2.985e-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:  7.712e-01  1.406e-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.607e+00  2.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.99
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.06 +/- 0.30
Photon Flux (Free Index): 1.33e-07 +/- 5.20e-08
Energy Flux (Free Index): 5.91e-05 +/- 2.23e-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/889377/cmap_HighResolution_692409601_692668801_4FGL_J1504.4+1029_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.40e-07', energy_flux2='5.91e-05', photon_flux_error='4.51e-08', dlogl='2.52e-02', energy_flux='5.67e-05', photon_flux2='1.33e-07', job_status='DONE', time_completed='2022-12-14 01:00:29.704483', photon_index_error2='0.30', photon_index2='2.06', ts='23.99', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='2.23e-05', EG='1.60', time_epoch_completed='1671008429.7', return_code='0', job_id='889377', GAL2='0.77', EG2='1.61', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='5.20e-08', ts2='23.99', photon_index='2.12' WHERE bin_id='1748' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 01:00:29 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 889377: <4FGL_J1504.4+1029_daily_bin1748> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1748> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Dec 14 00:50:21 2022
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:50:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:50:22 2022
Terminated at Wed Dec 14 01:00:30 2022
Results reported at Wed Dec 14 01:00:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1748 226.103 10.4978 692409601 692668801 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 :                                   561.38 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             321.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            609 sec.

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

