/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 = 7484
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1504.4+1029_daily_bin302
RA = 226.103, Dec = 10.4978
tmin = 317606401, tmax = 317865601
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='997519', job_status='RUN', time_executed='2021-09-10 21:16:27.008202', time_epoch_executed='1631333787.01' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='302'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997519

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997519/ft1_4FGL_J1504.4+1029_daily_bin302.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997519/ft2_4FGL_J1504.4+1029_daily_bin302.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997519/ft1_4FGL_J1504.4+1029_daily_bin302.fits outfile=/scratch/kocevski/997519/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin302.fits ra=226.103 dec=10.4978 rad=12.0 tmin=317606401.0 tmax=317865601.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.39
user 3.17
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/997519/ft1_filtered_4FGL_J1504.4+1029_daily_bin302.fits" evtable="EVENTS" scfile=/scratch/kocevski/997519/ft2_4FGL_J1504.4+1029_daily_bin302.fits sctable="SC_DATA" outfile=/scratch/kocevski/997519/ltcube_317606401_317865601_4FGL_J1504.4+1029_daily_bin302.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/997519/ft2_4FGL_J1504.4+1029_daily_bin302.fits
.....................!
real 11.80
user 11.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997519/ft1_filtered_4FGL_J1504.4+1029_daily_bin302.fits evtable="EVENTS" scfile=/scratch/kocevski/997519/ft2_4FGL_J1504.4+1029_daily_bin302.fits sctable="SC_DATA" expcube=/scratch/kocevski/997519/ltcube_317606401_317865601_4FGL_J1504.4+1029_daily_bin302.fits outfile=/scratch/kocevski/997519/expmap_317606401_317865601_4FGL_J1504.4+1029_daily_bin302.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/997519/ltcube_317606401_317865601_4FGL_J1504.4+1029_daily_bin302.fits
.....................!
real 191.62
user 186.72
sys 4.53

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/997519/ft1_filtered_4FGL_J1504.4+1029_daily_bin302.fits scfile=/scratch/kocevski/997519/ft2_4FGL_J1504.4+1029_daily_bin302.fits outfile=/scratch/kocevski/997519/cmap_317606401_317865601_4FGL_J1504.4+1029_daily_bin302.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/997519/ft1_filtered_4FGL_J1504.4+1029_daily_bin302.fits scfile=/scratch/kocevski/997519/ft2_4FGL_J1504.4+1029_daily_bin302.fits outfile=/scratch/kocevski/997519/cmap_HighResolution_317606401_317865601_4FGL_J1504.4+1029_daily_bin302.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=226.103 yref=10.4978 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1548       1.0000         .10000E-03   10000.    
     5 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.506       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.374       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .88668       1.0000         .10000E-03   10000.    
    15 'norm      '    .13081E-03   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      '    6.1210       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.0085       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.479       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1840       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .94249       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=   6706.620     FROM MIGRAD    STATUS=CONVERGED    654 CALLS     3420 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.999        .18172E-04** at limit **
   2  norm          .10000E-03    20.544       -.62221E-05** at limit **
   3  Prefactor     .10000E-03    2.4318       -.57088E-07** at limit **
   4  Prefactor     3.1571        6.5316       -.53209E-06   -.43254E-03
   5  norm          .10000E-03    2.2847        .59941E-08** at limit **
   6  Prefactor     .10000E-03    35.449       -.18324E-05** at limit **
   7  Prefactor     .10000E-03    10.493        .65061E-05** at limit **
   8  norm          .10000E-03    6.8110        .31665E-05** at limit **
   9  Prefactor     23.504        23.426       -.19608E-05    .23443E-04
  10  Prefactor     .10000E-03    19.333       -.13378E-04** at limit **
  11  Prefactor     12.375        14.660       -.77333E-06   -.54044E-03
  12  Prefactor     .10000E-03    7.6966       -.72440E-05** at limit **
  13  Prefactor     .10000E-03    23.407        .89938E-05** at limit **
  14  norm          .88670        .23081        .37254E-08    .13949E-02
  15  norm          .10034E-03    .98876       -.10221E-05** at limit **
  16  norm          .10000E-03    3.2946       -.24675E-06** at limit **
  17  norm          .10000E-03    23.391        .87665E-05** at limit **
  18  norm          6.1211        3.8657        .44416E-06    .36441E-03
  19  Prefactor     8.0087        45.327       -.12851E-05   -.11117E-04
  20  Prefactor     .10000E-03    22.363        .36092E-05** at limit **
  21  Prefactor     .10000E-03    10.131        .78770E-05** at limit **
  22  Prefactor     .10000E-03    3.0156       -.17033E-06** at limit **
  23  Prefactor     .10000E-03    8.3618       -.95220E-06** at limit **
  24  Prefactor     10.479        12.007        .44243E-06    .33237E-03
  25  norm          .10000E-03    .93269        .52700E-08** at limit **
  26  Prefactor     .10000E-03    38.205       -.20470E-04** at limit **
  27  Normalizat    1.1839        .22233        .69481E-06    .22904E-03
  28  Prefactor     .94254        .12723       -.41983E-07    .38889E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.15713
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.5043
  Prefactor  = 0.0001
  Prefactor  = 12.3754
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.886704
  norm       = 0.000100339
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.12112
  Prefactor  = 8.00866
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4793
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.18387
  Prefactor  = 0.942541
 **********
 **   18 **HESSE 
 **********

 FCN=   6706.620     FROM HESSE     STATUS=OK           507 CALLS     3927 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    20.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.4366        .12466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.1571        6.5676        .22820E-03   -1.5353    
   5  norm          .10000E-03    2.3754        .24163E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    35.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.8204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.504        23.415        .82619E-04   -1.4738    
  10  Prefactor     .10000E-03    19.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.375        14.742        .56937E-03   -1.5004    
  12  Prefactor     .10000E-03    7.6838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .88670        .23139        .19085E-04   -1.5520    
  15  norm          .10034E-03    12.729        .15393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.3053        .14517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    23.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.1211        3.8526        .12378E-03   -1.5213    
  19  Prefactor     8.0087        45.429        .14168E-03   -1.5142    
  20  Prefactor     .10000E-03    22.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.0528        .13886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.3647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.479        12.024        .61886E-03   -1.5060    
  25  norm          .10000E-03    .96109        .15446E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    38.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1839        .27393        .29519E-03   -.87103    
  28  Prefactor     .94254        .15707        .19515E-03   -.94670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68139e-08
