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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin2
RA = 226.103, Dec = 10.4978
tmin = 239846401, tmax = 240105601
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='993432', job_status='RUN', time_executed='2021-09-10 21:01:48.943935', time_epoch_executed='1631332908.94' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993432

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993432/ft1_4FGL_J1504.4+1029_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993432/ft2_4FGL_J1504.4+1029_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993432/ft1_4FGL_J1504.4+1029_daily_bin2.fits outfile=/scratch/kocevski/993432/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin2.fits ra=226.103 dec=10.4978 rad=12.0 tmin=239846401.0 tmax=240105601.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.47
user 1.26
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993432/ft2_4FGL_J1504.4+1029_daily_bin2.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/993432/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin2.fits evtable="EVENTS" outfile="/scratch/kocevski/993432/ft1_filtered_4FGL_J1504.4+1029_daily_bin2.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993432/ft1_filtered_4FGL_J1504.4+1029_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/993432/ft2_4FGL_J1504.4+1029_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/993432/ltcube_239846401_240105601_4FGL_J1504.4+1029_daily_bin2.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/993432/ft2_4FGL_J1504.4+1029_daily_bin2.fits
.....................!
real 12.82
user 12.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993432/ft1_filtered_4FGL_J1504.4+1029_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/993432/ft2_4FGL_J1504.4+1029_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/993432/ltcube_239846401_240105601_4FGL_J1504.4+1029_daily_bin2.fits outfile=/scratch/kocevski/993432/expmap_239846401_240105601_4FGL_J1504.4+1029_daily_bin2.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/993432/ltcube_239846401_240105601_4FGL_J1504.4+1029_daily_bin2.fits
.....................!
real 189.53
user 185.11
sys 3.95

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/993432/ft1_filtered_4FGL_J1504.4+1029_daily_bin2.fits scfile=/scratch/kocevski/993432/ft2_4FGL_J1504.4+1029_daily_bin2.fits outfile=/scratch/kocevski/993432/cmap_239846401_240105601_4FGL_J1504.4+1029_daily_bin2.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0064       1.0000         .10000E-03   10000.    
     2 'norm      '    13.981       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12149E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.7969       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.8109       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    11.806       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4867       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    65.408       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.9239       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    97.888       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .97988       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .93747       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=   10573.20     FROM MIGRAD    STATUS=CONVERGED    652 CALLS     3443 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9872        34.780       -.36399E-04   -.50855E-05
   2  norm          13.970        22.576       -.54277E-05    .45297E-04
   3  Prefactor     .10000E-03    2.2760       -.27475E-07** at limit **
   4  Prefactor     .10000E-03    3.5565       -.13585E-06** at limit **
   5  norm          .10000E-03    2.6382       -.13273E-06** at limit **
   6  Prefactor     .10000E-03    27.215        .19229E-04** at limit **
   7  Prefactor     .10000E-03    39.037       -.13113E-04** at limit **
   8  norm          7.8071        12.711       -.16871E-05   -.66831E-03
   9  Prefactor     9.8100        18.589       -.14557E-05    .32379E-04
  10  Prefactor     .10000E-03    7.1342        .36360E-05** at limit **
  11  Prefactor     .10000E-03    9.8472        .14347E-05** at limit **
  12  Prefactor     .10000E-03    37.648       -.96320E-05** at limit **
  13  Prefactor     .10000E-03    16.701       -.10613E-04** at limit **
  14  norm          11.806        .61280       -.47685E-07    .10954E-02
  15  norm          1.4868        1.8245       -.71466E-06   -.13385E-02
  16  norm          .10000E-03    4.8968       -.16316E-06** at limit **
  17  norm          .10000E-03    19.424       -.59742E-05** at limit **
  18  norm          .10000E-03    1.0508       -.19689E-07** at limit **
  19  Prefactor     65.403        43.333       -.60228E-05    .15912E-04
  20  Prefactor     .10000E-03    11.919        .31775E-05** at limit **
  21  Prefactor     .10000E-03    11.102        .43887E-05** at limit **
  22  Prefactor     2.9238        3.8141        .11332E-05   -.71999E-03
  23  Prefactor     .10000E-03    33.207        .14126E-04** at limit **
  24  Prefactor     .10000E-03    8.0649       -.72442E-05** at limit **
  25  norm          .10000E-03    .95817        .96493E-08** at limit **
  26  Prefactor     97.826        85.548       -.58928E-04    .51328E-05
  27  Normalizat    .98000        .22326        .59282E-05   -.13894E-04
  28  Prefactor     .93739        .12468        .11062E-05    .23510E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.98717
  norm       = 13.9701
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 7.80707
  Prefactor  = 9.80997
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.8055
  norm       = 1.48683
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 65.4027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.92385
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 97.8257
  Normalizat = 0.980005
  Prefactor  = 0.937394
 **********
 **   18 **HESSE 
 **********

 FCN=   10573.20     FROM HESSE     STATUS=OK           509 CALLS     3952 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9872        34.920        .17972E-03   -1.5261    
   2  norm          13.970        22.537        .10712E-03   -1.4960    
   3  Prefactor     .10000E-03    2.2798        .15149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.5841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.6990        .16303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    38.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.8071        12.676        .71802E-03   -1.5149    
   9  Prefactor     9.8100        18.599        .12793E-03   -1.5081    
  10  Prefactor     .10000E-03    7.1376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.9100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    38.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          11.806        .61405        .17438E-04   -1.5021    
  15  norm          1.4868        1.8075        .14726E-03   -1.5464    
  16  norm          .10000E-03    4.9594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    19.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.0547        .10291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     65.403        43.431        .49623E-04   -1.4089    
  20  Prefactor     .10000E-03    11.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.9238        3.8020        .22160E-03   -1.5366    
  23  Prefactor     .10000E-03    33.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.0696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .96475        .98285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     97.826        85.592        .20315E-03   -1.3727    
  27  Normalizat    .98000        .26507        .41328E-03   -.93703    
  28  Prefactor     .93739        .14880        .24255E-03   -.94846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86567e-09
