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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1760
RA = 226.103, Dec = 10.4978
tmin = 695520001, tmax = 695779201
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='740308', job_status='RUN', time_executed='2023-01-19 01:08:07.591444', time_epoch_executed='1674119287.59' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740308

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740308/ft1_4FGL_J1504.4+1029_daily_bin1760.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740308/ft2_4FGL_J1504.4+1029_daily_bin1760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740308/ft1_4FGL_J1504.4+1029_daily_bin1760.fits outfile=/scratch/kocevski/740308/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1760.fits ra=226.103 dec=10.4978 rad=12.0 tmin=695520001.0 tmax=695779201.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.45
user 2.19
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/740308/ft2_4FGL_J1504.4+1029_daily_bin1760.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/740308/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1760.fits evtable="EVENTS" outfile="/scratch/kocevski/740308/ft1_filtered_4FGL_J1504.4+1029_daily_bin1760.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.51
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 1078

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740308/ft1_filtered_4FGL_J1504.4+1029_daily_bin1760.fits" evtable="EVENTS" scfile=/scratch/kocevski/740308/ft2_4FGL_J1504.4+1029_daily_bin1760.fits sctable="SC_DATA" outfile=/scratch/kocevski/740308/ltcube_695520001_695779201_4FGL_J1504.4+1029_daily_bin1760.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/740308/ft2_4FGL_J1504.4+1029_daily_bin1760.fits
.....................!
real 16.00
user 15.52
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740308/ft1_filtered_4FGL_J1504.4+1029_daily_bin1760.fits evtable="EVENTS" scfile=/scratch/kocevski/740308/ft2_4FGL_J1504.4+1029_daily_bin1760.fits sctable="SC_DATA" expcube=/scratch/kocevski/740308/ltcube_695520001_695779201_4FGL_J1504.4+1029_daily_bin1760.fits outfile=/scratch/kocevski/740308/expmap_695520001_695779201_4FGL_J1504.4+1029_daily_bin1760.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/740308/ltcube_695520001_695779201_4FGL_J1504.4+1029_daily_bin1760.fits
.....................!
real 192.67
user 185.55
sys 6.03

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/740308/ft1_filtered_4FGL_J1504.4+1029_daily_bin1760.fits scfile=/scratch/kocevski/740308/ft2_4FGL_J1504.4+1029_daily_bin1760.fits outfile=/scratch/kocevski/740308/cmap_695520001_695779201_4FGL_J1504.4+1029_daily_bin1760.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.58
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740308/ft1_filtered_4FGL_J1504.4+1029_daily_bin1760.fits scfile=/scratch/kocevski/740308/ft2_4FGL_J1504.4+1029_daily_bin1760.fits outfile=/scratch/kocevski/740308/cmap_HighResolution_695520001_695779201_4FGL_J1504.4+1029_daily_bin1760.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.55
user 0.40
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10944E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    5.1436       1.0000          .0000       .10000E+07
     3 'norm      '    1.9806       1.0000          .0000       .10000E+07
     4 'Prefactor '    .30433E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .16401E-05   1.0000          .0000       .10000E+07
     6 'norm      '    61.231       1.0000          .0000       .10000E+07
     7 'Prefactor '    6.6834       1.0000          .0000       .10000E+07
     8 'Prefactor '    13.584       1.0000          .0000       .10000E+07
     9 'Prefactor '    .35142E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .40749       1.0000          .0000       .10000E+07
    11 'norm      '    3.0736       1.0000          .0000       .10000E+07
    12 'norm      '    .19925E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .55641E-03   1.0000          .0000       .10000E+07
    14 'norm      '    1.7165       1.0000          .0000       .10000E+07
    15 'Prefactor '    .21303E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .58081E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    .24456E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    13.630       1.0000          .0000       .10000E+07
    19 'norm      '    1.1597       1.0000          .0000       .10000E+07
    20 'Prefactor '    .76395       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.1957       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94730       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=   11685.70     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     1396 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        5.4489       -.14087E-06** at limit **
   2  Prefactor     5.2110        5.0416        .34132E-06    .63067E-04
   3  norm          1.9786        2.2754       -.20173E-06    .12251E-02
   4  Prefactor     .10686E-06    10.022       -.69613E-06** at limit **
   5  Prefactor      .0000        9.5055        .23601E-06** at limit **
   6  norm          60.909        1.4140        .12933E-07    .13975E-01
   7  Prefactor     6.6890        1.0061       -.19411E-08   -.76876E-02
   8  Prefactor     13.504        1.0496       -.81243E-08    .45281E-01
   9  Prefactor     .55511E-10    5.1649        .75353E-06** at limit **
  10  norm          .40751        .14730        .75646E-07    .49078E-02
  11  norm          3.0748        1.5939       -.12627E-06   -.16406E-02
  12  norm           .0000        4.9610        .47599E-06** at limit **
  13  norm          .11102E-09    13.061        .40642E-06** at limit **
  14  norm          1.7246        2.9495        .23623E-06   -.95518E-04
  15  Prefactor     .10197E-06    10.182       -.70773E-06** at limit **
  16  Prefactor      .0000        2.3929        .20836E-06** at limit **
  17  Prefactor     .55511E-10    39.365       -.17730E-05** at limit **
  18  Prefactor     13.584        1.0090       -.34905E-09   -.10660E-01
  19  norm          1.1616        1.9775       -.54931E-06    .40619E-03
  20  Prefactor     .63838E-08    218.16       -.43694E-05** at limit **
  21  Normalizat    1.1956        .20021       -.15645E-04    .70299E-04
  22  Prefactor     .94751        .11969        .96759E-05    .15619E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 5.21095
  norm       = 1.97857
  Prefactor  = 1.06859e-07
  Prefactor  = 0
  norm       = 60.9093
  Prefactor  = 6.68896
  Prefactor  = 13.5041
  Prefactor  = 5.55112e-11
  norm       = 0.407505
  norm       = 3.07477
  norm       = 0
  norm       = 1.11022e-10
  norm       = 1.72459
  Prefactor  = 1.01974e-07
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 13.5845
  norm       = 1.16159
  Prefactor  = 6.38378e-09
  Normalizat = 1.19562
  Prefactor  = 0.947507
 **********
 **   18 **HESSE 
 **********

 FCN=   11685.70     FROM HESSE     STATUS=OK           386 CALLS     1782 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        5.4528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.2110        5.0477        .44305E-03   -1.5662    
   3  norm          1.9786        2.2906        .73619E-03   -1.5680    
   4  Prefactor     .10686E-06    20.220        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        9.5140        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          60.909        17.823        .12780E-03   -1.5552    
   7  Prefactor     6.6890        10.848        .38791E-03   -1.5656    
   8  Prefactor     13.504        17.536        .27151E-03   -1.5634    
   9  Prefactor     .55511E-10    5.1719        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .40751        .15016        .53621E-03   -1.5695    
  11  norm          3.0748        1.6031        .57831E-03   -1.5673    
  12  norm           .0000        4.9339        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .11102E-09    13.110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.7246        2.9650        .80172E-03   -1.5682    
  15  Prefactor     .10197E-06    20.229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        2.3839        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55511E-10    39.661        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.584        16.238        .27105E-03   -1.5634    
  19  norm          1.1616        2.0213        .10700E-02   -1.5686    
  20  Prefactor     .63838E-08    218.83        .55662E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1956        .16737        .68421E-01   -.86738    
  22  Prefactor     .94751        .98837E-01    .45605E-01   -.94500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.26865e-08
