/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 121 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 = 7382
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1504.4+1029_daily_bin90
RA = 226.103, Dec = 10.4978
tmin = 262656001, tmax = 262915201
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='994715', job_status='RUN', time_executed='2021-09-10 21:08:12.991124', time_epoch_executed='1631333292.99' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='90'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994715

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994715/ft1_4FGL_J1504.4+1029_daily_bin90.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994715/ft2_4FGL_J1504.4+1029_daily_bin90.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994715/ft1_4FGL_J1504.4+1029_daily_bin90.fits outfile=/scratch/kocevski/994715/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin90.fits ra=226.103 dec=10.4978 rad=12.0 tmin=262656001.0 tmax=262915201.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 1.41
user 1.22
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994715/ft1_filtered_4FGL_J1504.4+1029_daily_bin90.fits evtable="EVENTS" scfile=/scratch/kocevski/994715/ft2_4FGL_J1504.4+1029_daily_bin90.fits sctable="SC_DATA" expcube=/scratch/kocevski/994715/ltcube_262656001_262915201_4FGL_J1504.4+1029_daily_bin90.fits outfile=/scratch/kocevski/994715/expmap_262656001_262915201_4FGL_J1504.4+1029_daily_bin90.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/994715/ltcube_262656001_262915201_4FGL_J1504.4+1029_daily_bin90.fits
.....................!
real 191.38
user 186.23
sys 4.77

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994715/ft1_filtered_4FGL_J1504.4+1029_daily_bin90.fits scfile=/scratch/kocevski/994715/ft2_4FGL_J1504.4+1029_daily_bin90.fits outfile=/scratch/kocevski/994715/cmap_HighResolution_262656001_262915201_4FGL_J1504.4+1029_daily_bin90.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.35
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0764       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.051       1.0000         .10000E-03   10000.    
     8 'norm      '    35.519       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.953       1.0000         .10000E-03   10000.    
    12 'Prefactor '    56.816       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.4350       1.0000         .10000E-03   10000.    
    15 'norm      '    .10769E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.7085       1.0000         .10000E-03   10000.    
    17 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.0384       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10919E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.1979       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10526E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    64.457       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.0546       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .68796       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0513       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=   8346.126     FROM MIGRAD    STATUS=CONVERGED    693 CALLS     4070 TOTAL
                     EDM=   .90E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.618        .66745E-07** at limit **
   2  norm          .10000E-03    12.427        .92817E-07** at limit **
   3  Prefactor     6.0767        6.6100        .26468E-05    .35955E-04
   4  Prefactor     .10000E-03    2.2261       -.43827E-07** at limit **
   5  norm          .10000E-03    2.0782       -.44957E-08** at limit **
   6  Prefactor     .10000E-03    88.181        .81847E-06** at limit **
   7  Prefactor     12.061        60.550        .94938E-06    .17826E-05
   8  norm          35.519        32.809       -.63200E-07   -.41285E-05
   9  Prefactor     .10000E-03    20.661        .13538E-06** at limit **
  10  Prefactor     .10000E-03    10.318        .58807E-07** at limit **
  11  Prefactor     33.959        24.468        .19309E-06    .62352E-05
  12  Prefactor     56.818        36.464        .35066E-06    .55597E-05
  13  Prefactor     .10000E-03    30.481        .12827E-06** at limit **
  14  norm          7.4350        .53024        .76548E-08   -.32913E-04
  15  norm          .10000E-03    .76729        .23720E-06** at limit **
  16  norm          3.7086        5.5502        .94933E-07    .52453E-07
  17  norm          .10000E-03    18.967       -.22901E-07** at limit **
  18  norm          3.0366        3.2062       -.43007E-08   -.33298E-04
  19  Prefactor     .10000E-03    29.573        .38196E-06** at limit **
  20  Prefactor     5.2087        45.229        .13770E-06    .39906E-05
  21  Prefactor     .10000E-03    42.606        .51887E-06** at limit **
  22  Prefactor     .10000E-03    1.1365        .16245E-07** at limit **
  23  Prefactor     64.481        51.282        .32103E-06    .18923E-04
  24  Prefactor     .10000E-03    9.1045       -.64687E-07** at limit **
  25  norm          .10000E-03    .71831        .40991E-07** at limit **
  26  Prefactor     4.9084        206.35       -.90772E-05   -.19755E-04
  27  Normalizat    .68777        .25593       -.53997E-05    .15845E-04
  28  Prefactor     1.0514        .14414        .19706E-05   -.24258E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.07668
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0614
  norm       = 35.5192
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.9587
  Prefactor  = 56.8176
  Prefactor  = 0.0001
  norm       = 7.43498
  norm       = 0.0001
  norm       = 3.7086
  norm       = 0.0001
  norm       = 3.03661
  Prefactor  = 0.0001
  Prefactor  = 5.20875
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 64.481
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.9084
  Normalizat = 0.687771
  Prefactor  = 1.05138
 **********
 **   18 **HESSE 
 **********

 FCN=   8346.126     FROM HESSE     STATUS=OK           517 CALLS     4587 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    12.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.0767        6.7039        .81438E-03   -1.5215    
   4  Prefactor     .10000E-03    2.2334        .13310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    8.3076        .25596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    88.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.061        59.910        .11539E-03   -1.5013    
   8  norm          35.519        32.647        .67243E-04   -1.4515    
   9  Prefactor     .10000E-03    20.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     33.959        24.456        .68771E-04   -1.4542    
  12  Prefactor     56.818        36.424        .53221E-04   -1.4199    
  13  Prefactor     .10000E-03    30.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.4350        .53075        .16759E-04   -1.5163    
  15  norm          .10000E-03    1.1892        .15439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.7086        5.5426        .20970E-03   -1.5323    
  17  norm          .10000E-03    18.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.0366        3.1957        .16196E-03   -1.5359    
  19  Prefactor     .10000E-03    29.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.2087        45.239        .17632E-03   -1.5251    
  21  Prefactor     .10000E-03    42.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.1377        .95109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     64.481        51.292        .49985E-04   -1.4100    
  24  Prefactor     .10000E-03    9.1083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .71912        .75614E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     4.9084        213.59        .17885E-03   -1.5265    
  27  Normalizat    .68777        .27791        .43807E-03   -1.0438    
  28  Prefactor     1.0514        .15907        .21147E-03   -.91036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33994e-10
