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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1780
RA = 226.103, Dec = 10.4978
tmin = 700704001, tmax = 700963201
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='66610', job_status='RUN', time_executed='2023-03-20 01:05:46.960472', time_epoch_executed='1679299546.96' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66610

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66610/ft1_4FGL_J1504.4+1029_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66610/ft2_4FGL_J1504.4+1029_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66610/ft1_4FGL_J1504.4+1029_daily_bin1780.fits outfile=/scratch/kocevski/66610/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1780.fits ra=226.103 dec=10.4978 rad=12.0 tmin=700704001.0 tmax=700963201.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 4.13
user 3.87
sys 0.22

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

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

Number of photons that the gtmktime cut: 663

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66610/ft1_filtered_4FGL_J1504.4+1029_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/66610/ft2_4FGL_J1504.4+1029_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/66610/ltcube_700704001_700963201_4FGL_J1504.4+1029_daily_bin1780.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/66610/ft2_4FGL_J1504.4+1029_daily_bin1780.fits
.....................!
real 12.07
user 11.73
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66610/ft1_filtered_4FGL_J1504.4+1029_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/66610/ft2_4FGL_J1504.4+1029_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/66610/ltcube_700704001_700963201_4FGL_J1504.4+1029_daily_bin1780.fits outfile=/scratch/kocevski/66610/expmap_700704001_700963201_4FGL_J1504.4+1029_daily_bin1780.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/66610/ltcube_700704001_700963201_4FGL_J1504.4+1029_daily_bin1780.fits
.....................!
real 190.89
user 186.55
sys 3.99

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/66610/ft1_filtered_4FGL_J1504.4+1029_daily_bin1780.fits scfile=/scratch/kocevski/66610/ft2_4FGL_J1504.4+1029_daily_bin1780.fits outfile=/scratch/kocevski/66610/cmap_700704001_700963201_4FGL_J1504.4+1029_daily_bin1780.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66610/ft1_filtered_4FGL_J1504.4+1029_daily_bin1780.fits scfile=/scratch/kocevski/66610/ft2_4FGL_J1504.4+1029_daily_bin1780.fits outfile=/scratch/kocevski/66610/cmap_HighResolution_700704001_700963201_4FGL_J1504.4+1029_daily_bin1780.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21335E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.2376       1.0000          .0000       .10000E+07
     3 'norm      '    7.2928       1.0000          .0000       .10000E+07
     4 'Prefactor '    .38193E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .51948       1.0000          .0000       .10000E+07
     6 'norm      '    .61732E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.9227       1.0000          .0000       .10000E+07
     8 'Prefactor '    62.766       1.0000          .0000       .10000E+07
     9 'Prefactor '    .66085E-01   1.0000          .0000       .10000E+07
    10 'norm      '    .43408       1.0000          .0000       .10000E+07
    11 'norm      '    .61623E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .11935E-07   1.0000          .0000       .10000E+07
    13 'norm      '    .17881E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .66027       1.0000          .0000       .10000E+07
    15 'Prefactor '    20.207       1.0000          .0000       .10000E+07
    16 'Prefactor '    2.7825       1.0000          .0000       .10000E+07
    17 'Prefactor '    .75124E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    3.4601       1.0000          .0000       .10000E+07
    19 'norm      '    1.5592       1.0000          .0000       .10000E+07
    20 'Prefactor '    .39430E-04   1.0000          .0000       .10000E+07
    21 'Normalizat'    .96832       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1056       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=   7417.871     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     1405 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .88818E-09    12.023       -.43057E-06** at limit **
   2  Prefactor     1.1741        16.911       -.25790E-05    .22001E-03
   3  norm          7.2820        4.7986       -.71624E-06    .44382E-03
   4  Prefactor     .74940E-08    23.114        .13490E-05** at limit **
   5  Prefactor     .32768E-05    89.183        .14255E-04** at limit **
   6  norm          .42810E-06    27.272       -.21555E-05** at limit **
   7  Prefactor     4.9146        8.7419       -.41279E-05   -.15754E-01
   8  Prefactor     61.039        28.042       -.26934E-05    .14663E-01
   9  Prefactor     .55511E-10    42.315       -.23272E-05** at limit **
  10  norm          .43454        .17962        .30909E-08    .22087E-02
  11  norm          .73669E-06    3.7374        .16671E-05** at limit **
  12  norm          .33307E-09    2.2697        .65586E-06** at limit **
  13  norm           .0000        21.391        .29822E-07** at limit **
  14  norm          .65121        2.4727        .91439E-06    .68196E-03
  15  Prefactor     17.982        42.697       -.93216E-05    .79242E-02
  16  Prefactor     2.7714        4.3583        .29613E-06   -.16932E-04
  17  Prefactor     .14377E-07    32.577        .30513E-05** at limit **
  18  Prefactor     3.2942        1.6287        .87055E-07    .50323E-02
  19  norm          1.5573        1.5800       -.12261E-06   -.16790E-03
  20  Prefactor     .11102E-09    61.116       -.12580E-06** at limit **
  21  Normalizat    .97262        .27640        .34076E-04    .15056E-03
  22  Prefactor     1.1054        .15805        .59163E-05    .25711E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.88178e-10
  Prefactor  = 1.17408
  norm       = 7.28195
  Prefactor  = 7.49401e-09
  Prefactor  = 3.27682e-06
  norm       = 4.28102e-07
  Prefactor  = 4.91462
  Prefactor  = 61.0392
  Prefactor  = 5.55112e-11
  norm       = 0.434536
  norm       = 7.36688e-07
  norm       = 3.33067e-10
  norm       = 0
  norm       = 0.651215
  Prefactor  = 17.9821
  Prefactor  = 2.77144
  Prefactor  = 1.43774e-08
  Prefactor  = 3.29422
  norm       = 1.55733
  Prefactor  = 1.11022e-10
  Normalizat = 0.972623
  Prefactor  = 1.10535
 **********
 **   18 **HESSE 
 **********

 FCN=   7417.871     FROM HESSE     STATUS=OK           402 CALLS     1807 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .88818E-09    12.071        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1741        16.595        .10084E-02   -1.5686    
   3  norm          7.2820        4.8573        .37118E-03   -1.5654    
   4  Prefactor     .74940E-08    23.534        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .32768E-05    23.099        .12777E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .42810E-06    111.39        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.9146        33.669        .45308E-03   -1.5664    
   8  Prefactor     61.039        29.400        .12623E-03   -1.5552    
   9  Prefactor     .55511E-10    41.005        .14949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .43454        .18057        .50608E-03   -1.5695    
  11  norm          .73669E-06    1.6100        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .33307E-09    2.3095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        21.359        .17180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .65121        2.5044        .63994E-03   -1.5692    
  15  Prefactor     17.982        48.052        .22253E-03   -1.5623    
  16  Prefactor     2.7714        4.3785        .60976E-03   -1.5675    
  17  Prefactor     .14377E-07    33.020        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2942        45.982        .54342E-03   -1.5672    
  19  norm          1.5573        1.5666        .85195E-03   -1.5683    
  20  Prefactor     .11102E-09    89.721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .97262        .23396        .77786E-01   -.93953    
  22  Prefactor     1.1054        .13239        .37376E-01   -.89296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92368e-08
