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 44 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1702
RA = 226.103, Dec = 10.4978
tmin = 680486401, tmax = 680745601
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='257421', job_status='RUN', time_executed='2022-07-29 01:31:17.443789', time_epoch_executed='1659083477.44' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/257421

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/257421/ft1_4FGL_J1504.4+1029_daily_bin1702.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/257421/ft2_4FGL_J1504.4+1029_daily_bin1702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/257421/ft1_4FGL_J1504.4+1029_daily_bin1702.fits outfile=/scratch/kocevski/257421/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1702.fits ra=226.103 dec=10.4978 rad=12.0 tmin=680486401.0 tmax=680745601.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.00
user 2.79
sys 0.20

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

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

Number of photons that the gtmktime cut: 1080

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/257421/ft1_filtered_4FGL_J1504.4+1029_daily_bin1702.fits" evtable="EVENTS" scfile=/scratch/kocevski/257421/ft2_4FGL_J1504.4+1029_daily_bin1702.fits sctable="SC_DATA" outfile=/scratch/kocevski/257421/ltcube_680486401_680745601_4FGL_J1504.4+1029_daily_bin1702.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/257421/ft2_4FGL_J1504.4+1029_daily_bin1702.fits
.....................!
real 14.70
user 14.28
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/257421/ft1_filtered_4FGL_J1504.4+1029_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/257421/ft2_4FGL_J1504.4+1029_daily_bin1702.fits sctable="SC_DATA" expcube=/scratch/kocevski/257421/ltcube_680486401_680745601_4FGL_J1504.4+1029_daily_bin1702.fits outfile=/scratch/kocevski/257421/expmap_680486401_680745601_4FGL_J1504.4+1029_daily_bin1702.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/257421/ltcube_680486401_680745601_4FGL_J1504.4+1029_daily_bin1702.fits
.....................!
real 193.89
user 188.70
sys 4.22

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/257421/ft1_filtered_4FGL_J1504.4+1029_daily_bin1702.fits scfile=/scratch/kocevski/257421/ft2_4FGL_J1504.4+1029_daily_bin1702.fits outfile=/scratch/kocevski/257421/cmap_680486401_680745601_4FGL_J1504.4+1029_daily_bin1702.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/257421/ft1_filtered_4FGL_J1504.4+1029_daily_bin1702.fits scfile=/scratch/kocevski/257421/ft2_4FGL_J1504.4+1029_daily_bin1702.fits outfile=/scratch/kocevski/257421/cmap_HighResolution_680486401_680745601_4FGL_J1504.4+1029_daily_bin1702.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.57
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/257421/ft1_filtered_4FGL_J1504.4+1029_daily_bin1702.fits', '/scratch/kocevski/257421/ft2_4FGL_J1504.4+1029_daily_bin1702.fits', expMap='/scratch/kocevski/257421/expmap_680486401_680745601_4FGL_J1504.4+1029_daily_bin1702.fits', expCube='/scratch/kocevski/257421/ltcube_680486401_680745601_4FGL_J1504.4+1029_daily_bin1702.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/257421/Model_4FGL_J1504.4+1029_daily_bin1702.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  1.000e-04  1.000e+04 ( 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  0.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/257421/ft1_filtered_4FGL_J1504.4+1029_daily_bin1702.fits
Spacecraft file(s): /scratch/kocevski/257421/ft2_4FGL_J1504.4+1029_daily_bin1702.fits
Exposure map: /scratch/kocevski/257421/expmap_680486401_680745601_4FGL_J1504.4+1029_daily_bin1702.fits
Exposure cube: /scratch/kocevski/257421/ltcube_680486401_680745601_4FGL_J1504.4+1029_daily_bin1702.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/257421/Model_4FGL_J1504.4+1029_daily_bin1702.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) = 11630.0866424

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3431       1.0000         .10000E-03   10000.    
     2 'norm      '    .10501E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.6261       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5646       1.0000         .10000E-03   10000.    
     5 'norm      '    1.9091       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    103.33       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5775       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.280       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .40699       1.0000         .10000E-03   10000.    
    15 'norm      '    3.5085       1.0000         .10000E-03   10000.    
    16 'norm      '    1.7245       1.0000         .10000E-03   10000.    
    17 'norm      '    6.3315       1.0000         .10000E-03   10000.    
    18 'norm      '    2.7907       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14278E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    37.863       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    49.039       1.0000         .10000E-03   10000.    
    25 'norm      '    9.7616       1.0000         .10000E-03   10000.    
    26 'Prefactor '    24.391       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .97459       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0280       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11630.04     FROM MIGRAD    STATUS=CONVERGED    691 CALLS     3029 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3452        22.573       -.26854E-06   -.54352E-04
   2  norm          .10000E-03    28.437        .25791E-06** at limit **
   3  Prefactor     4.6257        6.6284       -.25919E-07   -.10655E-03
   4  Prefactor     2.5641        4.8083        .23737E-06   -.63847E-04
   5  norm          1.9091        2.0166        .82515E-08   -.13223E-03
   6  Prefactor     .10000E-03    15.672       -.13656E-06** at limit **
   7  Prefactor     .10000E-03    11.350        .18242E-06** at limit **
   8  norm          .10000E-03    6.0433       -.62208E-08** at limit **
   9  Prefactor     .10000E-03    8.2572        .22936E-06** at limit **
  10  Prefactor     103.33        25.956       -.36048E-07   -.13834E-03
  11  Prefactor     2.5767        10.182       -.37157E-06   -.20271E-03
  12  Prefactor     24.279        20.594       -.10336E-05   -.53099E-03
  13  Prefactor     .10000E-03    79.700        .61168E-06** at limit **
  14  norm          .40694        .14397       -.39110E-07   -.17693E-02
  15  norm          3.5081        2.0747        .15147E-07   -.12484E-04
  16  norm          1.7246        3.9843        .64432E-05   -.10863E-03
  17  norm          6.3318        22.996        .98989E-06   -.11594E-04
  18  norm          2.7907        2.2937        .53757E-08    .87912E-05
  19  Prefactor     .10001E-03    65.635        .20736E-06** at limit **
  20  Prefactor     .10000E-03    8.8113       -.22128E-06** at limit **
  21  Prefactor     37.861        23.183        .31338E-06    .99028E-04
  22  Prefactor     .10000E-03    2.8010        .11348E-06** at limit **
  23  Prefactor     .10000E-03    13.627        .32707E-07** at limit **
  24  Prefactor     49.038        22.690       -.27003E-08   -.14729E-04
  25  norm          9.7613        2.8454       -.37106E-07   -.51176E-05
  26  Prefactor     24.354        42.235        .22323E-05   -.15145E-04
  27  Normalizat    .97472        .18302       -.14181E-06   -.11821E-03
  28  Prefactor     1.0280        .10368       -.14579E-06    .36931E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.34525
  norm       = 0.0001
  Prefactor  = 4.62565
  Prefactor  = 2.56406
  norm       = 1.90908
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 103.326
  Prefactor  = 2.57667
  Prefactor  = 24.2792
  Prefactor  = 0.000100002
  norm       = 0.406941
  norm       = 3.50805
  norm       = 1.72456
  norm       = 6.33182
  norm       = 2.7907
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 37.8613
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.0381
  norm       = 9.76132
  Prefactor  = 24.354
  Normalizat = 0.97472
  Prefactor  = 1.02798
 **********
 **   18 **HESSE 
 **********

 FCN=   11630.04     FROM HESSE     STATUS=OK           521 CALLS     3550 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3452        22.613        .13111E-03   -1.5096    
   2  norm          .10000E-03    28.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.6257        6.5893        .18713E-03   -1.5278    
   4  Prefactor     2.5641        4.7691        .25491E-03   -1.5388    
   5  norm          1.9091        2.0020        .15255E-03   -1.5432    
   6  Prefactor     .10000E-03    15.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.0792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.2818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     103.33        26.025        .39556E-04   -1.3671    
  11  Prefactor     2.5767        10.131        .25421E-03   -1.5387    
  12  Prefactor     24.279        20.660        .81293E-04   -1.4722    
  13  Prefactor     .10000E-03    80.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .40694        .14261        .23083E-04   -1.5580    
  15  norm          3.5081        2.0712        .11192E-03   -1.5333    
  16  norm          1.7246        3.9880        .15991E-02   -1.5445    
  17  norm          6.3318        23.006        .79760E-03   -1.5205    
  18  norm          2.7907        2.2945        .14285E-03   -1.5374    
  19  Prefactor     .10001E-03    66.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.8151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     37.861        23.237        .65135E-04   -1.4477    
  22  Prefactor     .10000E-03    2.8861        .35240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     49.038        22.702        .57264E-04   -1.4306    
  25  norm          9.7613        2.8456        .47750E-03   -1.5083    
  26  Prefactor     24.354        42.281        .81109E-04   -1.4721    
  27  Normalizat    .97472        .21881        .33620E-03   -.93882    
  28  Prefactor     1.0280        .12436        .19708E-03   -.91803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.80227e-10
