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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1519
RA = 226.103, Dec = 10.4978
tmin = 633052801, tmax = 633312001
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='9198', job_status='RUN', time_executed='2021-09-10 21:53:43.767236', time_epoch_executed='1631336023.77' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1519'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9198

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9198/ft1_4FGL_J1504.4+1029_daily_bin1519.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9198/ft2_4FGL_J1504.4+1029_daily_bin1519.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9198/ft1_4FGL_J1504.4+1029_daily_bin1519.fits outfile=/scratch/kocevski/9198/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1519.fits ra=226.103 dec=10.4978 rad=12.0 tmin=633052801.0 tmax=633312001.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.65
user 3.37
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/9198/ft1_filtered_4FGL_J1504.4+1029_daily_bin1519.fits" evtable="EVENTS" scfile=/scratch/kocevski/9198/ft2_4FGL_J1504.4+1029_daily_bin1519.fits sctable="SC_DATA" outfile=/scratch/kocevski/9198/ltcube_633052801_633312001_4FGL_J1504.4+1029_daily_bin1519.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/9198/ft2_4FGL_J1504.4+1029_daily_bin1519.fits
.....................!
real 13.05
user 12.64
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9198/ft1_filtered_4FGL_J1504.4+1029_daily_bin1519.fits evtable="EVENTS" scfile=/scratch/kocevski/9198/ft2_4FGL_J1504.4+1029_daily_bin1519.fits sctable="SC_DATA" expcube=/scratch/kocevski/9198/ltcube_633052801_633312001_4FGL_J1504.4+1029_daily_bin1519.fits outfile=/scratch/kocevski/9198/expmap_633052801_633312001_4FGL_J1504.4+1029_daily_bin1519.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/9198/ltcube_633052801_633312001_4FGL_J1504.4+1029_daily_bin1519.fits
.....................!
real 190.06
user 185.29
sys 4.28

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/9198/ft1_filtered_4FGL_J1504.4+1029_daily_bin1519.fits scfile=/scratch/kocevski/9198/ft2_4FGL_J1504.4+1029_daily_bin1519.fits outfile=/scratch/kocevski/9198/cmap_633052801_633312001_4FGL_J1504.4+1029_daily_bin1519.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/9198/ft1_filtered_4FGL_J1504.4+1029_daily_bin1519.fits scfile=/scratch/kocevski/9198/ft2_4FGL_J1504.4+1029_daily_bin1519.fits outfile=/scratch/kocevski/9198/cmap_HighResolution_633052801_633312001_4FGL_J1504.4+1029_daily_bin1519.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .84175E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3304       1.0000         .10000E-03   10000.    
     5 'norm      '    .10260E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.197       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .56735E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .49029E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .74403       1.0000         .10000E-03   10000.    
    15 'norm      '    4.5494       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.8825       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.5640       1.0000         .10000E-03   10000.    
    21 'Prefactor '    63.107       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.097       1.0000         .10000E-03   10000.    
    25 'norm      '    .56772       1.0000         .10000E-03   10000.    
    26 'Prefactor '    48.994       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .87516       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1444       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8278.416     FROM MIGRAD    STATUS=CONVERGED    133 CALLS     2961 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6.8820        .29370E-06** at limit **
   2  norm          .10000E-03    10.164       -.13300E-05** at limit **
   3  Prefactor     .10002E-03    3.3219        .10085E-04** at limit **
   4  Prefactor     3.3384        6.3606       -.33501E-06    .21244E-04
   5  norm          .10000E-03    5.0578        .82890E-07** at limit **
   6  Prefactor     .10001E-03    10.928        .14156E-04** at limit **
   7  Prefactor     .10000E-03    7.5233       -.10305E-04** at limit **
   8  norm          .10000E-03    6.9897       -.21845E-06** at limit **
   9  Prefactor     15.198        1.0623       -.95722E-07   -.16200E-04
  10  Prefactor     .10003E-03    315.09       -.71917E-05** at limit **
  11  Prefactor     .10001E-03    84.630        .24284E-04** at limit **
  12  Prefactor     .10000E-03    9.6758        .60060E-05** at limit **
  13  Prefactor     .10000E-03    48.917       -.13233E-04** at limit **
  14  norm          .74407        .20112       -.27992E-07   -.13466E-02
  15  norm          4.5492        2.2550       -.14713E-07   -.87901E-04
  16  norm          .10000E-03    2.5952       -.80603E-07** at limit **
  17  norm          .10001E-03    8.8961       -.37066E-06** at limit **
  18  norm          4.8821        3.3637       -.29312E-07    .32672E-04
  19  Prefactor     .10000E-03    29.240        .96485E-05** at limit **
  20  Prefactor     9.5622        1.0313        .11847E-06   -.15245E-04
  21  Prefactor     63.107        1.2409       -.22754E-06    .94136E-03
  22  Prefactor     .10000E-03    1.3405       -.14774E-06** at limit **
  23  Prefactor     .10002E-03    13.858       -.13350E-04** at limit **
  24  Prefactor     10.095        1.0115       -.20520E-07    .19487E-04
  25  norm          .56777        2.1559        .57318E-07    .77640E-05
  26  Prefactor     48.987        1.5930       -.40112E-06    .14405E-02
  27  Normalizat    .87487        .24545       -.54035E-06   -.91971E-04
  28  Prefactor     1.1446        .14673        .53865E-07   -.16819E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  norm       = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 3.33843
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 15.1978
  Prefactor  = 0.000100034
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.744066
  norm       = 4.54918
  norm       = 0.0001
  norm       = 0.000100015
  norm       = 4.88208
  Prefactor  = 0.000100001
  Prefactor  = 9.5622
  Prefactor  = 63.1072
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 10.0952
  norm       = 0.567767
  Prefactor  = 48.987
  Normalizat = 0.874869
  Prefactor  = 1.14457
 **********
 **   18 **HESSE 
 **********

 FCN=   8278.416     FROM HESSE     STATUS=OK           593 CALLS     3554 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    17.654        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    10.207        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    4.1428        .63520E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.3384        6.5425        .55450E-02   -1.5343    
   5  norm          .10000E-03    2.0825        .43081E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    16.267        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.682        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.9777        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.198        19.796        .25686E-02   -1.4928    
  10  Prefactor     .10003E-03    11.621        .11343       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    9.3278        .96147E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.852        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    48.977        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .74407        .20220        .45811E-02   -1.5535    
  15  norm          4.5492        2.2682        .47185E-02   -1.5281    
  16  norm          .10000E-03    2.5902        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10001E-03    13.966        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.8821        3.3687        .45510E-02   -1.5266    
  19  Prefactor     .10000E-03    29.341        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.5622        19.326        .32396E-02   -1.5089    
  21  Prefactor     63.107        39.005        .12628E-02   -1.4117    
  22  Prefactor     .10000E-03    1.3364        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10002E-03    18.903        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.095        15.743        .31525E-02   -1.5072    
  25  norm          .56777        2.1702        .11544E-01   -1.5557    
  26  Prefactor     48.987        65.103        .14322E-02   -1.4307    
  27  Normalizat    .87487        .22013        .79838E-01   -.97349    
  28  Prefactor     1.1446        .12562        .36102E-01   -.88054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95293e-08
