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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1177
RA = 226.103, Dec = 10.4978
tmin = 544406401, tmax = 544665601
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='5837', job_status='RUN', time_executed='2021-09-10 21:41:23.011369', time_epoch_executed='1631335283.01' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5837

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/5837/ft1_4FGL_J1504.4+1029_daily_bin1177.fits


Retrieving the FT1 file...

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

Retrieving 36 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/5837/ft2_4FGL_J1504.4+1029_daily_bin1177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5837/ft1_4FGL_J1504.4+1029_daily_bin1177.fits outfile=/scratch/kocevski/5837/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1177.fits ra=226.103 dec=10.4978 rad=12.0 tmin=544406401.0 tmax=544665601.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 7.69
user 7.37
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/5837/ft1_filtered_4FGL_J1504.4+1029_daily_bin1177.fits" evtable="EVENTS" scfile=/scratch/kocevski/5837/ft2_4FGL_J1504.4+1029_daily_bin1177.fits sctable="SC_DATA" outfile=/scratch/kocevski/5837/ltcube_544406401_544665601_4FGL_J1504.4+1029_daily_bin1177.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/5837/ft2_4FGL_J1504.4+1029_daily_bin1177.fits
.....................!
real 7.91
user 7.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5837/ft1_filtered_4FGL_J1504.4+1029_daily_bin1177.fits evtable="EVENTS" scfile=/scratch/kocevski/5837/ft2_4FGL_J1504.4+1029_daily_bin1177.fits sctable="SC_DATA" expcube=/scratch/kocevski/5837/ltcube_544406401_544665601_4FGL_J1504.4+1029_daily_bin1177.fits outfile=/scratch/kocevski/5837/expmap_544406401_544665601_4FGL_J1504.4+1029_daily_bin1177.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/5837/ltcube_544406401_544665601_4FGL_J1504.4+1029_daily_bin1177.fits
.....................!
real 190.32
user 185.29
sys 4.59

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/5837/ft1_filtered_4FGL_J1504.4+1029_daily_bin1177.fits scfile=/scratch/kocevski/5837/ft2_4FGL_J1504.4+1029_daily_bin1177.fits outfile=/scratch/kocevski/5837/cmap_544406401_544665601_4FGL_J1504.4+1029_daily_bin1177.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/5837/ft1_filtered_4FGL_J1504.4+1029_daily_bin1177.fits scfile=/scratch/kocevski/5837/ft2_4FGL_J1504.4+1029_daily_bin1177.fits outfile=/scratch/kocevski/5837/cmap_HighResolution_544406401_544665601_4FGL_J1504.4+1029_daily_bin1177.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    60.383       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5225       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.5474       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10197E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5702       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .80567       1.0000         .10000E-03   10000.    
    15 'norm      '    3.8859       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.7477       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.9266       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .69246E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.7226       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .81864       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1493       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=   5346.955     FROM MIGRAD    STATUS=CONVERGED    679 CALLS     3462 TOTAL
                     EDM=   .55E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.516       -.29262E-07** at limit **
   2  norm          60.390        46.187       -.71110E-07    .10838E-04
   3  Prefactor     .10000E-03    7.3341       -.70813E-07** at limit **
   4  Prefactor     .10000E-03    4.6037       -.32397E-07** at limit **
   5  norm          1.5229        3.9651        .74597E-07    .70698E-06
   6  Prefactor     7.6325        164.71       -.20154E-04   -.56800E-06
   7  Prefactor     .10000E-03    84.976        .16778E-05** at limit **
   8  norm          .10000E-03    55.639       -.80342E-06** at limit **
   9  Prefactor     .10000E-03    23.490       -.19050E-06** at limit **
  10  Prefactor     .10000E-03    15.193        .47988E-06** at limit **
  11  Prefactor     1.5738        54.862        .97646E-05    .44986E-05
  12  Prefactor     .10000E-03    18.701        .19128E-06** at limit **
  13  Prefactor     .10000E-03    19.753       -.18142E-06** at limit **
  14  norm          .80571        .25155        .21483E-08    .57664E-04
  15  norm          3.8867        2.7712        .44774E-07    .42309E-04
  16  norm          .10000E-03    3.1102       -.39186E-07** at limit **
  17  norm          .10000E-03    38.641        .20612E-05** at limit **
  18  norm          1.7477        3.5143       -.60164E-07   -.91860E-05
  19  Prefactor     .10000E-03    24.139       -.24000E-06** at limit **
  20  Prefactor     .10000E-03    19.347       -.28905E-06** at limit **
  21  Prefactor     .10000E-03    49.487       -.48531E-06** at limit **
  22  Prefactor     5.9274        5.6138        .38278E-06   -.21271E-05
  23  Prefactor     .10000E-03    229.34        .68073E-05** at limit **
  24  Prefactor     .10000E-03    13.357       -.42263E-06** at limit **
  25  norm          6.7214        3.7460       -.23173E-07   -.24503E-04
  26  Prefactor     .10000E-03    61.680       -.18700E-05** at limit **
  27  Normalizat    .81845        .28820       -.14619E-05    .65751E-05
  28  Prefactor     1.1494        .16031        .94669E-06   -.77690E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 60.3898
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.52286
  Prefactor  = 7.63248
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.57382
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.805709
  norm       = 3.88667
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.74768
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.92741
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 6.72141
  Prefactor  = 0.0001
  Normalizat = 0.818446
  Prefactor  = 1.14937
 **********
 **   18 **HESSE 
 **********

 FCN=   5346.955     FROM HESSE     STATUS=OK           511 CALLS     3973 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          60.390        46.174        .51634E-04   -1.4152    
   3  Prefactor     .10000E-03    7.3906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6181        .15322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5229        3.9281        .22872E-03   -1.5461    
   6  Prefactor     7.6325        165.45        .14598E-03   -1.5155    
   7  Prefactor     .10000E-03    86.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    58.087        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.5738        55.137        .16963E-02   -1.5457    
  12  Prefactor     .10000E-03    18.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .80571        .25178        .19513E-04   -1.5528    
  15  norm          3.8867        2.7515        .94077E-04   -1.5314    
  16  norm          .10000E-03    3.1125        .12594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    38.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.7477        3.4689        .18298E-03   -1.5444    
  19  Prefactor     .10000E-03    24.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    49.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.9274        5.6105        .16092E-03   -1.5221    
  23  Prefactor     .10000E-03    231.27        .20986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.7214        3.7468        .10292E-03   -1.5189    
  26  Prefactor     .10000E-03    61.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .81845        .33712        .37140E-03   -.99388    
  28  Prefactor     1.1494        .18988        .18419E-03   -.87904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13975e-11
