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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1378
RA = 226.103, Dec = 10.4978
tmin = 596505601, tmax = 596764801
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='7871', job_status='RUN', time_executed='2021-09-10 21:46:31.751484', time_epoch_executed='1631335591.75' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1378'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7871

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7871/ft1_4FGL_J1504.4+1029_daily_bin1378.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7871/ft2_4FGL_J1504.4+1029_daily_bin1378.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7871/ft1_4FGL_J1504.4+1029_daily_bin1378.fits outfile=/scratch/kocevski/7871/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1378.fits ra=226.103 dec=10.4978 rad=12.0 tmin=596505601.0 tmax=596764801.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 2.79
user 2.58
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7871/ft1_filtered_4FGL_J1504.4+1029_daily_bin1378.fits" evtable="EVENTS" scfile=/scratch/kocevski/7871/ft2_4FGL_J1504.4+1029_daily_bin1378.fits sctable="SC_DATA" outfile=/scratch/kocevski/7871/ltcube_596505601_596764801_4FGL_J1504.4+1029_daily_bin1378.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/7871/ft2_4FGL_J1504.4+1029_daily_bin1378.fits
.....................!
real 9.33
user 8.98
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7871/ft1_filtered_4FGL_J1504.4+1029_daily_bin1378.fits evtable="EVENTS" scfile=/scratch/kocevski/7871/ft2_4FGL_J1504.4+1029_daily_bin1378.fits sctable="SC_DATA" expcube=/scratch/kocevski/7871/ltcube_596505601_596764801_4FGL_J1504.4+1029_daily_bin1378.fits outfile=/scratch/kocevski/7871/expmap_596505601_596764801_4FGL_J1504.4+1029_daily_bin1378.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/7871/ltcube_596505601_596764801_4FGL_J1504.4+1029_daily_bin1378.fits
.....................!
real 149.45
user 145.53
sys 3.59

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 145 point sources and 0 extended sources

Setting source of interest to:
4FGL J1504.4+1029 @ 226.103 10.4978

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/7871/ft1_filtered_4FGL_J1504.4+1029_daily_bin1378.fits scfile=/scratch/kocevski/7871/ft2_4FGL_J1504.4+1029_daily_bin1378.fits outfile=/scratch/kocevski/7871/cmap_596505601_596764801_4FGL_J1504.4+1029_daily_bin1378.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.45
user 0.31
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7871/ft1_filtered_4FGL_J1504.4+1029_daily_bin1378.fits scfile=/scratch/kocevski/7871/ft2_4FGL_J1504.4+1029_daily_bin1378.fits outfile=/scratch/kocevski/7871/cmap_HighResolution_596505601_596764801_4FGL_J1504.4+1029_daily_bin1378.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.46
user 0.30
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    74.244       1.0000         .10000E-03   10000.    
     2 'norm      '    .53886E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.9399       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1494       1.0000         .10000E-03   10000.    
     5 'norm      '    .20846E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.9597       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5077       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.340       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.824       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.349       1.0000         .10000E-03   10000.    
    14 'norm      '    .75572       1.0000         .10000E-03   10000.    
    15 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10271E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.4441       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.340       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    59.898       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.5264       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12699E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .83421       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1130       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=   7502.065     FROM MIGRAD    STATUS=CONVERGED    696 CALLS     3498 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     74.145        40.965       -.42616E-05   -.11093E-03
   2  norm          .10000E-03    189.29        .43292E-04** at limit **
   3  Prefactor     8.9394        8.9215        .53364E-06    .25163E-04
   4  Prefactor     6.1524        7.1062       -.22248E-05    .51510E-04
   5  norm          .10000E-03    1.7763        .29993E-06** at limit **
   6  Prefactor     .10000E-03    15.608        .10530E-06** at limit **
   7  Prefactor     .10000E-03    24.268        .11577E-05** at limit **
   8  norm          9.9666        18.211       -.85989E-06   -.60165E-05
   9  Prefactor     1.5204        51.076       -.35042E-05    .14818E-04
  10  Prefactor     .10000E-03    21.635        .98274E-06** at limit **
  11  Prefactor     14.342        14.412        .17954E-06    .19141E-04
  12  Prefactor     16.819        23.508        .10208E-05    .74603E-05
  13  Prefactor     25.342        32.908        .64799E-07    .39970E-05
  14  norm          .75586        .22305       -.14234E-07   -.92047E-04
  15  norm          .10000E-03    .61394       -.64569E-07** at limit **
  16  norm          .10000E-03    1.7063       -.52972E-08** at limit **
  17  norm          .10000E-03    41.961       -.12861E-05** at limit **
  18  norm          2.4440        2.2317       -.14387E-07   -.14257E-05
  19  Prefactor     10.333        36.577       -.90086E-06    .24513E-04
  20  Prefactor     .10000E-03    20.652       -.17262E-08** at limit **
  21  Prefactor     59.911        36.255       -.23706E-06    .42932E-04
  22  Prefactor     3.5256        4.1452       -.11007E-05   -.35828E-04
  23  Prefactor     .10000E-03    24.709       -.46637E-06** at limit **
  24  Prefactor     .10000E-03    43.263        .52928E-06** at limit **
  25  norm          .10000E-03    1.0597       -.38887E-07** at limit **
  26  Prefactor     .10000E-03    19.922       -.90103E-06** at limit **
  27  Normalizat    .83425        .23477       -.82159E-06   -.10358E-03
  28  Prefactor     1.1129        .13212        .10589E-05   -.26163E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 74.1449
  norm       = 0.0001
  Prefactor  = 8.93944
  Prefactor  = 6.1524
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.96655
  Prefactor  = 1.52041
  Prefactor  = 0.0001
  Prefactor  = 14.3425
  Prefactor  = 16.8193
  Prefactor  = 25.3419
  norm       = 0.75586
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 2.44399
  Prefactor  = 10.3334
  Prefactor  = 0.0001
  Prefactor  = 59.9115
  Prefactor  = 3.5256
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.834248
  Prefactor  = 1.11293
 **********
 **   18 **HESSE 
 **********

 FCN=   7502.065     FROM HESSE     STATUS=OK           521 CALLS     4019 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     74.145        41.091        .46597E-04   -1.3984    
   2  norm          .10000E-03    181.30        .68975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.9394        8.9167        .13405E-03   -1.5110    
   4  Prefactor     6.1524        7.1573        .80947E-03   -1.5212    
   5  norm          .10000E-03    4.5617        .22408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.9666        18.197        .12697E-03   -1.5076    
   9  Prefactor     1.5204        51.009        .34846E-03   -1.5461    
  10  Prefactor     .10000E-03    21.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.342        14.412        .10577E-03   -1.4950    
  12  Prefactor     16.819        23.422        .97645E-04   -1.4888    
  13  Prefactor     25.342        32.891        .79564E-04   -1.4701    
  14  norm          .75586        .22283        .21009E-04   -1.5534    
  15  norm          .10000E-03    .62022        .66239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.7068        .11049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    42.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.4440        2.2399        .12042E-03   -1.5395    
  19  Prefactor     10.333        36.567        .12460E-03   -1.5065    
  20  Prefactor     .10000E-03    20.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     59.911        36.273        .51841E-04   -1.4158    
  22  Prefactor     3.5256        4.1366        .92594E-03   -1.5332    
  23  Prefactor     .10000E-03    24.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    43.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.0678        .87070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    19.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .83425        .27254        .36422E-03   -.98811    
  28  Prefactor     1.1129        .15345        .18974E-03   -.89054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24044e-10