Minuit parameter uncertainties:
  1  0.000839212
  2  0.000125372
  3  0.000499711
  4  6.54388
  5  9.78687e-07
  6  0.000746844
  7  0.000393989
  8  7.58644e-06
  9  19.8049
  10  0.00126058
  11  0.000629729
  12  2.4901e-05
  13  0.000346665
  14  0.202204
  15  2.26827
  16  2.08586e-06
  17  0.000905797
  18  3.36879
  19  0.000334566
  20  19.3386
  21  39.0209
  22  1.51915e-06
  23  0.00126186
  24  15.7498
  25  2.17051
  26  65.1981
  27  0.220356
  28  0.12565
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  7.441e-01  2.022e-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.145e+00  1.257e-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.749e-01  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 43.28
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.81e-07 +/- 4.92e-08
Energy Flux (Fixed Index): 7.34e-05 +/- 1.99e-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) = 8278.38936179
delta logL = 0.0264541926772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8278.38871935
delta logL = 0.0270966347343

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74431       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1850       1.0000          .0000       5.0000    
     3 'Normalizat'    .86499       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1480       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=   8278.389     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74433        .27296        .45245E-02   -.83676E-02
   2  alpha         2.1847        .34221        .20521       -.20927E-03
   3  Normalizat    .86556        .20765        .80204E-01    .13894E-04
   4  Prefactor     1.1477        .12473        .35996E-01    .12162E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.744334
  alpha      = 2.18466
  Normalizat = 0.865564
  Prefactor  = 1.1477
 **********
 **   18 **HESSE 
 **********

 FCN=   8278.389     FROM HESSE     STATUS=OK            29 CALLS      231 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74433        .19896        .20026E-04   -1.5535    
   2  alpha         2.1847        .25904        .87387E-02   -.12647    
   3  Normalizat    .86556        .24270        .35505E-03   -.97681    
   4  Prefactor     1.1477        .14546        .18899E-03   -.87956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.57148e-10
Minuit parameter uncertainties:
  1  0.19896
  2  0.259513
  3  0.243008
  4  0.14551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9198': 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) = 8278.38871597
delta logL = 0.0271000178836

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  7.443e-01  1.990e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.185e+00  2.595e-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.148e+00  1.455e-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.656e-01  2.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 43.23
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.18 +/- 0.26
Photon Flux (Free Index): 1.89e-07 +/- 6.13e-08
Energy Flux (Free Index): 7.12e-05 +/- 2.10e-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/9198/cmap_HighResolution_633052801_633312001_4FGL_J1504.4+1029_daily_bin1519.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.81e-07', energy_flux2='7.12e-05', photon_flux_error='4.92e-08', dlogl='2.71e-02', energy_flux='7.34e-05', photon_flux2='1.89e-07', job_status='DONE', time_completed='2021-09-10 22:04:59.043778', photon_index_error2='0.26', photon_index2='2.18', ts='43.28', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='2.10e-05', EG='0.87', time_epoch_completed='1631336699.04', return_code='0', job_id='9198', GAL2='1.15', EG2='0.87', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='6.13e-08', ts2='43.23', photon_index='2.12' WHERE bin_id='1519' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:04:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 9198: <4FGL_J1504.4+1029_daily_bin1519> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1519> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 21:51:12 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:51:13 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:51:13 2021
Terminated at Fri Sep 10 22:04:59 2021
Results reported at Fri Sep 10 22:04:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1519 226.103 10.4978 633052801 633312001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1504.4+1029 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   671.38 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             278.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            827 sec.

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