Minuit parameter uncertainties:
  1  1.58577e-05
  2  46.2018
  3  6.58642e-06
  4  3.56166e-06
  5  3.9288
  6  71.296
  7  0.000169443
  8  0.000149953
  9  1.62212e-05
  10  1.2188e-05
  11  18.6488
  12  1.33262e-05
  13  5.06483e-06
  14  0.251775
  15  2.75156
  16  1.20744e-06
  17  2.51629e-05
  18  3.46926
  19  6.36485e-06
  20  1.22832e-05
  21  6.97373e-05
  22  5.61104
  23  0.000845684
  24  6.55413e-06
  25  3.74698
  26  2.02665e-06
  27  0.337985
  28  0.189995
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  8.057e-01  2.518e-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.149e+00  1.900e-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:  8.184e-01  3.380e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 34.02
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.96e-07 +/- 6.13e-08
Energy Flux (Fixed Index): 7.94e-05 +/- 2.48e-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) = 5346.38302876
delta logL = 0.571555612558

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5346.38298003
delta logL = 0.571604334268

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77206       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4562       1.0000          .0000       5.0000    
     3 'Normalizat'    .75271       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1733       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=   5346.383     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77210        3.2580        .40181E-02    .11430E-03
   2  alpha         2.4562        3.7254        .18369        .23294E-04
   3  Normalizat    .75265        .32576        .87027E-01    .24814E-04
   4  Prefactor     1.1734        .18509        .35294E-01   -.22393E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.772098
  alpha      = 2.45617
  Normalizat = 0.75265
  Prefactor  = 1.17338
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77210        .24129        .17779E-04   -1.5532    
   2  alpha         2.4562        .31501        .79118E-02   -.17532E-01
   3  Normalizat    .75265        .33256        .38544E-03   -1.0185    
   4  Prefactor     1.1734        .19043        .18236E-03   -.87154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22571e-13
Minuit parameter uncertainties:
  1  0.241291
  2  0.31585
  3  0.333464
  4  0.190537
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5837': 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) = 5346.38298
delta logL = 0.571604364592

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  7.721e-01  2.413e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.456e+00  3.158e-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.173e+00  1.905e-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.527e-01  3.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 35.25
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.46 +/- 0.32
Photon Flux (Free Index): 2.47e-07 +/- 8.34e-08
Energy Flux (Free Index): 7.05e-05 +/- 2.16e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/5837/cmap_HighResolution_544406401_544665601_4FGL_J1504.4+1029_daily_bin1177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.96e-07', energy_flux2='7.05e-05', photon_flux_error='6.13e-08', dlogl='5.72e-01', energy_flux='7.94e-05', photon_flux2='2.47e-07', job_status='DONE', time_completed='2021-09-10 21:51:08.382643', photon_index_error2='0.32', photon_index2='2.46', ts='34.02', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='2.16e-05', EG='0.82', time_epoch_completed='1631335868.38', return_code='0', job_id='5837', GAL2='1.17', EG2='0.75', return_code2='0', energy_flux_error='2.48e-05', photon_flux_error2='8.34e-08', ts2='35.25', photon_index='2.12' WHERE bin_id='1177' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:51:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 5837: <4FGL_J1504.4+1029_daily_bin1177> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1177 226.103 10.4978 544406401 544665601 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 :                                   578.55 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             317.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   599 sec.
    Turnaround time :                            602 sec.

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

