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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin817
RA = 226.103, Dec = 10.4978
tmin = 451094401, tmax = 451353601
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='2268', job_status='RUN', time_executed='2021-09-10 21:31:34.056926', time_epoch_executed='1631334694.06' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='817'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2268

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2268/ft1_4FGL_J1504.4+1029_daily_bin817.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2268/ft2_4FGL_J1504.4+1029_daily_bin817.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2268/ft1_4FGL_J1504.4+1029_daily_bin817.fits outfile=/scratch/kocevski/2268/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin817.fits ra=226.103 dec=10.4978 rad=12.0 tmin=451094401.0 tmax=451353601.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.41
user 3.18
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2268/ft1_filtered_4FGL_J1504.4+1029_daily_bin817.fits evtable="EVENTS" scfile=/scratch/kocevski/2268/ft2_4FGL_J1504.4+1029_daily_bin817.fits sctable="SC_DATA" expcube=/scratch/kocevski/2268/ltcube_451094401_451353601_4FGL_J1504.4+1029_daily_bin817.fits outfile=/scratch/kocevski/2268/expmap_451094401_451353601_4FGL_J1504.4+1029_daily_bin817.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/2268/ltcube_451094401_451353601_4FGL_J1504.4+1029_daily_bin817.fits
.....................!
real 192.22
user 187.66
sys 4.25

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/2268/ft1_filtered_4FGL_J1504.4+1029_daily_bin817.fits scfile=/scratch/kocevski/2268/ft2_4FGL_J1504.4+1029_daily_bin817.fits outfile=/scratch/kocevski/2268/cmap_451094401_451353601_4FGL_J1504.4+1029_daily_bin817.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/2268/ft1_filtered_4FGL_J1504.4+1029_daily_bin817.fits scfile=/scratch/kocevski/2268/ft2_4FGL_J1504.4+1029_daily_bin817.fits outfile=/scratch/kocevski/2268/cmap_HighResolution_451094401_451353601_4FGL_J1504.4+1029_daily_bin817.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .54689       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11592E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5669       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10580E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5705       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.724       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.684       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.616       1.0000         .10000E-03   10000.    
    13 'Prefactor '    35.013       1.0000         .10000E-03   10000.    
    14 'norm      '    1.1923       1.0000         .10000E-03   10000.    
    15 'norm      '    4.0695       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .16706E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.0099       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10502E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .77287E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.9344       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.6738       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.149       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.7858       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .52145       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=   6393.960     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     3556 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.325        .48144E-06** at limit **
   2  norm          .10000E-03    15.419        .56117E-07** at limit **
   3  Prefactor     .55758        9.6623        .14357E-05   -.25580E-03
   4  Prefactor     .10000E-03    5.6729       -.42203E-06** at limit **
   5  norm          1.5667        2.6504        .26622E-06    .50908E-04
   6  Prefactor     .10000E-03    32.149        .32518E-06** at limit **
   7  Prefactor     .10000E-03    59.776        .30309E-06** at limit **
   8  norm          .10000E-03    8.0061        .36743E-07** at limit **
   9  Prefactor     2.5700        37.611        .11790E-05    .19250E-05
  10  Prefactor     13.713        14.987        .29668E-07   -.24962E-04
  11  Prefactor     11.684        17.068        .11325E-06   -.22271E-05
  12  Prefactor     19.618        19.378       -.92599E-08    .14186E-04
  13  Prefactor     35.045        33.335       -.37461E-06   -.14266E-03
  14  norm          1.1923        .24750        .28911E-08    .11239E-04
  15  norm          4.0697        2.2936        .28488E-07    .11994E-03
  16  norm          .10000E-03    2.1624        .54935E-08** at limit **
  17  norm          .10000E-03    68.545       -.63034E-07** at limit **
  18  norm          4.0106        3.5679        .19365E-07    .76535E-04
  19  Prefactor     .10000E-03    36.430       -.18130E-06** at limit **
  20  Prefactor     .33196E-03    48.330       -.29121E-05** at limit **
  21  Prefactor     5.9354        31.052        .48010E-06   -.13586E-05
  22  Prefactor     6.6754        5.8997        .19084E-05    .34071E-03
  23  Prefactor     .10000E-03    14.168        .97030E-08** at limit **
  24  Prefactor     29.220        29.798       -.77244E-08    .56984E-04
  25  norm          .10000E-03    .78768        .10416E-07** at limit **
  26  Prefactor     .10000E-03    27.741       -.34583E-06** at limit **
  27  Normalizat    1.7860        .23508       -.59442E-07    .10033E-04
  28  Prefactor     .52139        .12894       -.71596E-06    .50850E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.557578
  Prefactor  = 0.000100001
  norm       = 1.56667
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.57003
  Prefactor  = 13.7133
  Prefactor  = 11.6837
  Prefactor  = 19.618
  Prefactor  = 35.0448
  norm       = 1.19231
  norm       = 4.06968
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.01063
  Prefactor  = 0.0001
  Prefactor  = 0.000331965
  Prefactor  = 5.93537
  Prefactor  = 6.67545
  Prefactor  = 0.0001
  Prefactor  = 29.2204
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.78596
  Prefactor  = 0.521391
 **********
 **   18 **HESSE 
 **********

 FCN=   6393.960     FROM HESSE     STATUS=OK           535 CALLS     4091 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    15.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55758        32.530        .41155E-02   -1.5559    
   4  Prefactor     .10000E-03    13.462        .33358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5667        2.6183        .16396E-03   -1.5458    
   6  Prefactor     .10000E-03    32.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    60.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.0228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5700        37.500        .25459E-03   -1.5387    
  10  Prefactor     13.713        14.993        .10812E-03   -1.4967    
  11  Prefactor     11.684        17.081        .11720E-03   -1.5024    
  12  Prefactor     19.618        19.352        .90431E-04   -1.4822    
  13  Prefactor     35.045        33.331        .33863E-03   -1.4523    
  14  norm          1.1923        .24811        .17389E-04   -1.5490    
  15  norm          4.0697        2.2919        .86897E-04   -1.5304    
  16  norm          .10000E-03    2.1652        .11483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    68.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.0106        3.5640        .13726E-03   -1.5307    
  19  Prefactor     .10000E-03    36.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .33196E-03    41.763        .14310       -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.9354        31.410        .16484E-03   -1.5221    
  22  Prefactor     6.6754        5.9356        .77664E-03   -1.5191    
  23  Prefactor     .10000E-03    14.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     29.220        29.797        .74207E-04   -1.4626    
  25  norm          .10000E-03    .79289        .69305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    27.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.7860        .28034        .25406E-03   -.70031    
  28  Prefactor     .52139        .15199        .24952E-03   -1.1101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.7891e-10
