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


Performing analysis on: 4FGL_J1503.5+4759_daily_bin731
RA = 225.895, Dec = 47.9959
tmin = 428803201, tmax = 429062401
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='950941', job_status='RUN', time_executed='2021-09-10 18:36:43.294768', time_epoch_executed='1631324203.29' WHERE source_name='4FGL J1503.5+4759' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950941

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950941/ft1_4FGL_J1503.5+4759_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950941/ft2_4FGL_J1503.5+4759_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950941/ft1_4FGL_J1503.5+4759_daily_bin731.fits outfile=/scratch/kocevski/950941/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin731.fits ra=225.895 dec=47.9959 rad=12.0 tmin=428803201.0 tmax=429062401.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 6.57
user 6.31
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/950941/ft2_4FGL_J1503.5+4759_daily_bin731.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/950941/ft2_4FGL_J1503.5+4759_daily_bin731.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/950941/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin731.fits evtable="EVENTS" outfile="/scratch/kocevski/950941/ft1_filtered_4FGL_J1503.5+4759_daily_bin731.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950941/ft1_filtered_4FGL_J1503.5+4759_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/950941/ft2_4FGL_J1503.5+4759_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/950941/ltcube_428803201_429062401_4FGL_J1503.5+4759_daily_bin731.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/950941/ft2_4FGL_J1503.5+4759_daily_bin731.fits
.....................!
real 11.84
user 11.50
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950941/ft1_filtered_4FGL_J1503.5+4759_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/950941/ft2_4FGL_J1503.5+4759_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/950941/ltcube_428803201_429062401_4FGL_J1503.5+4759_daily_bin731.fits outfile=/scratch/kocevski/950941/expmap_428803201_429062401_4FGL_J1503.5+4759_daily_bin731.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/950941/ltcube_428803201_429062401_4FGL_J1503.5+4759_daily_bin731.fits
.....................!
real 190.73
user 186.04
sys 4.33

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 203 point sources and 0 extended sources

