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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1091
RA = 226.103, Dec = 10.4978
tmin = 522115201, tmax = 522374401
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='5656', job_status='RUN', time_executed='2021-09-10 21:43:34.011969', time_epoch_executed='1631335414.01' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1091'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5656

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/5656/ft1_4FGL_J1504.4+1029_daily_bin1091.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/5656/ft2_4FGL_J1504.4+1029_daily_bin1091.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5656/ft1_4FGL_J1504.4+1029_daily_bin1091.fits outfile=/scratch/kocevski/5656/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1091.fits ra=226.103 dec=10.4978 rad=12.0 tmin=522115201.0 tmax=522374401.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.73
user 3.50
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/5656/ft2_4FGL_J1504.4+1029_daily_bin1091.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/5656/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1091.fits evtable="EVENTS" outfile="/scratch/kocevski/5656/ft1_filtered_4FGL_J1504.4+1029_daily_bin1091.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/5656/ft1_filtered_4FGL_J1504.4+1029_daily_bin1091.fits" evtable="EVENTS" scfile=/scratch/kocevski/5656/ft2_4FGL_J1504.4+1029_daily_bin1091.fits sctable="SC_DATA" outfile=/scratch/kocevski/5656/ltcube_522115201_522374401_4FGL_J1504.4+1029_daily_bin1091.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/5656/ft2_4FGL_J1504.4+1029_daily_bin1091.fits
.....................!
real 12.16
user 11.81
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5656/ft1_filtered_4FGL_J1504.4+1029_daily_bin1091.fits evtable="EVENTS" scfile=/scratch/kocevski/5656/ft2_4FGL_J1504.4+1029_daily_bin1091.fits sctable="SC_DATA" expcube=/scratch/kocevski/5656/ltcube_522115201_522374401_4FGL_J1504.4+1029_daily_bin1091.fits outfile=/scratch/kocevski/5656/expmap_522115201_522374401_4FGL_J1504.4+1029_daily_bin1091.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/5656/ltcube_522115201_522374401_4FGL_J1504.4+1029_daily_bin1091.fits
.....................!
real 190.10
user 185.15
sys 4.63

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/5656/ft1_filtered_4FGL_J1504.4+1029_daily_bin1091.fits scfile=/scratch/kocevski/5656/ft2_4FGL_J1504.4+1029_daily_bin1091.fits outfile=/scratch/kocevski/5656/cmap_522115201_522374401_4FGL_J1504.4+1029_daily_bin1091.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/5656/ft1_filtered_4FGL_J1504.4+1029_daily_bin1091.fits scfile=/scratch/kocevski/5656/ft2_4FGL_J1504.4+1029_daily_bin1091.fits outfile=/scratch/kocevski/5656/cmap_HighResolution_522115201_522374401_4FGL_J1504.4+1029_daily_bin1091.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    12.644       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.9168       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.238       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17661E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.3769       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.095       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.115       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.5024       1.0000         .10000E-03   10000.    
    15 'norm      '    .64211       1.0000         .10000E-03   10000.    
    16 'norm      '    6.8460       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.7289       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.839       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.0040       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3661       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .80751       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=   8459.779     FROM MIGRAD    STATUS=CONVERGED    670 CALLS     3493 TOTAL
                     EDM=   .46E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.4858       -.82930E-07** at limit **
   2  norm          12.645        26.140        .15640E-05   -.13682E-04
   3  Prefactor     .10000E-03    8.7118        .31075E-06** at limit **
   4  Prefactor     .10000E-03    6.1310        .16606E-06** at limit **
   5  norm          6.9168        4.8704        .11855E-06    .20807E-04
   6  Prefactor     19.198        64.351       -.12751E-05   -.52128E-04
   7  Prefactor     .10000E-03    149.99        .39509E-06** at limit **
   8  norm          9.3798        19.566       -.30765E-07   -.39898E-05
   9  Prefactor     21.103        25.167        .70369E-07   -.11136E-04
  10  Prefactor     29.111        26.389       -.25631E-07   -.12095E-04
  11  Prefactor     .10000E-03    12.608        .19665E-06** at limit **
  12  Prefactor     .10000E-03    9.4497        .47138E-07** at limit **
  13  Prefactor     .10000E-03    11.662       -.74365E-07** at limit **
  14  norm          1.5024        .26398       -.74278E-08   -.16488E-03
  15  norm          .64198        1.5598        .69905E-06   -.78530E-05
  16  norm          6.8453        6.4025        .11117E-05   -.93788E-04
  17  norm          .10000E-03    15.878        .15530E-06** at limit **
  18  norm          6.7287        3.5345       -.52192E-07   -.84157E-04
  19  Prefactor     .10000E-03    17.041       -.66192E-07** at limit **
  20  Prefactor     20.835        33.571       -.49293E-07   -.15977E-04
  21  Prefactor     .10000E-03    9.7471        .34763E-07** at limit **
  22  Prefactor     .10000E-03    2.1681        .60171E-07** at limit **
  23  Prefactor     .10000E-03    34.926        .16610E-06** at limit **
  24  Prefactor     3.0013        35.049        .10150E-05    .60920E-06
  25  norm          .10000E-03    1.0515        .39666E-07** at limit **
  26  Prefactor     .10000E-03    16.659       -.46621E-08** at limit **
  27  Normalizat    1.3658        .21146        .31000E-06   -.95497E-04
  28  Prefactor     .80769        .11933       -.56143E-06   -.36828E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 12.6455
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.9168
  Prefactor  = 19.1985
  Prefactor  = 0.0001
  norm       = 9.37979
  Prefactor  = 21.103
  Prefactor  = 29.1107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.50242
  norm       = 0.641979
  norm       = 6.84528
  norm       = 0.0001
  norm       = 6.72871
  Prefactor  = 0.0001
  Prefactor  = 20.835
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.00135
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.36581
  Prefactor  = 0.807689
 **********
 **   18 **HESSE 
 **********

 FCN=   8459.779     FROM HESSE     STATUS=OK           517 CALLS     4010 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.4915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.645        26.155        .56326E-03   -1.4997    
   3  Prefactor     .10000E-03    8.9095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.2133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.9168        4.8738        .15255E-03   -1.5182    
   6  Prefactor     19.198        65.016        .91316E-04   -1.4831    
   7  Prefactor     .10000E-03    150.99        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.3798        19.335        .13087E-03   -1.5095    
   9  Prefactor     21.103        25.216        .87206E-04   -1.4789    
  10  Prefactor     29.111        26.432        .74251E-04   -1.4628    
  11  Prefactor     .10000E-03    12.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.4557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.5024        .26457        .18640E-04   -1.5463    
  15  norm          .64198        1.5462        .17168E-03   -1.5548    
  16  norm          6.8453        6.3684        .76671E-03   -1.5185    
  17  norm          .10000E-03    15.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.7287        3.5324        .12042E-03   -1.5189    
  19  Prefactor     .10000E-03    17.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.835        33.651        .87740E-04   -1.4795    
  21  Prefactor     .10000E-03    9.7544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.1936        .13223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    35.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.0013        35.161        .23419E-03   -1.5361    
  25  norm          .10000E-03    1.0627        .92104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    16.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3658        .25625        .30064E-03   -.81623    
  28  Prefactor     .80769        .14369        .21583E-03   -.99446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.89899e-11
