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


Performing analysis on: 4FGL_J1504.4+1029_weekly_bin734
RA = 226.103, Dec = 10.4978
tmin = 682905601, tmax = 683510401
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='273989', job_status='RUN', time_executed='2022-09-17 01:27:11.209197', time_epoch_executed='1663403231.21' WHERE source_name='4FGL J1504.4+1029' and cadence='weekly' and bin_id='734'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/273989

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/273989/ft1_4FGL_J1504.4+1029_weekly_bin734.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/273989/ft2_4FGL_J1504.4+1029_weekly_bin734.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/273989/ft1_4FGL_J1504.4+1029_weekly_bin734.fits outfile=/scratch/kocevski/273989/ft1_filteredMKT_4FGL_J1504.4+1029_weekly_bin734.fits ra=226.103 dec=10.4978 rad=12.0 tmin=682905601.0 tmax=683510401.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 9.76
user 9.37
sys 0.34

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

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

Number of photons that the gtmktime cut: 1437

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/273989/ft1_filtered_4FGL_J1504.4+1029_weekly_bin734.fits" evtable="EVENTS" scfile=/scratch/kocevski/273989/ft2_4FGL_J1504.4+1029_weekly_bin734.fits sctable="SC_DATA" outfile=/scratch/kocevski/273989/ltcube_682905601_683510401_4FGL_J1504.4+1029_weekly_bin734.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/273989/ft2_4FGL_J1504.4+1029_weekly_bin734.fits
.....................!
real 32.01
user 31.48
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/273989/ft1_filtered_4FGL_J1504.4+1029_weekly_bin734.fits evtable="EVENTS" scfile=/scratch/kocevski/273989/ft2_4FGL_J1504.4+1029_weekly_bin734.fits sctable="SC_DATA" expcube=/scratch/kocevski/273989/ltcube_682905601_683510401_4FGL_J1504.4+1029_weekly_bin734.fits outfile=/scratch/kocevski/273989/expmap_682905601_683510401_4FGL_J1504.4+1029_weekly_bin734.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/273989/ltcube_682905601_683510401_4FGL_J1504.4+1029_weekly_bin734.fits
.....................!
real 193.34
user 187.68
sys 5.15

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/273989/ft1_filtered_4FGL_J1504.4+1029_weekly_bin734.fits scfile=/scratch/kocevski/273989/ft2_4FGL_J1504.4+1029_weekly_bin734.fits outfile=/scratch/kocevski/273989/cmap_682905601_683510401_4FGL_J1504.4+1029_weekly_bin734.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.59
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/273989/ft1_filtered_4FGL_J1504.4+1029_weekly_bin734.fits scfile=/scratch/kocevski/273989/ft2_4FGL_J1504.4+1029_weekly_bin734.fits outfile=/scratch/kocevski/273989/cmap_HighResolution_682905601_683510401_4FGL_J1504.4+1029_weekly_bin734.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.63
user 0.44
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10622E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.6482       1.0000          .0000       .10000E+07
     3 'norm      '    3.2763       1.0000          .0000       .10000E+07
     4 'Prefactor '    17.936       1.0000          .0000       .10000E+07
     5 'Prefactor '    .40328E-02   1.0000          .0000       .10000E+07
     6 'norm      '    18.144       1.0000          .0000       .10000E+07
     7 'Prefactor '    22.958       1.0000          .0000       .10000E+07
     8 'Prefactor '    13.962       1.0000          .0000       .10000E+07
     9 'Prefactor '    .50954E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .31898       1.0000          .0000       .10000E+07
    11 'norm      '    .55831E-01   1.0000          .0000       .10000E+07
    12 'norm      '    3.0760       1.0000          .0000       .10000E+07
    13 'norm      '    9.5707       1.0000          .0000       .10000E+07
    14 'norm      '    8.8264       1.0000          .0000       .10000E+07
    15 'Prefactor '    17.950       1.0000          .0000       .10000E+07
    16 'Prefactor '    4.2888       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.2515       1.0000          .0000       .10000E+07
    18 'Prefactor '    34.984       1.0000          .0000       .10000E+07
    19 'norm      '    7.4966       1.0000          .0000       .10000E+07
    20 'Prefactor '    12.578       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.4164       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89415       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=   15971.44     FROM MIGRAD    STATUS=CONVERGED    128 CALLS     1738 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29976E-08    13.353       -.86847E-06** at limit **
   2  Prefactor     1.6382        4.0196        .49593E-06    .43363E-03
   3  norm          3.2726        2.0447       -.43239E-07   -.85505E-03
   4  Prefactor     17.746        22.410       -.93999E-06    .56526E-01
   5  Prefactor     .13545E-07    14.892        .75237E-06** at limit **
   6  norm          17.874        10.830       -.71168E-06   -.13916E-02
   7  Prefactor     22.982        1.5285       -.18850E-07    .21291E-01
   8  Prefactor     13.925        11.872        .23266E-06    .73238E-02
   9  Prefactor      .0000        7.2232       -.15534E-05** at limit **
  10  norm          .31887        .12476        .16227E-07    .69274E-02
  11  norm          .49594E-01    6.5120       -.22749E-05** at limit **
  12  norm          3.0952        3.0443       -.24306E-06    .14827E-02
  13  norm          9.5707        1.0052        .46307E-09   -.16851E-02
  14  norm          8.8255        3.4380       -.12539E-06    .78279E-03
  15  Prefactor     17.737        24.058       -.93626E-06   -.27218E-01
  16  Prefactor     4.2691        3.4400        .95819E-07    .29148E-03
  17  Prefactor     3.2557        1.2392        .13450E-08   -.46469E-02
  18  Prefactor     35.136        7.9233        .18422E-06    .99630E-01
  19  norm          7.4913        2.4508       -.90532E-08   -.13461E-03
  20  Prefactor     12.625        2.6266        .96508E-07    .18011E-01
  21  Normalizat    1.4171        .18980       -.40077E-06    .58149E-04
  22  Prefactor     .89409        .10870       -.14557E-05    .85773E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.9976e-09
  Prefactor  = 1.63815
  norm       = 3.27257
  Prefactor  = 17.7465
  Prefactor  = 1.35447e-08
  norm       = 17.8742
  Prefactor  = 22.9815
  Prefactor  = 13.9246
  Prefactor  = 0
  norm       = 0.318872
  norm       = 0.0495941
  norm       = 3.09517
  norm       = 9.57073
  norm       = 8.82554
  Prefactor  = 17.7369
  Prefactor  = 4.26907
  Prefactor  = 3.25566
  Prefactor  = 35.1359
  norm       = 7.49127
  Prefactor  = 12.6252
  Normalizat = 1.41711
  Prefactor  = 0.894089
 **********
 **   18 **HESSE 
 **********

 FCN=   15971.44     FROM HESSE     STATUS=OK           406 CALLS     2144 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .29976E-08    13.352        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.6382        4.0515        .82221E-03   -1.5682    
   3  norm          3.2726        2.0498        .55918E-03   -1.5672    
   4  Prefactor     17.746        37.984        .23622E-03   -1.5624    
   5  Prefactor     .13545E-07    14.934        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          17.874        10.857        .23485E-03   -1.5623    
   7  Prefactor     22.982        14.893        .20876E-03   -1.5612    
   8  Prefactor     13.925        11.908        .26780E-03   -1.5633    
   9  Prefactor      .0000        7.2343        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .31887        .12641        .59983E-03   -1.5697    
  11  norm          .49594E-01    .48261        .49774E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.0952        3.0514        .57808E-03   -1.5673    
  13  norm          9.5707        14.783        .32369E-03   -1.5646    
  14  norm          8.8255        3.4460        .33714E-03   -1.5649    
  15  Prefactor     17.737        31.941        .23612E-03   -1.5624    
  16  Prefactor     4.2691        3.4469        .48623E-03   -1.5667    
  17  Prefactor     3.2557        37.792        .56142E-03   -1.5672    
  18  Prefactor     35.136        26.643        .16909E-03   -1.5589    
  19  norm          7.4913        2.4569        .36605E-03   -1.5653    
  20  Prefactor     12.625        27.668        .28219E-03   -1.5637    
  21  Normalizat    1.4171        .15784        .69087E-01   -.80135    
  22  Prefactor     .89409        .90164E-01    .44930E-01   -.96348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31843e-07
