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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1301
RA = 226.103, Dec = 10.4978
tmin = 576547201, tmax = 576806401
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='7756', job_status='RUN', time_executed='2021-09-10 21:48:30.083984', time_epoch_executed='1631335710.08' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1301'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7756

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7756/ft1_4FGL_J1504.4+1029_daily_bin1301.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7756/ft2_4FGL_J1504.4+1029_daily_bin1301.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7756/ft1_4FGL_J1504.4+1029_daily_bin1301.fits outfile=/scratch/kocevski/7756/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1301.fits ra=226.103 dec=10.4978 rad=12.0 tmin=576547201.0 tmax=576806401.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 4.97
user 4.72
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7756/ft1_filtered_4FGL_J1504.4+1029_daily_bin1301.fits" evtable="EVENTS" scfile=/scratch/kocevski/7756/ft2_4FGL_J1504.4+1029_daily_bin1301.fits sctable="SC_DATA" outfile=/scratch/kocevski/7756/ltcube_576547201_576806401_4FGL_J1504.4+1029_daily_bin1301.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/7756/ft2_4FGL_J1504.4+1029_daily_bin1301.fits
.....................!
real 11.89
user 11.48
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7756/ft1_filtered_4FGL_J1504.4+1029_daily_bin1301.fits evtable="EVENTS" scfile=/scratch/kocevski/7756/ft2_4FGL_J1504.4+1029_daily_bin1301.fits sctable="SC_DATA" expcube=/scratch/kocevski/7756/ltcube_576547201_576806401_4FGL_J1504.4+1029_daily_bin1301.fits outfile=/scratch/kocevski/7756/expmap_576547201_576806401_4FGL_J1504.4+1029_daily_bin1301.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/7756/ltcube_576547201_576806401_4FGL_J1504.4+1029_daily_bin1301.fits
.....................!
real 190.47
user 185.90
sys 4.19

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/7756/ft1_filtered_4FGL_J1504.4+1029_daily_bin1301.fits scfile=/scratch/kocevski/7756/ft2_4FGL_J1504.4+1029_daily_bin1301.fits outfile=/scratch/kocevski/7756/cmap_576547201_576806401_4FGL_J1504.4+1029_daily_bin1301.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7756/ft1_filtered_4FGL_J1504.4+1029_daily_bin1301.fits scfile=/scratch/kocevski/7756/ft2_4FGL_J1504.4+1029_daily_bin1301.fits outfile=/scratch/kocevski/7756/cmap_HighResolution_576547201_576806401_4FGL_J1504.4+1029_daily_bin1301.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31751E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    83.720       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23122E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.771       1.0000         .10000E-03   10000.    
     5 'norm      '    4.1471       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.038       1.0000         .10000E-03   10000.    
     8 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.1491       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .84387E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.373       1.0000         .10000E-03   10000.    
    14 'norm      '    1.1880       1.0000         .10000E-03   10000.    
    15 'norm      '    5.7289       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    24.411       1.0000         .10000E-03   10000.    
    18 'norm      '    6.3543       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .51264       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    55.513       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.9308       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .65065       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1430       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6962.584     FROM MIGRAD    STATUS=CONVERGED   1290 CALLS     4168 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    138.69        .21366E-02** at limit **
   2  norm          83.690        44.866        .21951E-03    .55158E-04
   3  Prefactor     .10003E-03    26.786        .31678E-02** at limit **
   4  Prefactor     10.771        8.2832        .12208E-03   -.28478E-03
   5  norm          4.1468        3.9530        .78068E-03    .29121E-03
   6  Prefactor     .10000E-03    34.284        .18142E-02** at limit **
   7  Prefactor     10.052        35.804        .12647E-03    .85575E-04
   8  norm          .10000E-03    24.289        .18142E-02** at limit **
   9  Prefactor     .10000E-03    31.833        .18142E-02** at limit **
  10  Prefactor     9.1453        23.184        .13250E-03    .12218E-03
  11  Prefactor     .12189E-03    14.519        .90228E-01** at limit **
  12  Prefactor     .10000E-03    16.904        .18142E-02** at limit **
  13  Prefactor     29.390        32.857        .73924E-04   -.15843E-03
  14  norm          1.1879        .27346        .19707E-04   -.23791E-02
  15  norm          5.7274        2.7364        .89355E-04   -.90206E-04
  16  norm          .10000E-03    1.8805        .11173E-02** at limit **
  17  norm          24.412        30.808        .81076E-04   -.19351E-04
  18  norm          6.3540        4.5040        .70908E-03    .13025E-03
  19  Prefactor     .13271E-03    62.813        .16114    ** at limit **
  20  Prefactor     .10000E-03    10.865        .18142E-02** at limit **
  21  Prefactor     55.524        39.933        .53838E-04   -.19609E-03
  22  Prefactor     .10000E-03    1.7546        .10737E-02** at limit **
  23  Prefactor     .10000E-03    23.219        .18142E-02** at limit **
  24  Prefactor     .10000E-03    11.708        .18142E-02** at limit **
  25  norm          1.9306        2.0305        .11874E-03   -.55054E-04
  26  Prefactor     .10000E-03    116.67        .18142E-02** at limit **
  27  Normalizat    .65134        .28973        .41080E-03   -.56360E-03
  28  Prefactor     1.1428        .15823        .18676E-03   -.45862E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 83.6901
  Prefactor  = 0.000100029
  Prefactor  = 10.771
  norm       = 4.1468
  Prefactor  = 0.0001
  Prefactor  = 10.0517
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 9.14533
  Prefactor  = 0.000121885
  Prefactor  = 0.0001
  Prefactor  = 29.3898
  norm       = 1.18788
  norm       = 5.72738
  norm       = 0.0001
  norm       = 24.4121
  norm       = 6.35398
  Prefactor  = 0.000132707
  Prefactor  = 0.0001
  Prefactor  = 55.524
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.93065
  Prefactor  = 0.000100002
  Normalizat = 0.65134
  Prefactor  = 1.14279
 **********
 **   18 **HESSE 
 **********

 FCN=   6962.584     FROM HESSE     STATUS=OK           511 CALLS     4679 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    138.78        .42731E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          83.690        44.864        .87803E-05   -1.3876    
   3  Prefactor     .10003E-03    27.196        .63356E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.771        8.2788        .48832E-05   -1.5051    
   5  norm          4.1468        3.9525        .31227E-04   -1.5301    
   6  Prefactor     .10000E-03    34.285        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.052        35.787        .50590E-05   -1.5074    
   8  norm          .10000E-03    24.290        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    31.842        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.1453        23.182        .53001E-05   -1.5103    
  11  Prefactor     .12189E-03    14.306        .91224E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.905        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     29.390        32.857        .14785E-04   -1.4623    
  14  norm          1.1879        .27346        .78828E-06   -1.5490    
  15  norm          5.7274        2.7361        .35742E-05   -1.5229    
  16  norm          .10000E-03    1.8805        .22346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          24.412        30.808        .16215E-04   -1.4719    
  18  norm          6.3540        4.5034        .28363E-04   -1.5204    
  19  Prefactor     .13271E-03    65.211        .15754       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.865        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     55.524        39.933        .10768E-04   -1.4216    
  22  Prefactor     .10000E-03    1.7549        .21473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    23.220        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.708        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.9306        2.0305        .47495E-05   -1.5430    
  26  Prefactor     .10000E-03    116.68        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .65134        .28990        .16432E-04   -1.0585    
  28  Prefactor     1.1428        .15833        .37352E-04   -.88111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11041e-09