Minuit parameter uncertainties:
  1  3.53982e-05
  2  4.31793e-06
  3  2.23256e-06
  4  6.56907
  5  4.41952e-06
  6  3.15535e-06
  7  3.90795e-06
  8  3.32386e-06
  9  23.4244
  10  3.31093e-05
  11  14.7462
  12  9.20683e-06
  13  1.30202e-05
  14  0.231392
  15  0.00415395
  16  1.11948e-07
  17  3.48679e-06
  18  3.8528
  19  38.1925
  20  2.62467e-06
  21  4.85661e-06
  22  1.18369e-06
  23  7.28921e-07
  24  12.0265
  25  3.71904e-07
  26  9.72812e-07
  27  0.274262
  28  0.157142
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  8.867e-01  2.314e-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:  9.425e-01  1.571e-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.184e+00  2.743e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 46.91
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.16e-07 +/- 5.63e-08
Energy Flux (Fixed Index): 8.74e-05 +/- 2.28e-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) = 6706.40427242
delta logL = 0.215816952353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6706.38011786
delta logL = 0.23997151844

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .88304       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3171       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95839       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=   6706.380     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      204 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .88303        .57033        .40950E-02   -.68486E-02
   2  alpha         2.3170        .67849        .18972       -.12410E-03
   3  Normalizat    1.1398        .22112        .67743E-01    .11294E-03
   4  Prefactor     .95839        .12950        .45745E-01    .37379E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.883033
  alpha      = 2.31705
  Normalizat = 1.13981
  Prefactor  = 0.958393
 **********
 **   18 **HESSE 
 **********

 FCN=   6706.380     FROM HESSE     STATUS=OK            29 CALLS      233 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .88303        .22376        .18118E-04   -1.5520    
   2  alpha         2.3170        .27945        .80826E-02   -.73246E-01
   3  Normalizat    1.1398        .26875        .29971E-03   -.88484    
   4  Prefactor     .95839        .15732        .19359E-03   -.94130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.72545e-10
Minuit parameter uncertainties:
  1  0.223758
  2  0.280043
  3  0.269069
  4  0.157392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/997519': 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) = 6706.38011786
delta logL = 0.239971519223

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  8.830e-01  2.238e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.317e+00  2.800e-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:  9.584e-01  1.574e-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.140e+00  2.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 47.44
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.32 +/- 0.28
Photon Flux (Free Index): 2.50e-07 +/- 7.72e-08
Energy Flux (Free Index): 8.13e-05 +/- 2.17e-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/997519/cmap_HighResolution_317606401_317865601_4FGL_J1504.4+1029_daily_bin302.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.16e-07', energy_flux2='8.13e-05', photon_flux_error='5.63e-08', dlogl='2.40e-01', energy_flux='8.74e-05', photon_flux2='2.50e-07', job_status='DONE', time_completed='2021-09-10 21:26:56.116553', photon_index_error2='0.28', photon_index2='2.32', ts='46.91', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='2.17e-05', EG='1.18', time_epoch_completed='1631334416.12', return_code='0', job_id='997519', GAL2='0.96', EG2='1.14', return_code2='0', energy_flux_error='2.28e-05', photon_flux_error2='7.72e-08', ts2='47.44', photon_index='2.12' WHERE bin_id='302' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:26:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 997519: <4FGL_J1504.4+1029_daily_bin302> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin302> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 21:16:09 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:16:10 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:16:10 2021
Terminated at Fri Sep 10 21:26:56 2021
Results reported at Fri Sep 10 21:26:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin302 226.103 10.4978 317606401 317865601 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 :                                   625.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             332.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   646 sec.
    Turnaround time :                            647 sec.

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

