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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1270
RA = 226.103, Dec = 10.4978
tmin = 568512001, tmax = 568771201
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='5971', job_status='RUN', time_executed='2021-09-10 21:43:34.470725', time_epoch_executed='1631335414.47' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1270'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5971

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/5971/ft1_4FGL_J1504.4+1029_daily_bin1270.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/5971/ft2_4FGL_J1504.4+1029_daily_bin1270.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5971/ft1_4FGL_J1504.4+1029_daily_bin1270.fits outfile=/scratch/kocevski/5971/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1270.fits ra=226.103 dec=10.4978 rad=12.0 tmin=568512001.0 tmax=568771201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.56
user 3.30
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5971/ft1_filtered_4FGL_J1504.4+1029_daily_bin1270.fits evtable="EVENTS" scfile=/scratch/kocevski/5971/ft2_4FGL_J1504.4+1029_daily_bin1270.fits sctable="SC_DATA" expcube=/scratch/kocevski/5971/ltcube_568512001_568771201_4FGL_J1504.4+1029_daily_bin1270.fits outfile=/scratch/kocevski/5971/expmap_568512001_568771201_4FGL_J1504.4+1029_daily_bin1270.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/5971/ltcube_568512001_568771201_4FGL_J1504.4+1029_daily_bin1270.fits
.....................!
real 191.40
user 186.95
sys 4.09

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/5971/ft1_filtered_4FGL_J1504.4+1029_daily_bin1270.fits scfile=/scratch/kocevski/5971/ft2_4FGL_J1504.4+1029_daily_bin1270.fits outfile=/scratch/kocevski/5971/cmap_568512001_568771201_4FGL_J1504.4+1029_daily_bin1270.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/5971/ft1_filtered_4FGL_J1504.4+1029_daily_bin1270.fits scfile=/scratch/kocevski/5971/ft2_4FGL_J1504.4+1029_daily_bin1270.fits outfile=/scratch/kocevski/5971/cmap_HighResolution_568512001_568771201_4FGL_J1504.4+1029_daily_bin1270.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.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.601       1.0000         .10000E-03   10000.    
     2 'norm      '    19.488       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4108       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0531       1.0000         .10000E-03   10000.    
     5 'norm      '    1.0807       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.5870       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.710       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.7161       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.128       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0366       1.0000         .10000E-03   10000.    
    15 'norm      '    .25583E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    1.5146       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.1514       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.518       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12723E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.1591       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.7033       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .74072       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=   9026.263     FROM MIGRAD    STATUS=CONVERGED    678 CALLS     3518 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.607        31.760        .52048E-05   -.65910E-05
   2  norm          19.489        19.026       -.56180E-06   -.14728E-04
   3  Prefactor     1.4099        6.2791       -.55589E-06   -.81387E-04
   4  Prefactor     3.0536        4.7865       -.31091E-06   -.47725E-04
   5  norm          1.0809        2.5151        .64158E-07   -.11604E-03
   6  Prefactor     .10000E-03    52.295        .24232E-04** at limit **
   7  Prefactor     .10000E-03    13.606        .73135E-05** at limit **
   8  norm          2.5896        12.925       -.12426E-06   -.39241E-03
   9  Prefactor     17.713        26.011        .76205E-06   -.43763E-05
  10  Prefactor     .10000E-03    8.4117        .28947E-06** at limit **
  11  Prefactor     8.7173        18.089       -.40277E-06   -.25060E-04
  12  Prefactor     11.127        15.621       -.94887E-07   -.20050E-04
  13  Prefactor     .10000E-03    42.667        .97522E-05** at limit **
  14  norm          1.0366        .21605        .27648E-08    .24509E-03
  15  norm          .22781E-01    .85586       -.86899E-07   -.16759E-03
  16  norm          1.5191        2.4592       -.13056E-06   -.25755E-02
  17  norm          .10000E-03    13.081       -.10093E-04** at limit **
  18  norm          3.1522        4.2743        .77154E-06   -.17120E-02
  19  Prefactor     .10000E-03    13.474        .34809E-05** at limit **
  20  Prefactor     27.517        39.551       -.31741E-06    .27318E-05
  21  Prefactor     .10000E-03    71.375       -.28381E-04** at limit **
  22  Prefactor     .10000E-03    3.0358        .27863E-07** at limit **
  23  Prefactor     .10000E-03    42.071        .78603E-05** at limit **
  24  Prefactor     .10000E-03    7.0953       -.99680E-07** at limit **
  25  norm          4.1589        2.5705        .13098E-07    .41728E-04
  26  Prefactor     .10000E-03    35.355       -.19260E-04** at limit **
  27  Normalizat    1.7031        .21342       -.51989E-06    .12228E-03
  28  Prefactor     .74076        .11792        .17036E-06    .53125E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.6073
  norm       = 19.4891
  Prefactor  = 1.40993
  Prefactor  = 3.05365
  norm       = 1.08094
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.58959
  Prefactor  = 17.7129
  Prefactor  = 0.0001
  Prefactor  = 8.7173
  Prefactor  = 11.1271
  Prefactor  = 0.0001
  norm       = 1.03662
  norm       = 0.0227809
  norm       = 1.51908
  norm       = 0.0001
  norm       = 3.15219
  Prefactor  = 0.0001
  Prefactor  = 27.5169
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.1589
  Prefactor  = 0.0001
  Normalizat = 1.70311
  Prefactor  = 0.740758
 **********
 **   18 **HESSE 
 **********

 FCN=   9026.263     FROM HESSE     STATUS=OK           531 CALLS     4049 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.607        31.958        .10140E-03   -1.4918    
   2  norm          19.489        19.024        .90728E-04   -1.4825    
   3  Prefactor     1.4099        6.2141        .36473E-03   -1.5470    
   4  Prefactor     3.0536        4.7426        .23219E-03   -1.5358    
   5  norm          1.0809        2.4665        .22200E-03   -1.5500    
   6  Prefactor     .10000E-03    52.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.5896        13.594        .12685E-02   -1.5386    
   9  Prefactor     17.713        26.017        .95172E-04   -1.4866    
  10  Prefactor     .10000E-03    8.4248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.7173        18.125        .13577E-03   -1.5117    
  12  Prefactor     11.127        15.603        .12010E-03   -1.5041    
  13  Prefactor     .10000E-03    42.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0366        .21644        .19280E-04   -1.5504    
  15  norm          .22781E-01    3.6974        .27000E-01   -1.5678    
  16  norm          1.5191        4.4729        .16844E-02   -1.5461    
  17  norm          .10000E-03    13.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.1522        4.9159        .11417E-02   -1.5353    
  19  Prefactor     .10000E-03    13.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     27.517        39.559        .76370E-04   -1.4658    
  21  Prefactor     .10000E-03    71.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.0981        .16161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    42.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.0981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.1589        2.5720        .11649E-03   -1.5300    
  26  Prefactor     .10000E-03    35.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.7031        .26271        .28296E-03   -.72220    
  28  Prefactor     .74076        .14396        .23192E-03   -1.0195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30142e-08