Minuit parameter uncertainties:
  1  0.0012806
  2  44.8823
  3  0.00178299
  4  8.2797
  5  3.95271
  6  3.63523e-06
  7  35.8639
  8  0.000288242
  9  0.000190821
  10  23.2043
  11  0.0353971
  12  1.09576e-05
  13  32.8775
  14  0.273463
  15  2.73614
  16  1.22769e-06
  17  30.8278
  18  4.50364
  19  0.0924663
  20  1.15465e-05
  21  39.9521
  22  8.07746e-06
  23  0.0001136
  24  2.60225e-05
  25  2.03054
  26  0.000941594
  27  0.290585
  28  0.158394
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.188e+00  2.735e-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.143e+00  1.584e-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:  6.513e-01  2.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 49.65
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.89e-07 +/- 6.65e-08
Energy Flux (Fixed Index): 1.17e-04 +/- 2.70e-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) = 6961.23762048
delta logL = 1.34630659358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6961.23651454
delta logL = 1.34741253673

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0768       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5404       1.0000          .0000       5.0000    
     3 'Normalizat'    .54839       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1847       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=   6961.237     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      233 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0770        3.1592        .39579E-02    .22102E-03
   2  alpha         2.5407        3.6830        .15972        .36725E-04
   3  Normalizat    .54868        .25711        .10011        .42582E-04
   4  Prefactor     1.1846        .15859        .35002E-01   -.10159E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.077
  alpha      = 2.54066
  Normalizat = 0.548683
  Prefactor  = 1.18455
 **********
 **   18 **HESSE 
 **********

 FCN=   6961.237     FROM HESSE     STATUS=OK            31 CALLS      264 TOTAL
                     EDM=   .35E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0770        .27134        .17524E-04   -1.5500    
   2  alpha         2.5407        .26690        .69225E-03    .16265E-01
   3  Normalizat    .54868        .27058        .44371E-03   -1.1021    
   4  Prefactor     1.1846        .15800        .91859E-03   -.86808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46911e-13
Minuit parameter uncertainties:
  1  0.271343
  2  0.267414
  3  0.271231
  4  0.158061
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7756': 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) = 6961.23651166
delta logL = 1.34741541674

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.077e+00  2.713e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.541e+00  2.674e-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.185e+00  1.581e-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:  5.487e-01  2.712e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 52.63
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.54 +/- 0.27
Photon Flux (Free Index): 3.72e-07 +/- 9.07e-08
Energy Flux (Free Index): 9.93e-05 +/- 2.29e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/7756/cmap_HighResolution_576547201_576806401_4FGL_J1504.4+1029_daily_bin1301.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.89e-07', energy_flux2='9.93e-05', photon_flux_error='6.65e-08', dlogl='1.35e+00', energy_flux='1.17e-04', photon_flux2='3.72e-07', job_status='DONE', time_completed='2021-09-10 22:00:38.542031', photon_index_error2='0.27', photon_index2='2.54', ts='49.65', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='2.29e-05', EG='0.65', time_epoch_completed='1631336438.54', return_code='0', job_id='7756', GAL2='1.18', EG2='0.55', return_code2='0', energy_flux_error='2.70e-05', photon_flux_error2='9.07e-08', ts2='52.63', photon_index='2.12' WHERE bin_id='1301' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:00:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 7756: <4FGL_J1504.4+1029_daily_bin1301> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1301> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 21:46:06 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:46:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 21:46:07 2021
Terminated at Fri Sep 10 22:00:39 2021
Results reported at Fri Sep 10 22:00:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1301 226.103 10.4978 576547201 576806401 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 :                                   692.15 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             271.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            873 sec.

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

