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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1400
RA = 226.103, Dec = 10.4978
tmin = 602208001, tmax = 602467201
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='7903', job_status='RUN', time_executed='2021-09-10 21:48:34.677701', time_epoch_executed='1631335714.68' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7903

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7903/ft1_4FGL_J1504.4+1029_daily_bin1400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7903/ft2_4FGL_J1504.4+1029_daily_bin1400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7903/ft1_4FGL_J1504.4+1029_daily_bin1400.fits outfile=/scratch/kocevski/7903/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1400.fits ra=226.103 dec=10.4978 rad=12.0 tmin=602208001.0 tmax=602467201.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.21
user 4.95
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7903/ft1_filtered_4FGL_J1504.4+1029_daily_bin1400.fits evtable="EVENTS" scfile=/scratch/kocevski/7903/ft2_4FGL_J1504.4+1029_daily_bin1400.fits sctable="SC_DATA" expcube=/scratch/kocevski/7903/ltcube_602208001_602467201_4FGL_J1504.4+1029_daily_bin1400.fits outfile=/scratch/kocevski/7903/expmap_602208001_602467201_4FGL_J1504.4+1029_daily_bin1400.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/7903/ltcube_602208001_602467201_4FGL_J1504.4+1029_daily_bin1400.fits
.....................!
real 189.52
user 185.08
sys 4.06

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/7903/ft1_filtered_4FGL_J1504.4+1029_daily_bin1400.fits scfile=/scratch/kocevski/7903/ft2_4FGL_J1504.4+1029_daily_bin1400.fits outfile=/scratch/kocevski/7903/cmap_602208001_602467201_4FGL_J1504.4+1029_daily_bin1400.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/7903/ft1_filtered_4FGL_J1504.4+1029_daily_bin1400.fits scfile=/scratch/kocevski/7903/ft2_4FGL_J1504.4+1029_daily_bin1400.fits outfile=/scratch/kocevski/7903/cmap_HighResolution_602208001_602467201_4FGL_J1504.4+1029_daily_bin1400.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/7903/ft1_filtered_4FGL_J1504.4+1029_daily_bin1400.fits evtable="EVENTS" scfile=/scratch/kocevski/7903/ft2_4FGL_J1504.4+1029_daily_bin1400.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7903/Model_4FGL_J1504.4+1029_daily_bin1400.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/7903/ft1_filtered_4FGL_J1504.4+1029_daily_bin1400.fits....................!
real 54.95
user 53.74
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.356       1.0000         .10000E-03   10000.    
     2 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2096       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1706       1.0000         .10000E-03   10000.    
     5 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.9956       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10878E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.5991       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.9322       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13889E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10563E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11305E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.342       1.0000         .10000E-03   10000.    
    14 'norm      '    .44251       1.0000         .10000E-03   10000.    
    15 'norm      '    2.7351       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      '    8.2822       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .61585E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    50.459       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.0399       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10545E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.8490       1.0000         .10000E-03   10000.    
    26 'Prefactor '    37.669       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .72741       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2081       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=   7291.899     FROM MIGRAD    STATUS=CONVERGED    698 CALLS     3491 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.407        37.961        .69808E-06    .15591E-04
   2  norm          .10000E-03    7.9686        .20444E-07** at limit **
   3  Prefactor     3.2103        7.8471       -.31848E-06    .12185E-04
   4  Prefactor     7.1722        7.1973       -.31117E-06    .38336E-04
   5  norm          .10000E-03    1.3464       -.34609E-07** at limit **
   6  Prefactor     7.0933        148.33       -.22332E-04   -.13578E-05
   7  Prefactor     .10000E-03    17.387       -.48885E-06** at limit **
   8  norm          9.6006        11.694        .22597E-06    .28826E-04
   9  Prefactor     9.9419        18.693        .21510E-06    .16008E-04
  10  Prefactor     .10000E-03    48.683       -.22672E-05** at limit **
  11  Prefactor     .10000E-03    11.849       -.27697E-06** at limit **
  12  Prefactor     .10000E-03    25.156       -.13431E-05** at limit **
  13  Prefactor     10.285        40.669        .17222E-05    .66288E-05
  14  norm          .44256        .17750       -.42896E-09    .35344E-03
  15  norm          2.7351        2.1480        .27795E-07    .84497E-04
  16  norm          .10000E-03    2.2535       -.14794E-07** at limit **
  17  norm          .10000E-03    27.380       -.11025E-05** at limit **
  18  norm          8.2797        4.1000       -.33792E-07    .45481E-04
  19  Prefactor     .10000E-03    20.303        .16226E-05** at limit **
  20  Prefactor     .10000E-03    103.41       -.75272E-05** at limit **
  21  Prefactor     50.449        32.375       -.77044E-06   -.68678E-07
  22  Prefactor     3.0395        5.4060        .31701E-05   -.10627E-04
  23  Prefactor     .10000E-03    43.096        .32161E-05** at limit **
  24  Prefactor     .10000E-03    17.515       -.24990E-06** at limit **
  25  norm          1.8488        2.1877       -.21426E-07   -.27665E-04
  26  Prefactor     37.667        47.491        .43644E-08    .46384E-06
  27  Normalizat    .72685        .23665        .14733E-06    .67901E-04
  28  Prefactor     1.2083        .13463        .26859E-06    .20030E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.4073
  norm       = 0.0001
  Prefactor  = 3.21026
  Prefactor  = 7.17222
  norm       = 0.0001
  Prefactor  = 7.09327
  Prefactor  = 0.0001
  norm       = 9.60056
  Prefactor  = 9.94194
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2849
  norm       = 0.442565
  norm       = 2.73511
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.27966
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.4485
  Prefactor  = 3.03947
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.84878
  Prefactor  = 37.6666
  Normalizat = 0.726847
  Prefactor  = 1.20835
 **********
 **   18 **HESSE 
 **********

 FCN=   7291.899     FROM HESSE     STATUS=OK           519 CALLS     4010 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.407        38.197        .81167E-04   -1.4719    
   2  norm          .10000E-03    7.9695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.2103        7.7808        .22614E-03   -1.5350    
   4  Prefactor     7.1722        7.1566        .14980E-03   -1.5172    
   5  norm          .10000E-03    1.3660        .96736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.0933        148.70        .15168E-03   -1.5175    
   7  Prefactor     .10000E-03    17.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.6006        11.689        .12934E-03   -1.5088    
   9  Prefactor     9.9419        18.694        .12715E-03   -1.5077    
  10  Prefactor     .10000E-03    50.438        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.285        40.652        .12459E-03   -1.5066    
  14  norm          .44256        .17625        .21682E-04   -1.5575    
  15  norm          2.7351        2.1388        .10504E-03   -1.5377    
  16  norm          .10000E-03    2.2578        .12519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    27.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.2797        4.0979        .11723E-03   -1.5132    
  19  Prefactor     .10000E-03    20.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    106.45        .42100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     50.449        32.439        .56456E-04   -1.4286    
  22  Prefactor     3.0395        5.4128        .11636E-02   -1.5359    
  23  Prefactor     .10000E-03    43.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    17.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.8488        2.1723        .13358E-03   -1.5436    
  26  Prefactor     37.667        47.491        .65302E-04   -1.4480    
  27  Normalizat    .72685        .26974        .36966E-03   -1.0284    
  28  Prefactor     1.2083        .15540        .18144E-03   -.86075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17324e-10