Minuit parameter uncertainties:
  1  22.6333
  2  3.05554e-05
  3  6.59038
  4  4.7698
  5  2.00208
  6  1.84676e-05
  7  7.27434e-06
  8  1.51997e-08
  9  1.58212e-05
  10  26.0279
  11  10.1376
  12  20.6659
  13  0.000829957
  14  0.14261
  15  2.07121
  16  3.98863
  17  23.0386
  18  2.29455
  19  0.00137351
  20  1.04969e-05
  21  23.2425
  22  1.39814e-05
  23  1.59641e-05
  24  22.7061
  25  2.84568
  26  42.3332
  27  0.21901
  28  0.12439
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  4.069e-01  1.426e-01  1.000e-04  1.000e+04 ( 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  0.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.028e+00  1.244e-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.747e-01  2.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.91
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 9.91e-08 +/- 3.47e-08
Energy Flux (Fixed Index): 4.01e-05 +/- 1.41e-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) = 11629.964639
delta logL = 0.073209865941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11629.9626595
delta logL = 0.0751894316836

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40795       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2534       1.0000          .0000       5.0000    
     3 'Normalizat'    .96158       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0328       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=   11629.96     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40795        2.2825        .50665E-02    .91014E-03
   2  alpha         2.2534        3.6003        .31257        .83471E-05
   3  Normalizat    .96141        .12348        .76416E-01    .35486E-04
   4  Prefactor     1.0329        .80998E-01    .41045E-01    .30710E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.407948
  alpha      = 2.25343
  Normalizat = 0.961414
  Prefactor  = 1.03286
 **********
 **   18 **HESSE 
 **********

 FCN=   11629.96     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40795        .13941        .22548E-04   -1.5580    
   2  alpha         2.2534        .33490        .12516E-01   -.98790E-01
   3  Normalizat    .96141        .20643        .33818E-03   -.94335    
   4  Prefactor     1.0329        .12316        .19665E-03   -.91642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06431e-11