Setting source of interest to:
4FGL J1503.5+4759 @ 225.895 47.9959

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/950941/ft1_filtered_4FGL_J1503.5+4759_daily_bin731.fits scfile=/scratch/kocevski/950941/ft2_4FGL_J1503.5+4759_daily_bin731.fits outfile=/scratch/kocevski/950941/cmap_428803201_429062401_4FGL_J1503.5+4759_daily_bin731.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=225.895 yref=47.9959 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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950941/ft1_filtered_4FGL_J1503.5+4759_daily_bin731.fits scfile=/scratch/kocevski/950941/ft2_4FGL_J1503.5+4759_daily_bin731.fits outfile=/scratch/kocevski/950941/cmap_HighResolution_428803201_429062401_4FGL_J1503.5+4759_daily_bin731.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=225.895 yref=47.9959 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.56
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950941/ft1_filtered_4FGL_J1503.5+4759_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/950941/ft2_4FGL_J1503.5+4759_daily_bin731.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950941/Model_4FGL_J1503.5+4759_daily_bin731.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/950941/ft1_filtered_4FGL_J1503.5+4759_daily_bin731.fits.....................!
real 42.01
user 40.68
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/950941/ft1_filtered_4FGL_J1503.5+4759_daily_bin731.fits', '/scratch/kocevski/950941/ft2_4FGL_J1503.5+4759_daily_bin731.fits', expMap='/scratch/kocevski/950941/expmap_428803201_429062401_4FGL_J1503.5+4759_daily_bin731.fits', expCube='/scratch/kocevski/950941/ltcube_428803201_429062401_4FGL_J1503.5+4759_daily_bin731.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/950941/Model_4FGL_J1503.5+4759_daily_bin731.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1503.5+4759'

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  2.127e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.221e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  1.746e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/950941/ft1_filtered_4FGL_J1503.5+4759_daily_bin731.fits
Spacecraft file(s): /scratch/kocevski/950941/ft2_4FGL_J1503.5+4759_daily_bin731.fits
Exposure map: /scratch/kocevski/950941/expmap_428803201_429062401_4FGL_J1503.5+4759_daily_bin731.fits
Exposure cube: /scratch/kocevski/950941/ltcube_428803201_429062401_4FGL_J1503.5+4759_daily_bin731.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/950941/Model_4FGL_J1503.5+4759_daily_bin731.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) = 4855.06646994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7748       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.288       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.9067       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.491       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    125.68       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .64107       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3779       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.5945       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.2007       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.0143       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.5321       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    62.822       1.0000         .10000E-03   10000.    
    25 'Prefactor '    30.654       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .70893E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .15506E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.7862       1.0000         .10000E-03   10000.    
    30 'Prefactor '    193.89       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2162       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .74853       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+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=   4855.058     FROM MIGRAD    STATUS=CONVERGED   1590 CALLS     5246 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.922        .18142E-02** at limit **
   2  Prefactor     .10000E-03    28.992        .18142E-02** at limit **
   3  Prefactor     4.7726        6.3639        .18412E-03    .42171E-04
   4  Prefactor     15.291        31.090        .10243E-03    .48279E-04
   5  Prefactor     6.9117        10.521        .76330E-03   -.59919E-04
   6  Prefactor     19.502        33.090        .90722E-04    .15288E-04
   7  Prefactor     .10000E-03    77.437        .18142E-02** at limit **
   8  Prefactor     125.47        149.96        .17954E-03   -.23113E-04
   9  Prefactor     1.2283        169.20        .22248        .46786E-04
  10  Prefactor     2.4009        90.444        .26566E-03    .23408E-04
  11  Prefactor     .10000E-03    49.841        .18142E-02** at limit **
  12  norm          .10000E-03    5.7642        .16258E-02** at limit **
  13  Prefactor     .10000E-03    42.996        .18142E-02** at limit **
  14  Prefactor     .10000E-03    13.107        .18142E-02** at limit **
  15  Prefactor     .10000E-03    6.6930        .17600E-02** at limit **
  16  norm          3.5937        2.3990        .84815E-04    .28564E-03
  17  Prefactor     4.2009        5.6675        .18180E-03   -.27015E-04
  18  Prefactor     .10000E-03    7.9297        .18142E-02** at limit **
  19  Prefactor     .10000E-03    3.9323        .13471E-02** at limit **
  20  norm          3.0146        1.7995        .66379E-04   -.15174E-03
  21  Prefactor     .10000E-03    8.4292        .18142E-02** at limit **
  22  norm          4.5324        3.6891        .11558E-03   -.17085E-03
  23  Prefactor     .10000E-03    6.8565        .17772E-02** at limit **
  24  Prefactor     62.821        68.183        .50628E-04    .93415E-05
  25  Prefactor     30.666        26.496        .72367E-04   -.13058E-03
  26  Prefactor     .10000E-03    18.825        .18142E-02** at limit **
  27  norm          .10001E-03    20.886        .77996E-01** at limit **
  28  Prefactor     .10010E-03    64.350        .47972E-02** at limit **
  29  Prefactor     8.7881        17.659        .13523E-03    .50443E-06
  30  Prefactor     193.94        133.22        .14504E-03    .33312E-04
  31  Normalizat    1.2159        .26800        .24174E-03   -.13662E-03
  32  Prefactor     .74880        .25635        .30519E-03   -.75508E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.77264
  Prefactor  = 15.2909
  Prefactor  = 6.91173
  Prefactor  = 19.5018
  Prefactor  = 0.000100001
  Prefactor  = 125.467
  Prefactor  = 1.22828
  Prefactor  = 2.40092
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.59367
  Prefactor  = 4.20088
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.01463
  Prefactor  = 0.0001
  norm       = 4.53243
  Prefactor  = 0.0001
  Prefactor  = 62.8206
  Prefactor  = 30.6661
  Prefactor  = 0.0001
  norm       = 0.00010001
  Prefactor  = 0.000100099
  Prefactor  = 8.78807
  Prefactor  = 193.938
  Normalizat = 1.21588
  Prefactor  = 0.748799
 **********
 **   18 **HESSE 
 **********

 FCN=   4855.058     FROM HESSE     STATUS=OK           647 CALLS     5893 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.922        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    28.992        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.7726        6.3639        .73650E-05   -1.5271    
   4  Prefactor     15.291        31.094        .40974E-05   -1.4926    
   5  Prefactor     6.9117        10.525        .30532E-04   -1.5182    
   6  Prefactor     19.502        33.088        .36289E-05   -1.4824    
   7  Prefactor     .10000E-03    77.439        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     125.47        150.17        .71814E-05   -1.3463    
   9  Prefactor     1.2283        174.15        .21867       -1.5486    
  10  Prefactor     2.4009        90.350        .10626E-04   -1.5398    
  11  Prefactor     .10000E-03    49.843        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.7659        .32517E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    43.000        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.107        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.6931        .35200E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.5937        2.3991        .33926E-05   -1.5329    
  17  Prefactor     4.2009        5.6672        .72720E-05   -1.5298    
  18  Prefactor     .10000E-03    7.9304        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.9325        .26942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.0146        1.7994        .26552E-05   -1.5361    
  21  Prefactor     .10000E-03    8.4299        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.5324        3.6888        .46233E-05   -1.5282    
  23  Prefactor     .10000E-03    6.8572        .35543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     62.821        68.183        .10126E-04   -1.4121    
  25  Prefactor     30.666        26.494        .14473E-04   -1.4600    
  26  Prefactor     .10000E-03    18.830        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10001E-03    18.544        .84571E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10010E-03    65.641        .95944E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     8.7881        17.659        .54090E-05   -1.5115    
  30  Prefactor     193.94        133.23        .58018E-05   -1.2914    
  31  Normalizat    1.2159        .26824        .48349E-04   -.86113    
  32  Prefactor     .74880        .25647        .12208E-04   -1.0164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85982e-09