Minuit parameter uncertainties:
  1  0.000401051
  2  4.05148
  3  2.04982
  4  37.9843
  5  0.000898773
  6  10.8575
  7  14.8933
  8  11.9081
  9  2.1181e-06
  10  0.126411
  11  0.309416
  12  3.05136
  13  14.7831
  14  3.44604
  15  31.9414
  16  3.44694
  17  22.1846
  18  26.6429
  19  2.45687
  20  27.6681
  21  0.157893
  22  0.0901789
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  3.189e-01  1.264e-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:  8.941e-01  9.018e-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.417e+00  1.579e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.66
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 7.76e-08 +/- 3.08e-08
Energy Flux (Fixed Index): 3.14e-05 +/- 1.25e-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) = 15970.8004869
delta logL = 0.639193375693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15970.8000249
delta logL = 0.639655339835

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .33997       1.0000          .0000       .10000E+07
     2 'alpha     '    2.6150       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3531       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91681       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=   15970.80     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      216 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33997        1.2526        .52707E-03    .40841E-01
   2  alpha         2.6151        3.7745        .41207        .99861E-04
   3  Normalizat    1.3530        .59506E-01    .70387E-01    .66547E-03
   4  Prefactor     .91681        .31771E-01    .45219E-01    .10079E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.339968
  alpha      = 2.61506
  Normalizat = 1.35305
  Prefactor  = 0.916815
 **********
 **   18 **HESSE 
 **********

 FCN=   15970.80     FROM HESSE     STATUS=OK            29 CALLS      245 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33997        .12165        .23525E-05   -1.5696    
   2  alpha         2.6151        .43311        .15152E-01    .46041E-01
   3  Normalizat    1.3530        .19518        .31143E-03   -.81996    
   4  Prefactor     .91681        .10935        .21306E-03   -.95556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14299e-10
