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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1113
RA = 226.103, Dec = 10.4978
tmin = 527817601, tmax = 528076801
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='5738', job_status='RUN', time_executed='2021-09-10 21:41:15.389456', time_epoch_executed='1631335275.39' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1113'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5738

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/5738/ft1_4FGL_J1504.4+1029_daily_bin1113.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/5738/ft2_4FGL_J1504.4+1029_daily_bin1113.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5738/ft1_4FGL_J1504.4+1029_daily_bin1113.fits outfile=/scratch/kocevski/5738/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1113.fits ra=226.103 dec=10.4978 rad=12.0 tmin=527817601.0 tmax=528076801.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.62
user 3.28
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/5738/ft2_4FGL_J1504.4+1029_daily_bin1113.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/5738/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1113.fits evtable="EVENTS" outfile="/scratch/kocevski/5738/ft1_filtered_4FGL_J1504.4+1029_daily_bin1113.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/5738/ft1_filtered_4FGL_J1504.4+1029_daily_bin1113.fits" evtable="EVENTS" scfile=/scratch/kocevski/5738/ft2_4FGL_J1504.4+1029_daily_bin1113.fits sctable="SC_DATA" outfile=/scratch/kocevski/5738/ltcube_527817601_528076801_4FGL_J1504.4+1029_daily_bin1113.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/5738/ft2_4FGL_J1504.4+1029_daily_bin1113.fits
.....................!
real 12.62
user 12.22
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5738/ft1_filtered_4FGL_J1504.4+1029_daily_bin1113.fits evtable="EVENTS" scfile=/scratch/kocevski/5738/ft2_4FGL_J1504.4+1029_daily_bin1113.fits sctable="SC_DATA" expcube=/scratch/kocevski/5738/ltcube_527817601_528076801_4FGL_J1504.4+1029_daily_bin1113.fits outfile=/scratch/kocevski/5738/expmap_527817601_528076801_4FGL_J1504.4+1029_daily_bin1113.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/5738/ltcube_527817601_528076801_4FGL_J1504.4+1029_daily_bin1113.fits
.....................!
real 192.54
user 186.91
sys 4.71

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/5738/ft1_filtered_4FGL_J1504.4+1029_daily_bin1113.fits scfile=/scratch/kocevski/5738/ft2_4FGL_J1504.4+1029_daily_bin1113.fits outfile=/scratch/kocevski/5738/cmap_527817601_528076801_4FGL_J1504.4+1029_daily_bin1113.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.58
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/5738/ft1_filtered_4FGL_J1504.4+1029_daily_bin1113.fits scfile=/scratch/kocevski/5738/ft2_4FGL_J1504.4+1029_daily_bin1113.fits outfile=/scratch/kocevski/5738/cmap_HighResolution_527817601_528076801_4FGL_J1504.4+1029_daily_bin1113.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.6565       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10666E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.988       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .73348E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.2909       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.8867       1.0000         .10000E-03   10000.    
    15 'norm      '    3.3809       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    25.697       1.0000         .10000E-03   10000.    
    18 'norm      '    .48523E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    40.460       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.4794       1.0000         .10000E-03   10000.    
    23 'Prefactor '    71.391       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    53.379       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1926       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .97077       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=   7430.377     FROM MIGRAD    STATUS=CONVERGED    697 CALLS     3494 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.022        .44253E-06** at limit **
   2  norm          .10000E-03    13.216       -.73592E-06** at limit **
   3  Prefactor     .10000E-03    3.9375       -.12855E-05** at limit **
   4  Prefactor     8.6577        8.6993        .27452E-05   -.21201E-03
   5  norm          .10000E-03    .87192       -.42634E-07** at limit **
   6  Prefactor     .10001E-03    46.421       -.39594E-05** at limit **
   7  Prefactor     .10000E-03    56.392        .40121E-05** at limit **
   8  norm          11.979        18.973        .10068E-05   -.17938E-04
   9  Prefactor     .10000E-03    13.875        .58024E-06** at limit **
  10  Prefactor     .10055E-03    26.923       -.16604E-05** at limit **
  11  Prefactor     9.2903        17.747        .22089E-06    .29222E-04
  12  Prefactor     .10000E-03    9.4459       -.21091E-07** at limit **
  13  Prefactor     .10000E-03    15.909        .73892E-06** at limit **
  14  norm          1.8866        .31176        .11911E-07    .14097E-02
  15  norm          3.3840        3.2505        .28240E-06   -.26552E-04
  16  norm          .10000E-03    1.8793       -.16311E-08** at limit **
  17  norm          25.687        53.819       -.11036E-05   -.43011E-04
  18  norm          .10000E-03    2.1922       -.61485E-07** at limit **
  19  Prefactor     40.471        51.742        .12734E-05    .49584E-04
  20  Prefactor     .10000E-03    25.127        .65861E-06** at limit **
  21  Prefactor     .10000E-03    11.048        .13833E-06** at limit **
  22  Prefactor     9.4842        8.1360        .18533E-06   -.13888E-05
  23  Prefactor     71.410        56.884        .17462E-05    .12116E-03
  24  Prefactor     .10000E-03    18.302       -.12324E-05** at limit **
  25  norm          .10000E-03    1.4415        .50990E-07** at limit **
  26  Prefactor     53.395        61.286        .17567E-05    .86483E-04
  27  Normalizat    1.1921        .25136       -.14916E-05    .22921E-03
  28  Prefactor     .97097        .13450        .14057E-06    .16067E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.65768
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100005
  norm       = 11.9787
  Prefactor  = 0.0001
  Prefactor  = 0.000100552
  Prefactor  = 9.29034
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.8866
  norm       = 3.38404
  norm       = 0.0001
  norm       = 25.6872
  norm       = 0.0001
  Prefactor  = 40.4708
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.48422
  Prefactor  = 71.4097
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 53.395
  Normalizat = 1.19208
  Prefactor  = 0.970969
 **********
 **   18 **HESSE 
 **********

 FCN=   7430.377     FROM HESSE     STATUS=OK           511 CALLS     4005 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    13.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.510        .32075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.6577        9.0409        .68120E-03   -1.5119    
   5  norm          .10000E-03    .87357        .78616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    47.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    57.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.979        18.796        .11570E-03   -1.5016    
   9  Prefactor     .10000E-03    13.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10055E-03    203.69        .82212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.2903        17.745        .13148E-03   -1.5098    
  12  Prefactor     .10000E-03    9.4548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.8866        .30986        .18408E-04   -1.5433    
  15  norm          3.3840        3.1592        .13759E-03   -1.5340    
  16  norm          .10000E-03    1.8797        .11541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          25.687        54.063        .79024E-04   -1.4694    
  18  norm          .10000E-03    8.4669        .24027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     40.471        51.757        .63017E-04   -1.4435    
  20  Prefactor     .10000E-03    25.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.4842        8.1311        .13016E-03   -1.5092    
  23  Prefactor     71.410        57.156        .47512E-04   -1.4016    
  24  Prefactor     .10000E-03    18.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.4601        .10104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     53.395        61.704        .27449E-03   -1.4245    
  27  Normalizat    1.1921        .29953        .33592E-03   -.86848    
  28  Prefactor     .97097        .16311        .21137E-03   -.93704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07583e-09