Minuit parameter uncertainties:
  1  4.51722e-05
  2  4.30973e-05
  3  6.36478
  4  31.1268
  5  10.5282
  6  33.1188
  7  0.000422754
  8  150.631
  9  29.3375
  10  29.5041
  11  9.17182e-05
  12  1.31763e-06
  13  8.76084e-05
  14  9.48604e-06
  15  4.50914e-06
  16  2.39911
  17  5.66796
  18  1.19521e-05
  19  2.1364e-06
  20  1.79939
  21  1.16838e-05
  22  3.68899
  23  2.19886e-05
  24  68.2678
  25  26.5043
  26  0.000101352
  27  0.000873657
  28  0.00510832
  29  17.6693
  30  133.438
  31  0.268545
  32  0.256878
Done.

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

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  2.136e-06  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.221e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  1.746e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  7.488e-01  2.569e-01  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  1.216e+00  2.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 225.895 47.996
Photon Flux Upper Limit: 8.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950941/likelihoodResults_428803201_429062401_4FGL_J1503.5+4759_daily_bin731.txt

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): 102
logL (Free Index) = 4855.05948984
delta logL = -0.00120510042416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4855.05828473
delta logL = 1.75487002707e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2126       1.0000          .0000       10.000    
     3 'Normalizat'    1.2159       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74881       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4855.058     FROM MIGRAD    STATUS=FAILED        93 CALLS      249 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    485.12        .13509E-02** at limit **
   2  Index         2.2044        8.1849        .50000        .17105E-04
   3  Normalizat    1.2159        .69607E-01    .24174E-03   -.21633E-05
   4  Prefactor     .74880        .70947E-01    .30519E-03   -.15273E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4855.058     FROM SIMPLEX   STATUS=UNCHANGED    181 CALLS      430 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    485.12        .33571E-03** at limit **
   2  Index         2.2044        8.1849        .44878E-05    .17105E-04
   3  Normalizat    1.2159        .69607E-01    .84631E-07   -.21633E-05
   4  Prefactor     .74880        .70947E-01    .38397E-07   -.15273E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4855.058     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      464 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4441        .27017E-03** at limit **
   2  Index         2.2042        5.9903        .50000        .17100E-04
   3  Normalizat    1.2159        .24409        .96697E-05   -.47028E-06
   4  Prefactor     .74880        .24869        .12208E-04   -.18625E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.20421
  Normalizat = 1.21588
  Prefactor  = 0.748798
 **********
 **   18 **HESSE 
 **********

 FCN=   4855.058     FROM HESSE     STATUS=OK            29 CALLS      493 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0077        .54035E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2042        6.1010        .50000       -.59337    
   3  Normalizat    1.2159        .24410        .19339E-05   -.86113    
   4  Prefactor     .74880        .24876        .24416E-05   -1.0164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.2442e-10
Minuit parameter uncertainties:
  1  0.000137118
  2  4.17658
  3  0.24433
  4  0.249127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950941': 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) = 4855.05828467
delta logL = 6.95908966009e-08

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  1.371e-04  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.204e+00  4.177e+00  0.000e+00  1.000e+01 (-1.000e+00)
294        Scale:  1.746e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  7.488e-01  2.491e-01  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  1.216e+00  2.443e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 225.895 47.996

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/950941/cmap_HighResolution_428803201_429062401_4FGL_J1503.5+4759_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.18e-03', job_status='DONE', photon_flux_upper_limit='8.09e-08', time_completed='2021-09-10 18:51:38.497184', job_id='950941', GAL2='0.75', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1631325098.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='6.96e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='731' AND source_name='4FGL J1503.5+4759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:51:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 950941: <4FGL_J1503.5+4759_daily_bin731> in cluster <slac> Done

Job <4FGL_J1503.5+4759_daily_bin731> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 10 18:36:32 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 18:36:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 18:36:34 2021
Terminated at Fri Sep 10 18:51:39 2021
Results reported at Fri Sep 10 18:51:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1503.5+4759_daily_bin731 225.895 47.9959 428803201 429062401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1503.5+4759 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   886.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            907 sec.

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