Minuit parameter uncertainties:
  1  0.121646
  2  0.435307
  3  0.195283
  4  0.109375
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/273989': 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) = 15970.8000249
delta logL = 0.639655341369

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  3.400e-01  1.216e-01  0.000e+00  1.000e+06 ( 1.000e-10)
201        alpha:  2.615e+00  4.353e-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:  9.168e-01  1.094e-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.353e+00  1.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.04
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.62 +/- 0.44
Photon Flux (Free Index): 1.26e-07 +/- 5.65e-08
Energy Flux (Free Index): 3.19e-05 +/- 1.07e-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/273989/cmap_HighResolution_682905601_683510401_4FGL_J1504.4+1029_weekly_bin734.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.76e-08', energy_flux2='3.19e-05', photon_flux_error='3.08e-08', dlogl='6.40e-01', energy_flux='3.14e-05', photon_flux2='1.26e-07', job_status='DONE', time_completed='2022-09-17 01:41:11.360346', photon_index_error2='0.44', photon_index2='2.62', ts='17.66', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.07e-05', EG='1.42', time_epoch_completed='1663404071.36', return_code='0', job_id='273989', GAL2='0.92', EG2='1.35', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='5.65e-08', ts2='19.04', photon_index='2.12' WHERE bin_id='734' AND source_name='4FGL J1504.4+1029' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Sep 17 01:41:11 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 273989: <4FGL_J1504.4+1029_weekly_bin734> in cluster <slac> Done

Job <4FGL_J1504.4+1029_weekly_bin734> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 17 01:25:31 2022
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 17 01:26:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 17 01:26:36 2022
Terminated at Sat Sep 17 01:41:12 2022
Results reported at Sat Sep 17 01:41:12 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_weekly_bin734 226.103 10.4978 682905601 683510401 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 :                                   837.05 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             360.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            941 sec.

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