Minuit parameter uncertainties:
  1  0.139409
  2  0.335919
  3  0.206603
  4  0.123195
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/257421': 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) = 11629.9626591
delta logL = 0.075189753652

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  4.079e-01  1.394e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.253e+00  3.359e-01  0.000e+00  5.000e+00 ( 1.000e+00)
202         beta:  9.862e-02  0.000e+00  0.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.033e+00  1.232e-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.614e-01  2.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.07
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.25 +/- 0.34
Photon Flux (Free Index): 1.10e-07 +/- 4.51e-08
Energy Flux (Free Index): 3.81e-05 +/- 1.39e-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/257421/cmap_HighResolution_680486401_680745601_4FGL_J1504.4+1029_daily_bin1702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.91e-08', energy_flux2='3.81e-05', photon_flux_error='3.47e-08', dlogl='7.52e-02', energy_flux='4.01e-05', photon_flux2='1.10e-07', job_status='DONE', time_completed='2022-07-29 01:45:15.997764', photon_index_error2='0.34', photon_index2='2.25', ts='19.91', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='0.97', time_epoch_completed='1659084316.0', return_code='0', job_id='257421', GAL2='1.03', EG2='0.96', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='4.51e-08', ts2='20.07', photon_index='2.12' WHERE bin_id='1702' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 29 01:45:16 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 235228: <4FGL_J1504.4+1029_daily_bin1702> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1702> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Jul 29 00:06:55 2022
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 29 01:16:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 29 01:16:29 2022
Terminated at Fri Jul 29 01:31:11 2022
Results reported at Fri Jul 29 01:31:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1702 226.103 10.4978 680486401 680745601 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 :                                   836.46 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             331.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            5056 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 257421: <4FGL_J1504.4+1029_daily_bin1702> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1702> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Jul 29 01:30:14 2022
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 29 01:30:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 29 01:30:23 2022
Terminated at Fri Jul 29 01:45:16 2022
Results reported at Fri Jul 29 01:45:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1702 226.103 10.4978 680486401 680745601 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 :                                   838.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            902 sec.

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

