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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1388
RA = 226.103, Dec = 10.4978
tmin = 599097601, tmax = 599356801
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='7886', job_status='RUN', time_executed='2021-09-10 21:48:33.646070', time_epoch_executed='1631335713.65' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1388'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7886

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7886/ft1_4FGL_J1504.4+1029_daily_bin1388.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7886/ft2_4FGL_J1504.4+1029_daily_bin1388.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7886/ft1_4FGL_J1504.4+1029_daily_bin1388.fits outfile=/scratch/kocevski/7886/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1388.fits ra=226.103 dec=10.4978 rad=12.0 tmin=599097601.0 tmax=599356801.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.84
user 2.63
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/7886/ft2_4FGL_J1504.4+1029_daily_bin1388.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/7886/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1388.fits evtable="EVENTS" outfile="/scratch/kocevski/7886/ft1_filtered_4FGL_J1504.4+1029_daily_bin1388.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/7886/ft1_filtered_4FGL_J1504.4+1029_daily_bin1388.fits" evtable="EVENTS" scfile=/scratch/kocevski/7886/ft2_4FGL_J1504.4+1029_daily_bin1388.fits sctable="SC_DATA" outfile=/scratch/kocevski/7886/ltcube_599097601_599356801_4FGL_J1504.4+1029_daily_bin1388.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/7886/ft2_4FGL_J1504.4+1029_daily_bin1388.fits
.....................!
real 12.56
user 12.20
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7886/ft1_filtered_4FGL_J1504.4+1029_daily_bin1388.fits evtable="EVENTS" scfile=/scratch/kocevski/7886/ft2_4FGL_J1504.4+1029_daily_bin1388.fits sctable="SC_DATA" expcube=/scratch/kocevski/7886/ltcube_599097601_599356801_4FGL_J1504.4+1029_daily_bin1388.fits outfile=/scratch/kocevski/7886/expmap_599097601_599356801_4FGL_J1504.4+1029_daily_bin1388.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/7886/ltcube_599097601_599356801_4FGL_J1504.4+1029_daily_bin1388.fits
.....................!
real 190.58
user 185.57
sys 4.66

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/7886/ft1_filtered_4FGL_J1504.4+1029_daily_bin1388.fits scfile=/scratch/kocevski/7886/ft2_4FGL_J1504.4+1029_daily_bin1388.fits outfile=/scratch/kocevski/7886/cmap_599097601_599356801_4FGL_J1504.4+1029_daily_bin1388.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7886/ft1_filtered_4FGL_J1504.4+1029_daily_bin1388.fits scfile=/scratch/kocevski/7886/ft2_4FGL_J1504.4+1029_daily_bin1388.fits outfile=/scratch/kocevski/7886/cmap_HighResolution_599097601_599356801_4FGL_J1504.4+1029_daily_bin1388.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.471       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.2865       1.0000         .10000E-03   10000.    
     6 'Prefactor '    53.888       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.8538       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.0009       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.945       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.816       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.300       1.0000         .10000E-03   10000.    
    14 'norm      '    .96141       1.0000         .10000E-03   10000.    
    15 'norm      '    4.0482       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .48820       1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.935       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.5615       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.787       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.5599       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.853       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.3328       1.0000         .10000E-03   10000.    
    25 'norm      '    1.1964       1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.311       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .78204       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0522       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=   9768.196     FROM MIGRAD    STATUS=CONVERGED    664 CALLS     3473 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5069       -.10385E-06** at limit **
   2  norm          .10000E-03    5.9874        .92811E-07** at limit **
   3  Prefactor     10.470        6.6531       -.53620E-06   -.58657E-04
   4  Prefactor     .10000E-03    1.6803       -.42068E-07** at limit **
   5  norm          1.2865        2.2359       -.96057E-06   -.13891E-02
   6  Prefactor     53.866        55.769       -.26855E-04    .15401E-04
   7  Prefactor     .10000E-03    35.076        .26214E-06** at limit **
   8  norm          7.8524        14.292        .16382E-05   -.16770E-04
   9  Prefactor     .10000E-03    4.3874       -.10652E-07** at limit **
  10  Prefactor     6.9981        18.574       -.48830E-05   -.30194E-04
  11  Prefactor     12.944        9.9716        .15932E-06    .20998E-04
  12  Prefactor     27.812        20.676       -.30775E-05    .26369E-04
  13  Prefactor     13.298        24.597       -.18828E-05    .19626E-05
  14  norm          .96137        .19498       -.35469E-07    .12386E-02
  15  norm          4.0478        2.3948       -.23198E-06    .29521E-03
  16  norm          .10000E-03    2.4012       -.41516E-07** at limit **
  17  norm          .10000E-03    13.704       -.86337E-07** at limit **
  18  norm          .48616        1.9211       -.11355E-05   -.26202E-04
  19  Prefactor     37.930        32.371       -.60278E-05    .23254E-04
  20  Prefactor     3.5609        31.561       -.30476E-05   -.23347E-04
  21  Prefactor     12.782        28.147       -.94160E-05    .86089E-05
  22  Prefactor     4.5598        3.8834       -.15228E-06   -.83883E-04
  23  Prefactor     18.849        35.314       -.63660E-05    .10814E-04
  24  Prefactor     7.3346        21.119        .17586E-05   -.22816E-04
  25  norm          1.1964        1.3619       -.19186E-07    .69619E-05
  26  Prefactor     16.300        60.503       -.24004E-04    .11425E-06
  27  Normalizat    .78221        .19765        .69790E-05    .86189E-04
  28  Prefactor     1.0521        .11162        .52540E-06    .46612E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.4702
  Prefactor  = 0.0001
  norm       = 1.28649
  Prefactor  = 53.8659
  Prefactor  = 0.0001
  norm       = 7.85237
  Prefactor  = 0.0001
  Prefactor  = 6.99815
  Prefactor  = 12.9435
  Prefactor  = 27.8121
  Prefactor  = 13.2978
  norm       = 0.961374
  norm       = 4.04782
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.486156
  Prefactor  = 37.9298
  Prefactor  = 3.56087
  Prefactor  = 12.782
  Prefactor  = 4.55982
  Prefactor  = 18.8493
  Prefactor  = 7.33461
  norm       = 1.19641
  Prefactor  = 16.3005
  Normalizat = 0.782215
  Prefactor  = 1.05213
 **********
 **   18 **HESSE 
 **********

 FCN=   9768.196     FROM HESSE     STATUS=OK           531 CALLS     4004 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.9888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.470        6.6603        .12382E-03   -1.5061    
   4  Prefactor     .10000E-03    1.6878        .12500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2865        2.2234        .18929E-03   -1.5481    
   6  Prefactor     53.866        55.623        .54640E-04   -1.4239    
   7  Prefactor     .10000E-03    35.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.8524        14.237        .14308E-03   -1.5147    
   9  Prefactor     .10000E-03    4.3904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.9981        18.615        .15162E-03   -1.5179    
  11  Prefactor     12.944        9.9697        .11133E-03   -1.4988    
  12  Prefactor     27.812        20.666        .75960E-04   -1.4653    
  13  Prefactor     13.298        24.573        .10983E-03   -1.4978    
  14  norm          .96137        .19494        .18581E-04   -1.5512    
  15  norm          4.0478        2.3739        .10648E-03   -1.5306    
  16  norm          .10000E-03    2.4105        .14956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    13.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .48616        7.0362        .24965E-02   -1.5569    
  19  Prefactor     37.930        32.387        .65074E-04   -1.4475    
  20  Prefactor     3.5609        31.528        .21416E-03   -1.5331    
  21  Prefactor     12.782        28.178        .11202E-03   -1.4993    
  22  Prefactor     4.5598        3.8810        .17432E-03   -1.5281    
  23  Prefactor     18.849        35.297        .92243E-04   -1.4839    
  24  Prefactor     7.3346        21.152        .14812E-03   -1.5166    
  25  norm          1.1964        1.3475        .11981E-03   -1.5489    
  26  Prefactor     16.300        60.555        .99170E-04   -1.4900    
  27  Normalizat    .78221        .23057        .35297E-03   -1.0073    
  28  Prefactor     1.0521        .13278        .18682E-03   -.91012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96223e-08