Minuit parameter uncertainties:
  1  38.2354
  2  3.14187e-06
  3  7.78325
  4  7.15744
  5  1.04054e-06
  6  65.1384
  7  1.12787e-05
  8  11.6915
  9  18.7047
  10  2.96937e-05
  11  3.29322e-05
  12  6.16678e-05
  13  40.7614
  14  0.176248
  15  2.13889
  16  1.00789e-06
  17  2.61252e-07
  18  4.09807
  19  3.11404e-05
  20  0.000399691
  21  32.4507
  22  5.41363
  23  9.3459e-05
  24  1.22815e-05
  25  2.17239
  26  47.5386
  27  0.270232
  28  0.155456
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  4.426e-01  1.762e-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.208e+00  1.555e-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:  7.268e-01  2.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.56
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.08e-07 +/- 4.29e-08
Energy Flux (Fixed Index): 4.36e-05 +/- 1.74e-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) = 7291.70431924
delta logL = 0.19442953

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7291.69823984
delta logL = 0.200508927115

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42631       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3969       1.0000          .0000       5.0000    
     3 'Normalizat'    .69355       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2219       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=   7291.698     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .42626        2.5267        .45446E-02    .58762E-03
   2  alpha         2.3968        3.6196        .29992        .26587E-04
   3  Normalizat    .69350        .11836        .85271E-01    .36563E-04
   4  Prefactor     1.2220        .68080E-01    .34132E-01   -.40024E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.426265
  alpha      = 2.39677
  Normalizat = 0.693497
  Prefactor  = 1.22197
 **********
 **   18 **HESSE 
 **********

 FCN=   7291.698     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .59E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .42626        .17517        .20208E-04   -1.5577    
   2  alpha         2.3968        .44720        .11954E-01   -.41302E-01
   3  Normalizat    .69350        .25214        .37765E-03   -1.0415    
   4  Prefactor     1.2220        .15425        .18054E-03   -.85658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.91676e-13
Minuit parameter uncertainties:
  1  0.175172
  2  0.449623
  3  0.252559
  4  0.154308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7903': 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) = 7291.69823967
delta logL = 0.200509099332

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  4.263e-01  1.752e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.397e+00  4.496e-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.222e+00  1.543e-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.935e-01  2.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.96
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.40 +/- 0.45
Photon Flux (Free Index): 1.29e-07 +/- 5.73e-08
Energy Flux (Free Index): 3.89e-05 +/- 1.63e-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/7903/cmap_HighResolution_602208001_602467201_4FGL_J1504.4+1029_daily_bin1400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.08e-07', energy_flux2='3.89e-05', photon_flux_error='4.29e-08', dlogl='2.01e-01', energy_flux='4.36e-05', photon_flux2='1.29e-07', job_status='DONE', time_completed='2021-09-10 22:00:16.364419', photon_index_error2='0.45', photon_index2='2.40', ts='15.56', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='1.63e-05', EG='0.73', time_epoch_completed='1631336416.36', return_code='0', job_id='7903', GAL2='1.22', EG2='0.69', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='5.73e-08', ts2='15.96', photon_index='2.12' WHERE bin_id='1400' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:00:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 7903: <4FGL_J1504.4+1029_daily_bin1400> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1400> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 21:46:17 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:46:19 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:19 2021
Terminated at Fri Sep 10 22:00:17 2021
Results reported at Fri Sep 10 22:00:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1400 226.103 10.4978 602208001 602467201 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 :                                   662.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             294.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            840 sec.

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