Minuit parameter uncertainties:
  1  41.107
  2  0.000248715
  3  8.91801
  4  7.15832
  5  5.35864e-05
  6  9.11583e-07
  7  0.000195064
  8  18.207
  9  17.6288
  10  0.000163845
  11  14.4152
  12  23.435
  13  32.914
  14  0.222835
  15  1.40667e-06
  16  4.97272e-07
  17  0.000341548
  18  2.24
  19  36.6469
  20  6.05563e-05
  21  36.2859
  22  4.1369
  23  6.81918e-05
  24  0.000422781
  25  1.67471e-06
  26  0.000155858
  27  0.27299
  28  0.153515
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  7.559e-01  2.228e-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.113e+00  1.535e-01  0.000e+00  1.000e+01 ( 1.000e+00)
470        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
471        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
468   Normalization:  8.342e-01  2.730e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 38.77
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.84e-07 +/- 5.42e-08
Energy Flux (Fixed Index): 7.45e-05 +/- 2.20e-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) = 7502.05487852
delta logL = 0.00988732440874

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7502.05334086
delta logL = 0.011424982572

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74588       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0763       1.0000          .0000       5.0000    
     3 'Normalizat'    .84449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1097       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=   7502.053     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      199 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74598        .24119        .47861E-02    .28009E-03
   2  alpha         2.0763        .31074        .22833       -.13539E-04
   3  Normalizat    .84450        .22384        .81824E-01    .29493E-04
   4  Prefactor     1.1096        .13089        .37231E-01   -.23692E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.745985
  alpha      = 2.07626
  Normalizat = 0.844495
  Prefactor  = 1.10964
 **********
 **   18 **HESSE 
 **********

 FCN=   7502.053     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .79E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74598        .23289        .21190E-04   -1.5535    
   2  alpha         2.0763        .31734        .95276E-02   -.17032    
   3  Normalizat    .84450        .26533        .36227E-03   -.98439    
   4  Prefactor     1.1096        .15359        .19002E-03   -.89159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.93822e-14
Minuit parameter uncertainties:
  1  0.232886
  2  0.318222
  3  0.26574
  4  0.153646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7871': 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) = 7502.05334062
delta logL = 0.0114252244875

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  7.460e-01  2.329e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.076e+00  3.182e-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.110e+00  1.536e-01  0.000e+00  1.000e+01 ( 1.000e+00)
470        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
471        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
468   Normalization:  8.445e-01  2.657e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 38.64
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.08 +/- 0.32
Photon Flux (Free Index): 1.75e-07 +/- 7.60e-08
Energy Flux (Free Index): 7.57e-05 +/- 2.42e-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/7871/cmap_HighResolution_596505601_596764801_4FGL_J1504.4+1029_daily_bin1378.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.84e-07', energy_flux2='7.57e-05', photon_flux_error='5.42e-08', dlogl='1.14e-02', energy_flux='7.45e-05', photon_flux2='1.75e-07', job_status='DONE', time_completed='2021-09-10 21:55:02.950234', photon_index_error2='0.32', photon_index2='2.08', ts='38.77', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='2.42e-05', EG='0.83', time_epoch_completed='1631336102.95', return_code='0', job_id='7871', GAL2='1.11', EG2='0.84', return_code2='0', energy_flux_error='2.20e-05', photon_flux_error2='7.60e-08', ts2='38.64', photon_index='2.12' WHERE bin_id='1378' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:55:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 7871: <4FGL_J1504.4+1029_daily_bin1378> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1378> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 21:46:15 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:46: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:46:17 2021
Terminated at Fri Sep 10 21:55:03 2021
Results reported at Fri Sep 10 21:55:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1378 226.103 10.4978 596505601 596764801 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 :                                   506.44 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             293.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   526 sec.
    Turnaround time :                            528 sec.

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