Minuit parameter uncertainties:
  1  6.69314e-06
  2  1.13266e-05
  3  6.70469
  4  3.4625e-06
  5  5.71928e-05
  6  0.000242238
  7  53.8488
  8  32.6631
  9  2.30693e-05
  10  3.04589e-07
  11  24.4631
  12  36.4387
  13  1.85187e-05
  14  0.53075
  15  3.08298e-06
  16  5.54341
  17  1.98626e-05
  18  3.19589
  19  4.65802e-05
  20  30.7319
  21  1.70014e-05
  22  7.49783e-07
  23  51.3272
  24  4.72097e-06
  25  4.7683e-07
  26  65.0064
  27  0.278477
  28  0.159143
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  7.435e+00  5.307e-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.051e+00  1.591e-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:  6.878e-01  2.785e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 916.18
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.81e-06 +/- 1.29e-07
Energy Flux (Fixed Index): 7.33e-04 +/- 5.23e-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) = 8343.42061653
delta logL = 2.70577510172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8343.41587018
delta logL = 2.71052145744

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6525       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9518       1.0000          .0000       5.0000    
     3 'Normalizat'    .82968       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99556       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=   8343.416     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      197 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6525        .55851        .36241E-02    .40992E-02
   2  alpha         1.9518        .73103E-01    .42477E-01    .79808E-04
   3  Normalizat    .82963        .23058        .91311E-01    .41259E-05
   4  Prefactor     .99558        .13193        .46212E-01    .23477E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.65249
  alpha      = 1.95182
  Normalizat = 0.829633
  Prefactor  = 0.995578
 **********
 **   18 **HESSE 
 **********

 FCN=   8343.416     FROM HESSE     STATUS=OK            27 CALLS      224 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6525        .55345        .17317E-04   -1.5155    
   2  alpha         1.9518        .72768E-01    .25551E-03   -.22107    
   3  Normalizat    .82963        .27325        .40450E-03   -.98979    
   4  Prefactor     .99558        .15658        .21698E-03   -.92877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00731e-10
Minuit parameter uncertainties:
  1  0.553446
  2  0.072779
  3  0.273704
  4  0.156648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994715': 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) = 8343.41587016
delta logL = 2.71052147745

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  7.652e+00  5.534e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  1.952e+00  7.278e-02  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:  9.956e-01  1.566e-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.296e-01  2.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 915.71
Ra Dec: 226.103 10.498
Photon Index (Free Index): 1.95 +/- 0.07
Photon Flux (Free Index): 1.66e-06 +/- 1.37e-07
Energy Flux (Free Index): 8.60e-04 +/- 8.94e-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/994715/cmap_HighResolution_262656001_262915201_4FGL_J1504.4+1029_daily_bin90.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.81e-06', energy_flux2='8.60e-04', photon_flux_error='1.29e-07', dlogl='2.71e+00', energy_flux='7.33e-04', photon_flux2='1.66e-06', job_status='DONE', time_completed='2021-09-10 21:21:15.472477', photon_index_error2='0.07', photon_index2='1.95', ts='916.18', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='8.94e-05', EG='0.69', time_epoch_completed='1631334075.47', return_code='0', job_id='994715', GAL2='1.00', EG2='0.83', return_code2='0', energy_flux_error='5.23e-05', photon_flux_error2='1.37e-07', ts2='915.71', photon_index='2.12' WHERE bin_id='90' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:21:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 994715: <4FGL_J1504.4+1029_daily_bin90> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin90 226.103 10.4978 262656001 262915201 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 :                                   782.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             297.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            914 sec.

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