Minuit parameter uncertainties:
  1  0.000101779
  2  9.76401e-05
  3  2.97665e-05
  4  9.04232
  5  1.52137e-06
  6  0.00102028
  7  0.00104431
  8  18.8048
  9  8.41953e-05
  10  0.0212721
  11  17.7555
  12  1.62229e-06
  13  0.000116111
  14  0.309865
  15  3.15934
  16  1.67547e-07
  17  54.1662
  18  1.44035e-05
  19  51.8147
  20  0.000133942
  21  8.11522e-06
  22  8.13206
  23  57.1997
  24  0.000198328
  25  1.52528e-06
  26  61.7775
  27  0.299964
  28  0.163195
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.887e+00  3.099e-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:  9.710e-01  1.632e-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.192e+00  3.000e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 133.46
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 4.59e-07 +/- 7.54e-08
Energy Flux (Fixed Index): 1.86e-04 +/- 3.05e-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) = 7429.92061133
delta logL = 0.45594677066

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7429.92000332
delta logL = 0.456554785152

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8419       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2924       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1338       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99339       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=   7429.920     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      197 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8419        .37909        .40093E-02   -.37758E-02
   2  alpha         2.2925        .21816        .12627       -.73642E-04
   3  Normalizat    1.1338        .23486        .77423E-01   -.40466E-04
   4  Prefactor     .99341        .13362        .46184E-01    .28652E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.84186
  alpha      = 2.29246
  Normalizat = 1.13378
  Prefactor  = 0.993409
 **********
 **   18 **HESSE 
 **********

 FCN=   7429.920     FROM HESSE     STATUS=OK            29 CALLS      226 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8419        .30486        .17722E-04   -1.5437    
   2  alpha         2.2925        .17813        .55137E-03   -.83113E-01
   3  Normalizat    1.1338        .28517        .34270E-03   -.88675    
   4  Prefactor     .99341        .16174        .20914E-03   -.92950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03137e-10
Minuit parameter uncertainties:
  1  0.30486
  2  0.178284
  3  0.28556
  4  0.161818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5738': 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) = 7429.92000331
delta logL = 0.456554795989

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.842e+00  3.049e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.292e+00  1.783e-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:  9.934e-01  1.618e-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.134e+00  2.856e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 133.86
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.29 +/- 0.18
Photon Flux (Free Index): 5.11e-07 +/- 9.69e-08
Energy Flux (Free Index): 1.70e-04 +/- 3.06e-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/5738/cmap_HighResolution_527817601_528076801_4FGL_J1504.4+1029_daily_bin1113.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.59e-07', energy_flux2='1.70e-04', photon_flux_error='7.54e-08', dlogl='4.57e-01', energy_flux='1.86e-04', photon_flux2='5.11e-07', job_status='DONE', time_completed='2021-09-10 21:52:31.896379', photon_index_error2='0.18', photon_index2='2.29', ts='133.46', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='3.06e-05', EG='1.19', time_epoch_completed='1631335951.9', return_code='0', job_id='5738', GAL2='0.99', EG2='1.13', return_code2='0', energy_flux_error='3.05e-05', photon_flux_error2='9.69e-08', ts2='133.86', photon_index='2.12' WHERE bin_id='1113' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:52:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 5738: <4FGL_J1504.4+1029_daily_bin1113> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1113 226.103 10.4978 527817601 528076801 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 :                                   671.50 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             311.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   686 sec.
    Turnaround time :                            691 sec.

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

