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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1745
RA = 226.103, Dec = 10.4978
tmin = 691632001, tmax = 691891201
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='649137', job_status='RUN', time_executed='2022-12-05 00:52:53.070910', time_epoch_executed='1670230373.07' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/649137

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/649137/ft1_4FGL_J1504.4+1029_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/649137/ft2_4FGL_J1504.4+1029_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/649137/ft1_4FGL_J1504.4+1029_daily_bin1745.fits outfile=/scratch/kocevski/649137/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1745.fits ra=226.103 dec=10.4978 rad=12.0 tmin=691632001.0 tmax=691891201.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 2.36
user 2.15
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/649137/ft2_4FGL_J1504.4+1029_daily_bin1745.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/649137/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/649137/ft1_filtered_4FGL_J1504.4+1029_daily_bin1745.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: 903

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/649137/ft1_filtered_4FGL_J1504.4+1029_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/649137/ft2_4FGL_J1504.4+1029_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/649137/ltcube_691632001_691891201_4FGL_J1504.4+1029_daily_bin1745.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/649137/ft2_4FGL_J1504.4+1029_daily_bin1745.fits
.....................!
real 12.47
user 12.11
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/649137/ft1_filtered_4FGL_J1504.4+1029_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/649137/ft2_4FGL_J1504.4+1029_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/649137/ltcube_691632001_691891201_4FGL_J1504.4+1029_daily_bin1745.fits outfile=/scratch/kocevski/649137/expmap_691632001_691891201_4FGL_J1504.4+1029_daily_bin1745.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/649137/ltcube_691632001_691891201_4FGL_J1504.4+1029_daily_bin1745.fits
.....................!
real 189.68
user 184.48
sys 4.89

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/649137/ft1_filtered_4FGL_J1504.4+1029_daily_bin1745.fits scfile=/scratch/kocevski/649137/ft2_4FGL_J1504.4+1029_daily_bin1745.fits outfile=/scratch/kocevski/649137/cmap_691632001_691891201_4FGL_J1504.4+1029_daily_bin1745.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/649137/ft1_filtered_4FGL_J1504.4+1029_daily_bin1745.fits scfile=/scratch/kocevski/649137/ft2_4FGL_J1504.4+1029_daily_bin1745.fits outfile=/scratch/kocevski/649137/cmap_HighResolution_691632001_691891201_4FGL_J1504.4+1029_daily_bin1745.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/649137/ft1_filtered_4FGL_J1504.4+1029_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/649137/ft2_4FGL_J1504.4+1029_daily_bin1745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/649137/Model_4FGL_J1504.4+1029_daily_bin1745.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/649137/ft1_filtered_4FGL_J1504.4+1029_daily_bin1745.fits.....................!
real 70.18
user 68.83
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.8015       1.0000          .0000       .10000E+07
     2 'Prefactor '    .86940E-05   1.0000          .0000       .10000E+07
     3 'norm      '    .31752E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    .46286E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .76709E-01   1.0000          .0000       .10000E+07
     6 'norm      '    2.1565       1.0000          .0000       .10000E+07
     7 'Prefactor '    14.859       1.0000          .0000       .10000E+07
     8 'Prefactor '    6.9769       1.0000          .0000       .10000E+07
     9 'Prefactor '    .56017E-04   1.0000          .0000       .10000E+07
    10 'norm      '    .80150       1.0000          .0000       .10000E+07
    11 'norm      '    4.7324       1.0000          .0000       .10000E+07
    12 'norm      '    3.4955       1.0000          .0000       .10000E+07
    13 'norm      '    .14937E-02   1.0000          .0000       .10000E+07
    14 'norm      '    2.9356       1.0000          .0000       .10000E+07
    15 'Prefactor '    .19251E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .62395E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .11919E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    8.1076       1.0000          .0000       .10000E+07
    19 'norm      '    1.6586       1.0000          .0000       .10000E+07
    20 'Prefactor '    .84222E-03   1.0000          .0000       .10000E+07
    21 'Normalizat'    .68719       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3372       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=   9977.599     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1735 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.8092        3.4206        .75311E-06    .43591E-02
   2  Prefactor     .11102E-09    5.8605        .49625E-06** at limit **
   3  norm           .0000        1.0103        .45218E-07** at limit **
   4  Prefactor     .28899E-04    16.220        .38657E-06** at limit **
   5  Prefactor     .17963E-04    239.54       -.77470E-05** at limit **
   6  norm          2.1437        25.045        .67461E-05    .21959E-02
   7  Prefactor     14.671        3.4819       -.47066E-06   -.10251E-01
   8  Prefactor     7.0451        16.119        .41252E-05    .24599E-01
   9  Prefactor      .0000        13.834        .93988E-06** at limit **
  10  norm          .80135        .19115       -.18611E-07    .44588E-02
  11  norm          4.7311        2.6464       -.53262E-07   -.32509E-02
  12  norm          3.4950        3.4268        .80815E-07   -.53456E-03
  13  norm          .21560E-05    22.403       -.14199E-05** at limit **
  14  norm          2.9347        3.3090       -.27515E-06   -.36420E-02
  15  Prefactor     .11802E-04    33.299       -.53608E-05** at limit **
  16  Prefactor      .0000        2.8092       -.14024E-06** at limit **
  17  Prefactor      .0000        25.009       -.37048E-05** at limit **
  18  Prefactor     8.1198        1.1380       -.19979E-06   -.13122E-02
  19  norm          1.6584        1.8886       -.44168E-07   -.22542E-02
  20  Prefactor     .60429E-06    19.974       -.11516E-05** at limit **
  21  Normalizat    .68753        .21909       -.45343E-05    .56922E-04
  22  Prefactor     1.3372        .13524        .27850E-05    .25481E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.80924
  Prefactor  = 1.11022e-10
  norm       = 0
  Prefactor  = 2.88987e-05
  Prefactor  = 1.79626e-05
  norm       = 2.14372
  Prefactor  = 14.6714
  Prefactor  = 7.04515
  Prefactor  = 0
  norm       = 0.80135
  norm       = 4.73114
  norm       = 3.49503
  norm       = 2.156e-06
  norm       = 2.93466
  Prefactor  = 1.18021e-05
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 8.11978
  norm       = 1.65839
  Prefactor  = 6.04294e-07
  Normalizat = 0.687531
  Prefactor  = 1.3372
 **********
 **   18 **HESSE 
 **********

 FCN=   9977.599     FROM HESSE     STATUS=OK           390 CALLS     2125 TOTAL
                     EDM=   .86E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.8092        16.585        .33762E-03   -1.5649    
   2  Prefactor     .11102E-09    5.8396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        1.0160        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .28899E-04    54.806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .17963E-04    37.413        .14603E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.1437        44.760        .70125E-03   -1.5679    
   7  Prefactor     14.671        21.918        .25957E-03   -1.5631    
   8  Prefactor     7.0451        16.755        .37957E-03   -1.5655    
   9  Prefactor      .0000        13.910        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .80135        .19277        .46150E-03   -1.5690    
  11  norm          4.7311        2.6606        .46230E-03   -1.5664    
  12  norm          3.4950        3.4189        .54055E-03   -1.5671    
  13  norm          .21560E-05    45.410        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.9347        3.3250        .59257E-03   -1.5674    
  15  Prefactor     .11802E-04    68.028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        2.8115        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        65.222        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.1198        18.825        .35187E-03   -1.5651    
  19  norm          1.6584        1.9044        .81897E-03   -1.5682    
  20  Prefactor     .60429E-06    45.340        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .68753        .20303        .90653E-01   -1.0439    
  22  Prefactor     1.3372        .12173        .31990E-01   -.82208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.64013e-07
