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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1317
RA = 226.103, Dec = 10.4978
tmin = 580694401, tmax = 580953601
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='7782', job_status='RUN', time_executed='2021-09-10 21:49:18.382220', time_epoch_executed='1631335758.38' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1317'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7782

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7782/ft1_4FGL_J1504.4+1029_daily_bin1317.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7782/ft2_4FGL_J1504.4+1029_daily_bin1317.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7782/ft1_4FGL_J1504.4+1029_daily_bin1317.fits outfile=/scratch/kocevski/7782/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1317.fits ra=226.103 dec=10.4978 rad=12.0 tmin=580694401.0 tmax=580953601.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 2.80
user 2.61
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7782/ft1_filtered_4FGL_J1504.4+1029_daily_bin1317.fits evtable="EVENTS" scfile=/scratch/kocevski/7782/ft2_4FGL_J1504.4+1029_daily_bin1317.fits sctable="SC_DATA" expcube=/scratch/kocevski/7782/ltcube_580694401_580953601_4FGL_J1504.4+1029_daily_bin1317.fits outfile=/scratch/kocevski/7782/expmap_580694401_580953601_4FGL_J1504.4+1029_daily_bin1317.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/7782/ltcube_580694401_580953601_4FGL_J1504.4+1029_daily_bin1317.fits
.....................!
real 189.38
user 184.96
sys 4.05

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/7782/ft1_filtered_4FGL_J1504.4+1029_daily_bin1317.fits scfile=/scratch/kocevski/7782/ft2_4FGL_J1504.4+1029_daily_bin1317.fits outfile=/scratch/kocevski/7782/cmap_580694401_580953601_4FGL_J1504.4+1029_daily_bin1317.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/7782/ft1_filtered_4FGL_J1504.4+1029_daily_bin1317.fits scfile=/scratch/kocevski/7782/ft2_4FGL_J1504.4+1029_daily_bin1317.fits outfile=/scratch/kocevski/7782/cmap_HighResolution_580694401_580953601_4FGL_J1504.4+1029_daily_bin1317.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.54
user 0.41
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.311       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.3184       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13855E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.6536       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.170       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11260E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .56339       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.5706       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .73293E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    45.946       1.0000         .10000E-03   10000.    
    21 'Prefactor '    59.365       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.531       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.0106       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .18175E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.9271       1.0000         .10000E-03   10000.    
    26 'Prefactor '    41.755       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .57725       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.3274       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=   7242.030     FROM MIGRAD    STATUS=CONVERGED    694 CALLS     3488 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.706        .32440E-06** at limit **
   2  norm          .10000E-03    8.1709        .34025E-06** at limit **
   3  Prefactor     14.304        7.8910       -.21265E-07    .19657E-04
   4  Prefactor     .10000E-03    2.9134        .55053E-06** at limit **
   5  norm          1.3168        2.3039       -.12238E-05   -.60230E-03
   6  Prefactor     .10000E-03    21.235        .26229E-06** at limit **
   7  Prefactor     .10000E-03    13.196        .97805E-06** at limit **
   8  norm          .10000E-03    7.9571        .58130E-06** at limit **
   9  Prefactor     .10000E-03    17.432        .68397E-06** at limit **
  10  Prefactor     7.5277        33.712        .62375E-06    .30328E-04
  11  Prefactor     16.165        15.617       -.24828E-08    .37569E-04
  12  Prefactor     .10000E-03    7.2409        .19286E-06** at limit **
  13  Prefactor     .10000E-03    43.763        .50034E-06** at limit **
  14  norm          .56351        .21588       -.49140E-08    .12840E-02
  15  norm          .10000E-03    1.7415       -.37865E-06** at limit **
  16  norm          .10000E-03    3.1790        .31059E-07** at limit **
  17  norm          .10000E-03    11.512       -.97907E-07** at limit **
  18  norm          2.5709        2.9370       -.29787E-07    .58708E-04
  19  Prefactor     .10001E-03    157.31        .29361E-04** at limit **
  20  Prefactor     46.007        71.160       -.23460E-05   -.23888E-04
  21  Prefactor     59.421        39.943        .33643E-06    .36277E-04
  22  Prefactor     12.517        10.097       -.23939E-06    .15940E-04
  23  Prefactor     3.9691        97.366        .24470E-05    .33481E-04
  24  Prefactor     .10001E-03    161.76       -.69450E-05** at limit **
  25  norm          1.9288        3.3512       -.10169E-05   -.25391E-03
  26  Prefactor     41.830        77.146       -.37137E-05   -.63418E-04
  27  Normalizat    .57751        .28382       -.51729E-05    .74628E-04
  28  Prefactor     1.3273        .16554        .25559E-05   -.28223E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.3044
  Prefactor  = 0.0001
  norm       = 1.31683
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.52771
  Prefactor  = 16.1646
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.563508
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.5709
  Prefactor  = 0.000100005
  Prefactor  = 46.0073
  Prefactor  = 59.4209
  Prefactor  = 12.517
  Prefactor  = 3.96912
  Prefactor  = 0.000100008
  norm       = 1.92878
  Prefactor  = 41.8303
  Normalizat = 0.577515
  Prefactor  = 1.32734
 **********
 **   18 **HESSE 
 **********

 FCN=   7242.030     FROM HESSE     STATUS=OK           519 CALLS     4007 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.1759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.304        7.8769        .10588E-03   -1.4951    
   4  Prefactor     .10000E-03    2.9678        .14206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.3168        2.3016        .16701E-03   -1.5478    
   6  Prefactor     .10000E-03    21.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.9750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.5277        33.315        .14495E-03   -1.5159    
  11  Prefactor     16.165        15.590        .99601E-04   -1.4904    
  12  Prefactor     .10000E-03    7.2492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    43.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .56351        .21373        .23030E-04   -1.5558    
  15  norm          .10000E-03    1.7637        .10950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.1902        .14817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.5709        2.9363        .15184E-03   -1.5387    
  19  Prefactor     .10001E-03    152.70        .72987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     46.007        71.045        .59151E-04   -1.4350    
  21  Prefactor     59.421        39.828        .52072E-04   -1.4165    
  22  Prefactor     12.517        10.090        .11316E-03   -1.5000    
  23  Prefactor     3.9691        97.541        .20137E-03   -1.5309    
  24  Prefactor     .10001E-03    165.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.9288        3.3351        .19695E-03   -1.5430    
  26  Prefactor     41.830        77.407        .31018E-03   -1.4414    
  27  Normalizat    .57751        .28725        .43255E-03   -1.0895    
  28  Prefactor     1.3273        .17040        .18382E-03   -.82498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.99103e-10
