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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin905
RA = 226.103, Dec = 10.4978
tmin = 473904001, tmax = 474163201
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='3731', job_status='RUN', time_executed='2021-09-10 21:36:27.282397', time_epoch_executed='1631334987.28' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='905'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/3731

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/3731/ft1_4FGL_J1504.4+1029_daily_bin905.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/3731/ft2_4FGL_J1504.4+1029_daily_bin905.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/3731/ft1_4FGL_J1504.4+1029_daily_bin905.fits outfile=/scratch/kocevski/3731/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin905.fits ra=226.103 dec=10.4978 rad=12.0 tmin=473904001.0 tmax=474163201.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 5.04
user 4.80
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/3731/ft2_4FGL_J1504.4+1029_daily_bin905.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/3731/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin905.fits evtable="EVENTS" outfile="/scratch/kocevski/3731/ft1_filtered_4FGL_J1504.4+1029_daily_bin905.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.50
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/3731/ft1_filtered_4FGL_J1504.4+1029_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/3731/ft2_4FGL_J1504.4+1029_daily_bin905.fits sctable="SC_DATA" expcube=/scratch/kocevski/3731/ltcube_473904001_474163201_4FGL_J1504.4+1029_daily_bin905.fits outfile=/scratch/kocevski/3731/expmap_473904001_474163201_4FGL_J1504.4+1029_daily_bin905.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/3731/ltcube_473904001_474163201_4FGL_J1504.4+1029_daily_bin905.fits
.....................!
real 192.32
user 187.21
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/3731/ft1_filtered_4FGL_J1504.4+1029_daily_bin905.fits scfile=/scratch/kocevski/3731/ft2_4FGL_J1504.4+1029_daily_bin905.fits outfile=/scratch/kocevski/3731/cmap_473904001_474163201_4FGL_J1504.4+1029_daily_bin905.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/3731/ft1_filtered_4FGL_J1504.4+1029_daily_bin905.fits scfile=/scratch/kocevski/3731/ft2_4FGL_J1504.4+1029_daily_bin905.fits outfile=/scratch/kocevski/3731/cmap_HighResolution_473904001_474163201_4FGL_J1504.4+1029_daily_bin905.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/3731/ft1_filtered_4FGL_J1504.4+1029_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/3731/ft2_4FGL_J1504.4+1029_daily_bin905.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/3731/Model_4FGL_J1504.4+1029_daily_bin905.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/3731/ft1_filtered_4FGL_J1504.4+1029_daily_bin905.fits.....................!
real 54.59
user 53.24
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1823       1.0000         .10000E-03   10000.    
     2 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9099       1.0000         .10000E-03   10000.    
     5 'norm      '    2.8442       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .29476E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5018       1.0000         .10000E-03   10000.    
    13 'Prefactor '    80.643       1.0000         .10000E-03   10000.    
    14 'norm      '    3.3120       1.0000         .10000E-03   10000.    
    15 'norm      '    1.9819       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .78945       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .53640E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.0530       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.4607       1.0000         .10000E-03   10000.    
    23 'Prefactor '    64.925       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.0430       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.5814       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .79801       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=   6621.049     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     3652 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1768        29.110        .14666E-05    .81635E-04
   2  norm          .10000E-03    15.072        .17081E-06** at limit **
   3  Prefactor     .10000E-03    3.0278       -.34979E-07** at limit **
   4  Prefactor     4.9081        6.2440        .24618E-06    .73229E-04
   5  norm          2.8441        4.8049        .80883E-06    .25251E-03
   6  Prefactor     .10000E-03    43.076       -.41404E-06** at limit **
   7  Prefactor     .10000E-03    14.051       -.82330E-07** at limit **
   8  norm          .10000E-03    6.5452       -.14399E-07** at limit **
   9  Prefactor     .10000E-03    21.077       -.34713E-06** at limit **
  10  Prefactor     .10000E-03    6.6322       -.25596E-07** at limit **
  11  Prefactor     .11311E-03    13.882       -.12593E-05** at limit **
  12  Prefactor     3.3717        59.585        .85213E-06   -.10925E-04
  13  Prefactor     80.619        63.233        .18371E-06    .22831E-04
  14  norm          3.3118        .41379        .16407E-07    .26669E-03
  15  norm          1.9811        3.0592        .59186E-07   -.18457E-03
  16  norm          .10000E-03    4.9593       -.22760E-07** at limit **
  17  norm          .10000E-03    56.880        .38181E-06** at limit **
  18  norm          .78953        4.2389        .32919E-05    .44577E-03
  19  Prefactor     .10000E-03    58.546        .75177E-08** at limit **
  20  Prefactor     .10284E-03    51.997        .67334E-05** at limit **
  21  Prefactor     3.0077        67.408        .38065E-05    .82908E-04
  22  Prefactor     9.4585        6.4526        .87123E-07   -.13941E-03
  23  Prefactor     64.879        47.462        .12048E-05    .28268E-03
  24  Prefactor     .10000E-03    13.825        .14616E-07** at limit **
  25  norm          3.0427        2.5441        .47326E-07    .62342E-04
  26  Prefactor     .10000E-03    38.366        .14441E-06** at limit **
  27  Normalizat    1.5819        .26813       -.15421E-05   -.80524E-04
  28  Prefactor     .79771        .14806        .39319E-06   -.14806E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.17676
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.90813
  norm       = 2.84415
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000113107
  Prefactor  = 3.37169
  Prefactor  = 80.6188
  norm       = 3.31179
  norm       = 1.98108
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.789527
  Prefactor  = 0.0001
  Prefactor  = 0.000102842
  Prefactor  = 3.00765
  Prefactor  = 9.45853
  Prefactor  = 64.8786
  Prefactor  = 0.0001
  norm       = 3.04273
  Prefactor  = 0.0001
  Normalizat = 1.58187
  Prefactor  = 0.79771
 **********
 **   18 **HESSE 
 **********

 FCN=   6621.049     FROM HESSE     STATUS=OK           529 CALLS     4181 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1768        29.286        .14967E-03   -1.5172    
   2  norm          .10000E-03    15.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.0323        .13825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.9081        6.2425        .18152E-03   -1.5265    
   5  norm          2.8441        4.8067        .22185E-03   -1.5371    
   6  Prefactor     .10000E-03    43.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.5503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.6344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11311E-03    13.311        .89802E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.3717        59.040        .21606E-03   -1.5341    
  13  Prefactor     80.619        62.961        .44724E-04   -1.3910    
  14  norm          3.3118        .41544        .17560E-04   -1.5344    
  15  norm          1.9811        2.9978        .16037E-03   -1.5426    
  16  norm          .10000E-03    4.9981        .17696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    57.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .78953        4.4234        .32290E-03   -1.5530    
  19  Prefactor     .10000E-03    58.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10284E-03    234.95        .84740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.0077        68.026        .23219E-03   -1.5361    
  22  Prefactor     9.4585        6.4471        .13029E-03   -1.5093    
  23  Prefactor     64.879        47.984        .49806E-04   -1.4095    
  24  Prefactor     .10000E-03    13.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.0427        2.5408        .11541E-03   -1.5359    
  26  Prefactor     .10000E-03    38.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.5819        .32081        .30852E-03   -.75503    
  28  Prefactor     .79771        .17684        .23963E-03   -.99813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24519e-08