Minuit parameter uncertainties:
  1  31.9935
  2  19.03
  3  5.92078
  4  4.74314
  5  2.46674
  6  6.00737e-05
  7  1.21612e-05
  8  11.8706
  9  26.0335
  10  7.79677e-07
  11  18.1359
  12  15.6084
  13  3.0612e-05
  14  0.216444
  15  0.579207
  16  4.47388
  17  2.40574e-05
  18  4.9165
  19  1.11036e-05
  20  39.5969
  21  0.000180313
  22  7.41398e-07
  23  3.44328e-05
  24  3.55612e-07
  25  2.5721
  26  6.74001e-05
  27  0.262926
  28  0.144032
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.037e+00  2.164e-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:  7.408e-01  1.440e-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.703e+00  2.629e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 78.43
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.52e-07 +/- 5.27e-08
Energy Flux (Fixed Index): 1.02e-04 +/- 2.13e-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) = 9025.9872272
delta logL = 0.275853817913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9025.96792183
delta logL = 0.295159181693

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0364       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9636       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7364       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72761       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=   9025.968     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      210 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0363        .22836        .44431E-02   -.82849E-03
   2  alpha         1.9637        .20638        .17276       -.74449E-04
   3  Normalizat    1.7363        .20574        .63530E-01   -.27962E-04
   4  Prefactor     .72767        .11691        .42768E-01    .38746E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.03627
  alpha      = 1.96372
  Normalizat = 1.73629
  Prefactor  = 0.727668
 **********
 **   18 **HESSE 
 **********

 FCN=   9025.968     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0363        .22014        .19635E-04   -1.5504    
   2  alpha         1.9637        .20525        .74180E-02   -.21619    
   3  Normalizat    1.7363        .24859        .28096E-03   -.71338    
   4  Prefactor     .72767        .14068        .23379E-03   -1.0245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9527e-11
Minuit parameter uncertainties:
  1  0.22014
  2  0.205492
  3  0.248769
  4  0.140753
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5971': 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) = 9025.96792149
delta logL = 0.295159529534

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.036e+00  2.201e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  1.964e+00  2.055e-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:  7.277e-01  1.408e-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.736e+00  2.488e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 78.91
Ra Dec: 226.103 10.498
Photon Index (Free Index): 1.96 +/- 0.21
Photon Flux (Free Index): 2.26e-07 +/- 5.83e-08
Energy Flux (Free Index): 1.15e-04 +/- 3.13e-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/5971/cmap_HighResolution_568512001_568771201_4FGL_J1504.4+1029_daily_bin1270.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.52e-07', energy_flux2='1.15e-04', photon_flux_error='5.27e-08', dlogl='2.95e-01', energy_flux='1.02e-04', photon_flux2='2.26e-07', job_status='DONE', time_completed='2021-09-10 21:55:57.381514', photon_index_error2='0.21', photon_index2='1.96', ts='78.43', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='3.13e-05', EG='1.70', time_epoch_completed='1631336157.38', return_code='0', job_id='5971', GAL2='0.73', EG2='1.74', return_code2='0', energy_flux_error='2.13e-05', photon_flux_error2='5.83e-08', ts2='78.91', photon_index='2.12' WHERE bin_id='1270' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:55:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 5971: <4FGL_J1504.4+1029_daily_bin1270> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1270 226.103 10.4978 568512001 568771201 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 :                                   739.25 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             308.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            883 sec.

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

