/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 192 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 = 7607
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1410
RA = 226.103, Dec = 10.4978
tmin = 604800001, tmax = 605059201
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='7918', job_status='RUN', time_executed='2021-09-10 21:49:41.226586', time_epoch_executed='1631335781.23' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7918

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7918/ft1_4FGL_J1504.4+1029_daily_bin1410.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7918/ft2_4FGL_J1504.4+1029_daily_bin1410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7918/ft1_4FGL_J1504.4+1029_daily_bin1410.fits outfile=/scratch/kocevski/7918/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1410.fits ra=226.103 dec=10.4978 rad=12.0 tmin=604800001.0 tmax=605059201.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 5.09
user 4.87
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/7918/ft2_4FGL_J1504.4+1029_daily_bin1410.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/7918/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1410.fits evtable="EVENTS" outfile="/scratch/kocevski/7918/ft1_filtered_4FGL_J1504.4+1029_daily_bin1410.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.50
user 0.35
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7918/ft1_filtered_4FGL_J1504.4+1029_daily_bin1410.fits" evtable="EVENTS" scfile=/scratch/kocevski/7918/ft2_4FGL_J1504.4+1029_daily_bin1410.fits sctable="SC_DATA" outfile=/scratch/kocevski/7918/ltcube_604800001_605059201_4FGL_J1504.4+1029_daily_bin1410.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/7918/ft2_4FGL_J1504.4+1029_daily_bin1410.fits
.....................!
real 11.59
user 11.17
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7918/ft1_filtered_4FGL_J1504.4+1029_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/7918/ft2_4FGL_J1504.4+1029_daily_bin1410.fits sctable="SC_DATA" expcube=/scratch/kocevski/7918/ltcube_604800001_605059201_4FGL_J1504.4+1029_daily_bin1410.fits outfile=/scratch/kocevski/7918/expmap_604800001_605059201_4FGL_J1504.4+1029_daily_bin1410.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/7918/ltcube_604800001_605059201_4FGL_J1504.4+1029_daily_bin1410.fits
.....................!
real 189.75
user 184.90
sys 4.54

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/7918/ft1_filtered_4FGL_J1504.4+1029_daily_bin1410.fits scfile=/scratch/kocevski/7918/ft2_4FGL_J1504.4+1029_daily_bin1410.fits outfile=/scratch/kocevski/7918/cmap_604800001_605059201_4FGL_J1504.4+1029_daily_bin1410.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=226.103 yref=10.4978 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7918/ft1_filtered_4FGL_J1504.4+1029_daily_bin1410.fits scfile=/scratch/kocevski/7918/ft2_4FGL_J1504.4+1029_daily_bin1410.fits outfile=/scratch/kocevski/7918/cmap_HighResolution_604800001_605059201_4FGL_J1504.4+1029_daily_bin1410.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.008       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.4012       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.8828       1.0000         .10000E-03   10000.    
     8 'norm      '    .13299E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9393       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .83811E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.531       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .74125       1.0000         .10000E-03   10000.    
    15 'norm      '    .17511       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.0395       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.028       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.561       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.2615       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .89345       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1906       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=   8511.858     FROM MIGRAD    STATUS=CONVERGED    685 CALLS     3499 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.021        25.086        .30055E-06    .19231E-04
   2  norm          .10000E-03    5.3969        .38219E-07** at limit **
   3  Prefactor     .10000E-03    3.1012       -.68506E-07** at limit **
   4  Prefactor     .10000E-03    1.4626       -.29893E-07** at limit **
   5  norm          2.4011        2.4496        .48901E-07    .86553E-06
   6  Prefactor     .10000E-03    41.690        .51853E-07** at limit **
   7  Prefactor     6.9054        28.115       -.18354E-05   -.35278E-04
   8  norm          .10000E-03    36.394        .51872E-05** at limit **
   9  Prefactor     7.9378        25.575        .46635E-06   -.53157E-05
  10  Prefactor     .10000E-03    12.265        .54747E-06** at limit **
  11  Prefactor     .10000E-03    10.636        .79531E-08** at limit **
  12  Prefactor     13.542        26.830        .13915E-06    .15399E-04
  13  Prefactor     .10000E-03    11.346        .73731E-07** at limit **
  14  norm          .74131        .19126        .10303E-07   -.62723E-03
  15  norm          .19289        1.0054        .22543E-06   -.45678E-03
  16  norm          .10000E-03    2.3211       -.21365E-07** at limit **
  17  norm          .10000E-03    13.887       -.32596E-08** at limit **
  18  norm          4.0354        3.7644        .12008E-06   -.98558E-04
  19  Prefactor     25.017        40.844        .30127E-07   -.24851E-04
  20  Prefactor     .10000E-03    46.888       -.15982E-06** at limit **
  21  Prefactor     32.584        36.570        .35118E-06    .53683E-04
  22  Prefactor     .10000E-03    1.3184       -.45550E-07** at limit **
  23  Prefactor     .10000E-03    13.443        .61413E-07** at limit **
  24  Prefactor     .10000E-03    9.2251       -.32185E-07** at limit **
  25  norm          1.2620        3.4149        .13404E-05   -.59256E-05
  26  Prefactor     .10000E-03    49.470        .42097E-08** at limit **
  27  Normalizat    .89326        .22781       -.14177E-05   -.12386E-03
  28  Prefactor     1.1906        .12843        .46076E-06   -.30546E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.0211
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.40113
  Prefactor  = 0.0001
  Prefactor  = 6.90541
  norm       = 0.0001
  Prefactor  = 7.93777
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 13.5418
  Prefactor  = 0.0001
  norm       = 0.741305
  norm       = 0.19289
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.03539
  Prefactor  = 25.0171
  Prefactor  = 0.0001
  Prefactor  = 32.5843
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.26202
  Prefactor  = 0.0001
  Normalizat = 0.893258
  Prefactor  = 1.19059
 **********
 **   18 **HESSE 
 **********

 FCN=   8511.858     FROM HESSE     STATUS=OK           519 CALLS     4018 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.021        25.103        .81753E-04   -1.4727    
   2  norm          .10000E-03    5.3970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.1134        .15864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.4645        .10895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.4011        2.4417        .14182E-03   -1.5398    
   6  Prefactor     .10000E-03    41.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.9054        28.648        .15293E-03   -1.5182    
   8  norm          .10000E-03    37.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.9378        25.442        .14230E-03   -1.5144    
  10  Prefactor     .10000E-03    59.603        .61441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.542        26.675        .10889E-03   -1.4972    
  13  Prefactor     .10000E-03    11.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .74131        .19049        .19584E-04   -1.5536    
  15  norm          .19289        5.7220        .16370E-02   -1.5620    
  16  norm          .10000E-03    2.3298        .13727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    13.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.0354        3.7638        .16281E-03   -1.5306    
  19  Prefactor     25.017        40.799        .80072E-04   -1.4707    
  20  Prefactor     .10000E-03    47.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     32.584        36.362        .70222E-04   -1.4566    
  22  Prefactor     .10000E-03    1.3218        .10344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.2346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.2620        3.3930        .26727E-03   -1.5483    
  26  Prefactor     .10000E-03    49.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .89326        .26047        .35726E-03   -.96697    
  28  Prefactor     1.1906        .14946        .18796E-03   -.86621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46058e-10