Minuit parameter uncertainties:
  1  3.13078e-05
  2  2.88144e-05
  3  7.87743
  4  3.4038e-05
  5  2.30179
  6  3.14103e-05
  7  8.66353e-05
  8  2.65141e-05
  9  0.000110414
  10  31.7016
  11  15.5937
  12  2.01659e-05
  13  9.26816e-05
  14  0.213734
  15  1.07616e-06
  16  1.06088e-06
  17  1.31407e-05
  18  2.93648
  19  0.00181603
  20  71.1761
  21  39.8461
  22  10.0913
  23  39.424
  24  0.00237252
  25  3.33544
  26  77.5938
  27  0.287994
  28  0.170469
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  5.635e-01  2.137e-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.327e+00  1.705e-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:  5.775e-01  2.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.85
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.37e-07 +/- 5.20e-08
Energy Flux (Fixed Index): 5.56e-05 +/- 2.11e-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) = 7241.90797279
delta logL = 0.122219008055

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7241.89170138
delta logL = 0.138490417956

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .53912       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9359       1.0000          .0000       5.0000    
     3 'Normalizat'    .60409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3175       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=   7241.892     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      202 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .53914        .21612        .52332E-02    .10530E-03
   2  alpha         1.9359        .32112        .25335       -.40104E-04
   3  Normalizat    .60408        .24476        .95584E-01    .28244E-04
   4  Prefactor     1.3175        .15142        .32311E-01    .52890E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.539138
  alpha      = 1.93592
  Normalizat = 0.60408
  Prefactor  = 1.31753
 **********
 **   18 **HESSE 
 **********

 FCN=   7241.892     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .84E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .53914        .22012        .23250E-04   -1.5561    
   2  alpha         1.9359        .35082        .10472E-01   -.22759    
   3  Normalizat    .60408        .27077        .42356E-03   -1.0781    
   4  Prefactor     1.3175        .16769        .18443E-03   -.82787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.41853e-12
Minuit parameter uncertainties:
  1  0.220115
  2  0.352044
  3  0.271365
  4  0.167754
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7782': 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) = 7241.89170137
delta logL = 0.138490427868

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  5.391e-01  2.201e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  1.936e+00  3.520e-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.318e+00  1.678e-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.041e-01  2.714e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.08
Ra Dec: 226.103 10.498
Photon Index (Free Index): 1.94 +/- 0.35
Photon Flux (Free Index): 1.16e-07 +/- 5.96e-08
Energy Flux (Free Index): 6.15e-05 +/- 2.74e-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/7782/cmap_HighResolution_580694401_580953601_4FGL_J1504.4+1029_daily_bin1317.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.37e-07', energy_flux2='6.15e-05', photon_flux_error='5.20e-08', dlogl='1.38e-01', energy_flux='5.56e-05', photon_flux2='1.16e-07', job_status='DONE', time_completed='2021-09-10 22:01:27.033028', photon_index_error2='0.35', photon_index2='1.94', ts='16.85', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', energy_flux_error2='2.74e-05', EG='0.58', time_epoch_completed='1631336487.03', return_code='0', job_id='7782', GAL2='1.32', EG2='0.60', return_code2='0', energy_flux_error='2.11e-05', photon_flux_error2='5.96e-08', ts2='17.08', photon_index='2.12' WHERE bin_id='1317' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:01:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 7782: <4FGL_J1504.4+1029_daily_bin1317> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1317 226.103 10.4978 580694401 580953601 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 :                                   641.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             232.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            919 sec.

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