Minuit parameter uncertainties:
  1  1.64041e-05
  2  26.1787
  3  1.78141e-05
  4  2.09948e-06
  5  4.8741
  6  65.2573
  7  1.8501e-05
  8  19.348
  9  25.2284
  10  26.4429
  11  2.84208e-05
  12  8.83418e-06
  13  3.39229e-05
  14  0.264574
  15  1.54631
  16  6.36902
  17  5.77911e-05
  18  3.53249
  19  5.13772e-05
  20  33.6813
  21  7.36358e-06
  22  3.50405e-07
  23  1.63965e-05
  24  20.5603
  25  3.14275e-07
  26  8.34773e-06
  27  0.256487
  28  0.14376
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.502e+00  2.646e-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:  8.077e-01  1.438e-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.366e+00  2.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 96.67
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.66e-07 +/- 6.44e-08
Energy Flux (Fixed Index): 1.48e-04 +/- 2.61e-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) = 8459.74858783
delta logL = 0.0304889991894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8459.74684363
delta logL = 0.0322331974894

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4987       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1701       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3525       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81260       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=   8459.747     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      197 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4987        .29815        .41765E-02   -.36119E-02
   2  alpha         2.1701        .20321        .14269       -.10751E-03
   3  Normalizat    1.3525        .20652        .68206E-01   -.28625E-03
   4  Prefactor     .81261        .11639        .43881E-01   -.19576E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.49872
  alpha      = 2.17013
  Normalizat = 1.35252
  Prefactor  = 0.812607
 **********
 **   18 **HESSE 
 **********

 FCN=   8459.747     FROM HESSE     STATUS=OK            27 CALLS      224 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4987        .25934        .18470E-04   -1.5463    
   2  alpha         2.1701        .18042        .61953E-03   -.13234    
   3  Normalizat    1.3525        .25204        .30175E-03   -.82012    
   4  Prefactor     .81261        .14127        .21522E-03   -.99265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13567e-10
Minuit parameter uncertainties:
  1  0.259335
  2  0.180578
  3  0.252273
  4  0.141333
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5656': 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) = 8459.74684363
delta logL = 0.0322331984353

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.499e+00  2.593e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.170e+00  1.806e-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:  8.126e-01  1.413e-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.353e+00  2.523e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 96.73
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.17 +/- 0.18
Photon Flux (Free Index): 3.77e-07 +/- 7.93e-08
Energy Flux (Free Index): 1.44e-04 +/- 2.86e-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/5656/cmap_HighResolution_522115201_522374401_4FGL_J1504.4+1029_daily_bin1091.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.66e-07', energy_flux2='1.44e-04', photon_flux_error='6.44e-08', dlogl='3.22e-02', energy_flux='1.48e-04', photon_flux2='3.77e-07', job_status='DONE', time_completed='2021-09-10 21:56:13.690214', photon_index_error2='0.18', photon_index2='2.17', ts='96.67', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='2.86e-05', EG='1.37', time_epoch_completed='1631336173.69', return_code='0', job_id='5656', GAL2='0.81', EG2='1.35', return_code2='0', energy_flux_error='2.61e-05', photon_flux_error2='7.93e-08', ts2='96.73', photon_index='2.12' WHERE bin_id='1091' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:56:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 5656: <4FGL_J1504.4+1029_daily_bin1091> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1091> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 21:40:59 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:41:00 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:00 2021
Terminated at Fri Sep 10 21:56:14 2021
Results reported at Fri Sep 10 21:56:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1091 226.103 10.4978 522115201 522374401 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 :                                   711.04 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             275.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            915 sec.

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