Minuit parameter uncertainties:
  1  4.23119e-06
  2  5.06206e-07
  3  6.66079
  4  6.13092e-06
  5  2.22354
  6  55.6771
  7  0.000117145
  8  14.2436
  9  3.22633e-06
  10  18.6309
  11  9.97101
  12  20.6709
  13  24.5912
  14  0.194941
  15  2.37396
  16  4.40335e-06
  17  3.42736e-06
  18  3.69918
  19  32.4023
  20  21.2057
  21  28.2073
  22  3.88122
  23  35.3361
  24  21.1735
  25  1.34757
  26  60.7845
  27  0.230863
  28  0.132817
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  9.614e-01  1.949e-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.052e+00  1.328e-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.822e-01  2.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 72.89
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.34e-07 +/- 4.74e-08
Energy Flux (Fixed Index): 9.48e-05 +/- 1.92e-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) = 9767.38311633
delta logL = 0.812710191563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9767.33223922
delta logL = 0.863587309386

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .92421       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3935       1.0000          .0000       5.0000    
     3 'Normalizat'    .72923       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0715       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=   9767.332     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      215 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .92420        .43409         .0000        .16768E-02
   2  alpha         2.3935        .46951         .0000        .93435E-03
   3  Normalizat    .72922        .18819         .0000        .12223E-04
   4  Prefactor     1.0715        .11293         .0000        .15948E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.924201
  alpha      = 2.39351
  Normalizat = 0.729222
  Prefactor  = 1.07149
 **********
 **   18 **HESSE 
 **********

 FCN=   9767.332     FROM HESSE     STATUS=OK            29 CALLS      244 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .92420        .18784        .17284E-04   -1.5516    
   2  alpha         2.3935        .20829        .35810E-02   -.42610E-01
   3  Normalizat    .72922        .21647        .36393E-03   -1.0275    
   4  Prefactor     1.0715        .12985        .18517E-03   -.90383    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35305e-11