Minuit parameter uncertainties:
  1  25.1136
  2  9.75256e-08
  3  1.14934e-06
  4  2.71928e-07
  5  2.44176
  6  2.57739e-05
  7  28.1532
  8  6.53111e-05
  9  25.4764
  10  0.000975653
  11  7.2427e-06
  12  26.6983
  13  1.04986e-06
  14  0.190486
  15  2.10083
  16  1.36165e-07
  17  8.11743e-07
  18  3.76405
  19  40.8444
  20  6.65275e-05
  21  36.3864
  22  1.60497e-07
  23  2.85754e-06
  24  3.8635e-06
  25  3.39352
  26  6.00925e-05
  27  0.260836
  28  0.149514
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  7.413e-01  1.905e-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.191e+00  1.495e-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:  8.933e-01  2.608e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 40.11
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.80e-07 +/- 4.64e-08
Energy Flux (Fixed Index): 7.31e-05 +/- 1.88e-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) = 8511.85678971
delta logL = 0.000794864290583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8511.85675767
delta logL = 0.000826910985779

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74119       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1348       1.0000          .0000       5.0000    
     3 'Normalizat'    .89155       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1912       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=   8511.857     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      198 TOTAL
                     EDM=   .58E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74113        .23798        .44165E-02    .17126E-03
   2  alpha         2.1348        .30902        .20717        .44156E-06
   3  Normalizat    .89159        .21214        .80770E-01    .30875E-04
   4  Prefactor     1.1912        .12622        .34842E-01   -.20618E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.741132
  alpha      = 2.13483
  Normalizat = 0.891592
  Prefactor  = 1.19121
 **********
 **   18 **HESSE 
 **********

 FCN=   8511.857     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .37E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74113        .19001        .19553E-04   -1.5536    
   2  alpha         2.1348        .25652        .88157E-02   -.14659    
   3  Normalizat    .89159        .24954        .35755E-03   -.96756    
   4  Prefactor     1.1912        .14840        .18791E-03   -.86602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6501e-14
Minuit parameter uncertainties:
  1  0.190008
  2  0.256979
  3  0.249859
  4  0.148447
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7918': 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) = 8511.85675758
delta logL = 0.000826994093586

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  7.411e-01  1.900e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.135e+00  2.570e-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.191e+00  1.484e-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:  8.916e-01  2.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 40.01
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.13 +/- 0.26
Photon Flux (Free Index): 1.82e-07 +/- 5.65e-08
Energy Flux (Free Index): 7.27e-05 +/- 2.15e-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/7918/cmap_HighResolution_604800001_605059201_4FGL_J1504.4+1029_daily_bin1410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.80e-07', energy_flux2='7.27e-05', photon_flux_error='4.64e-08', dlogl='8.27e-04', energy_flux='7.31e-05', photon_flux2='1.82e-07', job_status='DONE', time_completed='2021-09-10 22:02:08.190422', photon_index_error2='0.26', photon_index2='2.13', ts='40.11', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='2.15e-05', EG='0.89', time_epoch_completed='1631336528.19', return_code='0', job_id='7918', GAL2='1.19', EG2='0.89', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='5.65e-08', ts2='40.01', photon_index='2.12' WHERE bin_id='1410' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:02:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 7918: <4FGL_J1504.4+1029_daily_bin1410> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1410> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 21:46:18 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:46:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 21:46:20 2021
Terminated at Fri Sep 10 22:02:11 2021
Results reported at Fri Sep 10 22:02:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1410 226.103 10.4978 604800001 605059201 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 :                                   718.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            953 sec.

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