Minuit parameter uncertainties:
  1  26.4149
  2  22.5507
  3  6.43716e-06
  4  2.4794e-05
  5  2.28277e-05
  6  2.73753e-05
  7  0.000331754
  8  12.6806
  9  18.6104
  10  5.97617e-06
  11  3.38681e-05
  12  6.88352e-05
  13  1.42531e-05
  14  0.614048
  15  1.80754
  16  4.82436e-06
  17  5.6487e-06
  18  3.30945e-06
  19  43.4525
  20  1.74953e-05
  21  1.98361e-05
  22  3.80234
  23  0.000112351
  24  9.94473e-06
  25  1.82993e-06
  26  85.6999
  27  0.265425
  28  0.148861
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.181e+01  6.140e-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:  9.374e-01  1.489e-01  0.000e+00  1.000e+01 ( 1.000e+00)
470        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
471        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
468   Normalization:  9.800e-01  2.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1835.99
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.87e-06 +/- 1.49e-07
Energy Flux (Fixed Index): 1.16e-03 +/- 6.05e-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) = 10561.7271222
delta logL = 11.4699086448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10561.7238964
delta logL = 11.4731344257

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.303       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8711       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2368       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83886       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=   10561.72     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      214 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.303        .65354        .28551E-02   -.12750E-03
   2  alpha         1.8711        .51274E-01    .42931E-01   -.71075E-05
   3  Normalizat    1.2370        .21938        .85378E-01    .20507E-04
   4  Prefactor     .83874        .12279        .44221E-01    .16298E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.3032
  alpha      = 1.87109
  Normalizat = 1.23699
  Prefactor  = 0.838745
 **********
 **   18 **HESSE 
 **********

 FCN=   10561.72     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .11E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.303        .65238        .18196E-04   -1.5006    
   2  alpha         1.8711        .51439E-01    .20679E-03   -.25430    
   3  Normalizat    1.2370        .26367        .37805E-03   -.85467    
   4  Prefactor     .83874        .14739        .25536E-03   -.98316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13436e-16
Minuit parameter uncertainties:
  1  0.652384
  2  0.0514433
  3  0.263958
  4  0.14746
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993432': 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) = 10561.723896
delta logL = 11.4731348846

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.230e+01  6.524e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  1.871e+00  5.144e-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:  8.387e-01  1.475e-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.237e+00  2.640e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1846.00
Ra Dec: 226.103 10.498
Photon Index (Free Index): 1.87 +/- 0.05
Photon Flux (Free Index): 2.55e-06 +/- 1.52e-07
Energy Flux (Free Index): 1.51e-03 +/- 1.22e-04

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/993432/cmap_HighResolution_239846401_240105601_4FGL_J1504.4+1029_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.87e-06', energy_flux2='1.51e-03', photon_flux_error='1.49e-07', dlogl='1.15e+01', energy_flux='1.16e-03', photon_flux2='2.55e-06', job_status='DONE', time_completed='2021-09-10 21:16:10.156360', photon_index_error2='0.05', photon_index2='1.87', ts='1835.99', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.22e-04', EG='0.98', time_epoch_completed='1631333770.16', return_code='0', job_id='993432', GAL2='0.84', EG2='1.24', return_code2='0', energy_flux_error='6.05e-05', photon_flux_error2='1.52e-07', ts2='1846.00', photon_index='2.12' WHERE bin_id='2' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:16:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 993432: <4FGL_J1504.4+1029_daily_bin2> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin2> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 21:01:12 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:01:14 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:01:14 2021
Terminated at Fri Sep 10 21:16:10 2021
Results reported at Fri Sep 10 21:16:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin2 226.103 10.4978 239846401 240105601 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 :                                   858.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            898 sec.

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