Minuit parameter uncertainties:
  1  0.187841
  2  0.208528
  3  0.216727
  4  0.129889
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7886': 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) = 9767.33223921
delta logL = 0.863587319109

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  9.242e-01  1.878e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.394e+00  2.085e-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.071e+00  1.299e-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.292e-01  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 74.50
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.39 +/- 0.21
Photon Flux (Free Index): 2.79e-07 +/- 6.21e-08
Energy Flux (Free Index): 8.44e-05 +/- 1.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/7886/cmap_HighResolution_599097601_599356801_4FGL_J1504.4+1029_daily_bin1388.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.34e-07', energy_flux2='8.44e-05', photon_flux_error='4.74e-08', dlogl='8.64e-01', energy_flux='9.48e-05', photon_flux2='2.79e-07', job_status='DONE', time_completed='2021-09-10 22:01:47.906730', photon_index_error2='0.21', photon_index2='2.39', ts='72.89', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.74e-05', EG='0.78', time_epoch_completed='1631336507.91', return_code='0', job_id='7886', GAL2='1.07', EG2='0.73', return_code2='0', energy_flux_error='1.92e-05', photon_flux_error2='6.21e-08', ts2='74.50', photon_index='2.12' WHERE bin_id='1388' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:01:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 7886: <4FGL_J1504.4+1029_daily_bin1388> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1388 226.103 10.4978 599097601 599356801 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 :                                   764.31 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             246.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            932 sec.

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