Minuit parameter uncertainties:
  1  0.000205693
  2  8.82816
  3  4.85734
  4  0.000839207
  5  0.0174003
  6  0.013811
  7  25.7274
  8  29.4006
  9  0.00010512
  10  0.180566
  11  0.00217818
  12  5.59352e-05
  13  4.38847e-05
  14  2.50438
  15  48.0529
  16  4.37847
  17  0.00137673
  18  24.6153
  19  1.56657
  20  0.000196648
  21  0.234206
  22  0.132425
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  4.345e-01  1.806e-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.105e+00  1.324e-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:  9.726e-01  2.342e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.59
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.06e-07 +/- 4.39e-08
Energy Flux (Fixed Index): 4.28e-05 +/- 1.78e-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) = 7417.86718633
delta logL = 0.00427412250883

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7417.86703351
delta logL = 0.00442694392859

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .43616       1.0000          .0000       .10000E+07
     2 'alpha     '    2.1600       1.0000          .0000       5.0000    
     3 'Normalizat'    .96886       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1067       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=   7417.867     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      195 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .43612        .29924        .50381E-03    .38737E-02
   2  alpha         2.1603        .58736        .28825       -.47772E-05
   3  Normalizat    .96883        .22563        .77918E-01    .29744E-04
   4  Prefactor     1.1067        .13195        .37338E-01    .11846E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.436115
  alpha      = 2.16028
  Normalizat = 0.968832
  Prefactor  = 1.10669
 **********
 **   18 **HESSE 
 **********

 FCN=   7417.867     FROM HESSE     STATUS=OK            31 CALLS      226 TOTAL
                     EDM=   .18E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .43612        .17799        .22406E-05   -1.5695    
   2  alpha         2.1603        .38004        .11829E-01   -.13631    
   3  Normalizat    .96883        .26988        .34485E-03   -.94082    
   4  Prefactor     1.1067        .15728        .18995E-03   -.89253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76035e-13
Minuit parameter uncertainties:
  1  0.177989
  2  0.381552
  3  0.270261
  4  0.157342
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66610': 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) = 7417.86703317
delta logL = 0.0044272809846

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  4.361e-01  1.780e-01  0.000e+00  1.000e+06 ( 1.000e-10)
201        alpha:  2.160e+00  3.816e-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.107e+00  1.573e-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:  9.688e-01  2.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.61
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.16 +/- 0.38
Photon Flux (Free Index): 1.09e-07 +/- 5.54e-08
Energy Flux (Free Index): 4.22e-05 +/- 1.85e-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/66610/cmap_HighResolution_700704001_700963201_4FGL_J1504.4+1029_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.06e-07', energy_flux2='4.22e-05', photon_flux_error='4.39e-08', dlogl='4.43e-03', energy_flux='4.28e-05', photon_flux2='1.09e-07', job_status='DONE', time_completed='2023-03-20 01:13:57.919827', photon_index_error2='0.38', photon_index2='2.16', ts='15.59', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.85e-05', EG='0.97', time_epoch_completed='1679300037.92', return_code='0', job_id='66610', GAL2='1.11', EG2='0.97', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='5.54e-08', ts2='15.61', photon_index='2.12' WHERE bin_id='1780' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 01:13:57 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 66610: <4FGL_J1504.4+1029_daily_bin1780> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1780> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Mar 20 01:05:20 2023
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 01:05:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 01:05:20 2023
Terminated at Mon Mar 20 01:13:58 2023
Results reported at Mon Mar 20 01:13:58 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1780 226.103 10.4978 700704001 700963201 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 :                                   493.00 sec.
    Max Memory :                                 1239 MB
    Average Memory :                             395.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   518 sec.
    Turnaround time :                            518 sec.

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