Minuit parameter uncertainties:
  1  2.26792e-06
  2  5.04768
  3  2.29061
  4  0.00293997
  5  4.94043e-06
  6  17.8227
  7  10.8483
  8  17.5364
  9  2.66067e-05
  10  0.150156
  11  1.60309
  12  1.26916e-05
  13  6.84355e-05
  14  2.96504
  15  0.00287277
  16  4.14138e-06
  17  8.38327e-05
  18  16.2377
  19  2.02129
  20  0.00236054
  21  0.167442
  22  0.098856
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  4.075e-01  1.502e-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:  9.475e-01  9.886e-02  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.196e+00  1.674e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.67
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 9.92e-08 +/- 3.65e-08
Energy Flux (Fixed Index): 4.02e-05 +/- 1.48e-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) = 11682.7561036
delta logL = 2.94605465788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11682.7266677
delta logL = 2.97549053169

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .28879       1.0000          .0000       .10000E+07
     2 'alpha     '    3.1642       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0581       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0036       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=   11682.73     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      217 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28898        .96169        .35250E-03    .15414E-01
   2  alpha         3.1640        3.8550        .25318        .91286E-04
   3  Normalizat    1.0581        .68638E-01    .71966E-01    .26278E-04
   4  Prefactor     1.0036        .39931E-01    .44510E-01    .57954E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.288977
  alpha      = 3.16397
  Normalizat = 1.0581
  Prefactor  = 1.0036
 **********
 **   18 **HESSE 
 **********

 FCN=   11682.73     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .28898        .17277        .15715E-05   -1.5697    
   2  alpha         3.1640        .56054        .10769E-01    .26882    
   3  Normalizat    1.0581        .20735        .31845E-03   -.91109    
   4  Prefactor     1.0036        .12150        .19444E-03   -.92610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.69204e-09
Minuit parameter uncertainties:
  1  0.17277
  2  0.565718
  3  0.207508
  4  0.121537
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740308': 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) = 11682.7266665
delta logL = 2.97549172549

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  2.890e-01  1.728e-01  0.000e+00  1.000e+06 ( 1.000e-10)
201        alpha:  3.164e+00  5.657e-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.004e+00  1.215e-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.058e+00  2.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.30
Ra Dec: 226.103 10.498
Photon Index (Free Index): 3.16 +/- 0.57
Photon Flux (Free Index): 1.91e-07 +/- 5.87e-08
Energy Flux (Free Index): 3.64e-05 +/- 1.11e-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/740308/cmap_HighResolution_695520001_695779201_4FGL_J1504.4+1029_daily_bin1760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.92e-08', energy_flux2='3.64e-05', photon_flux_error='3.65e-08', dlogl='2.98e+00', energy_flux='4.02e-05', photon_flux2='1.91e-07', job_status='DONE', time_completed='2023-01-19 01:18:19.194634', photon_index_error2='0.57', photon_index2='3.16', ts='13.67', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.11e-05', EG='1.20', time_epoch_completed='1674119899.19', return_code='0', job_id='740308', GAL2='1.00', EG2='1.06', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='5.87e-08', ts2='20.30', photon_index='2.12' WHERE bin_id='1760' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 19 01:18:19 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0028>
Subject: Job 740308: <4FGL_J1504.4+1029_daily_bin1760> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1760> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Jan 19 01:05:28 2023
Job was executed on host(s) <bullet0028>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 19 01:06:07 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 19 01:06:07 2023
Terminated at Thu Jan 19 01:18:20 2023
Results reported at Thu Jan 19 01:18:20 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1760 226.103 10.4978 695520001 695779201 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 :                                   613.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            772 sec.

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