Minuit parameter uncertainties:
  1  29.0196
  2  1.99249e-05
  3  1.01149e-06
  4  6.2433
  5  4.8073
  6  0.000238428
  7  2.10945e-05
  8  1.01344e-06
  9  4.87309e-05
  10  2.07621e-06
  11  0.0264235
  12  28.2503
  13  63.0135
  14  0.41544
  15  2.99805
  16  1.78991e-06
  17  0.000309147
  18  3.73776
  19  6.24625e-05
  20  0.0518814
  21  28.6439
  22  6.44756
  23  48.0121
  24  1.51504e-05
  25  2.54089
  26  0.000100924
  27  0.321225
  28  0.176968
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  3.312e+00  4.154e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.124e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
202         beta:  9.862e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.027e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
469    Prefactor:  7.977e-01  1.770e-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.582e+00  3.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 243.51
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 8.06e-07 +/- 1.01e-07
Energy Flux (Fixed Index): 3.27e-04 +/- 4.10e-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) = 6621.0477563
delta logL = 0.00144559442651

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6621.04615677
delta logL = 0.00304511984905

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3173       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1142       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5870       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79575       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=   6621.046     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      197 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3173        .45325        .39827E-02   -.28322E-02
   2  alpha         2.1142        .13953        .90421E-01    .11963E-04
   3  Normalizat    1.5870        .25722        .69660E-01    .31706E-04
   4  Prefactor     .79574        .14614        .43662E-01    .79784E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.31734
  alpha      = 2.11418
  Normalizat = 1.58705
  Prefactor  = 0.795743
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3173        .42104        .17601E-04   -1.5344    
   2  alpha         2.1142        .13084        .39735E-03   -.15495    
   3  Normalizat    1.5870        .31220        .30817E-03   -.75361    
   4  Prefactor     .79574        .17651        .23990E-03   -.99885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.24097e-11
Minuit parameter uncertainties:
  1  0.421045
  2  0.130903
  3  0.312582
  4  0.176636
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/3731': 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) = 6621.04615677
delta logL = 0.0030451222774

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  3.317e+00  4.210e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.114e+00  1.309e-01  0.000e+00  5.000e+00 ( 1.000e+00)
202         beta:  9.862e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.027e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
469    Prefactor:  7.957e-01  1.766e-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.587e+00  3.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 241.93
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.11 +/- 0.13
Photon Flux (Free Index): 8.02e-07 +/- 1.16e-07
Energy Flux (Free Index): 3.29e-04 +/- 5.20e-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/3731/cmap_HighResolution_473904001_474163201_4FGL_J1504.4+1029_daily_bin905.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.06e-07', energy_flux2='3.29e-04', photon_flux_error='1.01e-07', dlogl='3.05e-03', energy_flux='3.27e-04', photon_flux2='8.02e-07', job_status='DONE', time_completed='2021-09-10 21:47:47.390281', photon_index_error2='0.13', photon_index2='2.11', ts='243.51', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='5.20e-05', EG='1.58', time_epoch_completed='1631335667.39', return_code='0', job_id='3731', GAL2='0.80', EG2='1.59', return_code2='0', energy_flux_error='4.10e-05', photon_flux_error2='1.16e-07', ts2='241.93', photon_index='2.12' WHERE bin_id='905' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:47:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 3731: <4FGL_J1504.4+1029_daily_bin905> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin905> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 21:36:16 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:36:17 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:36:17 2021
Terminated at Fri Sep 10 21:47:48 2021
Results reported at Fri Sep 10 21:47:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin905 226.103 10.4978 473904001 474163201 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 :                                   675.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            692 sec.

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