Minuit parameter uncertainties:
  1  16.5846
  2  5.59137e-05
  3  1.51724e-06
  4  0.0795956
  5  0.0518474
  6  19.5913
  7  21.9179
  8  16.7552
  9  3.56737e-05
  10  0.192769
  11  2.66056
  12  3.41893
  13  0.0197893
  14  3.32498
  15  0.0566704
  16  8.71902e-06
  17  3.05332e-05
  18  18.8256
  19  1.90435
  20  0.0104689
  21  0.203253
  22  0.121759
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  8.013e-01  1.928e-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:  1.337e+00  1.218e-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:  6.875e-01  2.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 45.36
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.95e-07 +/- 4.69e-08
Energy Flux (Fixed Index): 7.90e-05 +/- 1.90e-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) = 9977.59311947
delta logL = 0.00550467129688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9977.59277691
delta logL = 0.00584722507301

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .80050       1.0000          .0000       .10000E+07
     2 'alpha     '    2.0963       1.0000          .0000       5.0000    
     3 'Normalizat'    .69249       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3354       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=   9977.593     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      195 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80050        .24098        .46337E-03    .44312E-01
   2  alpha         2.0963        .30701        .22496       -.16901E-04
   3  Normalizat    .69257        .19898        .90356E-01    .43302E-04
   4  Prefactor     1.3353        .12164        .32020E-01   -.73539E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.800498
  alpha      = 2.09626
  Normalizat = 0.692574
  Prefactor  = 1.33532
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .80050        .19201        .20517E-05   -1.5690    
   2  alpha         2.0963        .25896        .93778E-02   -.16221    
   3  Normalizat    .69257        .22198        .40028E-03   -1.0419    
   4  Prefactor     1.3353        .13559        .18403E-03   -.82263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.18499e-11
Minuit parameter uncertainties:
  1  0.192006
  2  0.259436
  3  0.222266
  4  0.13563
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/649137': 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) = 9977.59277682
delta logL = 0.0058473172121

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  8.005e-01  1.920e-01  0.000e+00  1.000e+06 ( 1.000e-10)
201        alpha:  2.096e+00  2.594e-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:  1.335e+00  1.356e-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:  6.926e-01  2.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 45.34
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.10 +/- 0.26
Photon Flux (Free Index): 1.91e-07 +/- 5.88e-08
Energy Flux (Free Index): 8.02e-05 +/- 2.27e-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/649137/cmap_HighResolution_691632001_691891201_4FGL_J1504.4+1029_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.95e-07', energy_flux2='8.02e-05', photon_flux_error='4.69e-08', dlogl='5.85e-03', energy_flux='7.90e-05', photon_flux2='1.91e-07', job_status='DONE', time_completed='2022-12-05 01:02:37.031511', photon_index_error2='0.26', photon_index2='2.10', ts='45.36', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', energy_flux_error2='2.27e-05', EG='0.69', time_epoch_completed='1670230957.03', return_code='0', job_id='649137', GAL2='1.34', EG2='0.69', return_code2='0', energy_flux_error='1.90e-05', photon_flux_error2='5.88e-08', ts2='45.34', photon_index='2.12' WHERE bin_id='1745' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 01:02:37 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 649137: <4FGL_J1504.4+1029_daily_bin1745> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1745> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Dec  5 00:50:27 2022
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:50:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:50:29 2022
Terminated at Mon Dec  5 01:02:37 2022
Results reported at Mon Dec  5 01:02:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1745 226.103 10.4978 691632001 691891201 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 :                                   586.17 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             282.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            730 sec.

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