Minuit parameter uncertainties:
  1  0.000144397
  2  4.91055e-06
  3  8.5218
  4  0.000165774
  5  2.61853
  6  0.000159936
  7  0.000101895
  8  3.30831e-06
  9  19.6488
  10  14.9974
  11  17.088
  12  19.3581
  13  33.3483
  14  0.248106
  15  2.29194
  16  4.30388e-07
  17  5.08296e-06
  18  3.56417
  19  7.37775e-05
  20  0.196989
  21  27.3302
  22  5.93613
  23  1.9855e-06
  24  29.8125
  25  3.59653e-07
  26  0.000195996
  27  0.28059
  28  0.152107
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.192e+00  2.481e-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:  5.214e-01  1.521e-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.786e+00  2.806e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 81.99
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.90e-07 +/- 6.04e-08
Energy Flux (Fixed Index): 1.18e-04 +/- 2.45e-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) = 6393.15953261
delta logL = 0.800124359813

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6393.15950196
delta logL = 0.800155005858

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1660       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8469       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8469       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49936       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=   6393.160     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      211 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1660        .25135        .40641E-02    .21670E-02
   2  alpha         1.8469        .20230        .14953        .16908E-04
   3  Normalizat    1.8469        .22331        .56819E-01    .14464E-03
   4  Prefactor     .49936        .12629        .57621E-01    .14075E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.16604
  alpha      = 1.84686
  Normalizat = 1.84694
  Prefactor  = 0.499356
 **********
 **   18 **HESSE 
 **********

 FCN=   6393.160     FROM HESSE     STATUS=OK            27 CALLS      238 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1660        .26150        .17952E-04   -1.5492    
   2  alpha         1.8469        .21528        .64665E-03   -.26432    
   3  Normalizat    1.8469        .26640        .25121E-03   -.68445    
   4  Prefactor     .49936        .14970        .25490E-03   -1.1201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0467e-11
Minuit parameter uncertainties:
  1  0.2615
  2  0.215563
  3  0.266611
  4  0.149813
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2268': 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) = 6393.15950196
delta logL = 0.800155007251

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.166e+00  2.615e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  1.847e+00  2.156e-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:  4.994e-01  1.498e-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.847e+00  2.666e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 83.54
Ra Dec: 226.103 10.498
Photon Index (Free Index): 1.85 +/- 0.22
Photon Flux (Free Index): 2.39e-07 +/- 6.58e-08
Energy Flux (Free Index): 1.47e-04 +/- 4.40e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/2268/cmap_HighResolution_451094401_451353601_4FGL_J1504.4+1029_daily_bin817.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.90e-07', energy_flux2='1.47e-04', photon_flux_error='6.04e-08', dlogl='8.00e-01', energy_flux='1.18e-04', photon_flux2='2.39e-07', job_status='DONE', time_completed='2021-09-10 21:42:05.612517', photon_index_error2='0.22', photon_index2='1.85', ts='81.99', fit_tolerance='1e-08', GAL='0.52', photon_index_error='0.00', energy_flux_error2='4.40e-05', EG='1.79', time_epoch_completed='1631335325.61', return_code='0', job_id='2268', GAL2='0.50', EG2='1.85', return_code2='0', energy_flux_error='2.45e-05', photon_flux_error2='6.58e-08', ts2='83.54', photon_index='2.12' WHERE bin_id='817' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:42:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 2268: <4FGL_J1504.4+1029_daily_bin817> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin817> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 21:31:15 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:31:17 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:31:17 2021
Terminated at Fri Sep 10 21:42:06 2021
Results reported at Fri Sep 10 21:42:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin817 226.103 10.4978 451094401 451353601 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 :                                   629.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            651 sec.

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

