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


Performing analysis on: 4FGL_J0515.8+1527_daily_bin1617
RA = 78.953, Dec = 15.4614
tmin = 658454401, tmax = 658713601
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='205662', job_status='RUN', time_executed='2021-12-07 15:46:15.967137', time_epoch_executed='1638920775.97' WHERE source_name='4FGL J0515.8+1527' and cadence='daily' and bin_id='1617'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/205662

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/205662/ft1_4FGL_J0515.8+1527_daily_bin1617.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/205662/ft2_4FGL_J0515.8+1527_daily_bin1617.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/205662/ft1_4FGL_J0515.8+1527_daily_bin1617.fits outfile=/scratch/kocevski/205662/ft1_filteredMKT_4FGL_J0515.8+1527_daily_bin1617.fits ra=78.953 dec=15.4614 rad=12.0 tmin=658454401.0 tmax=658713601.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.93
user 2.71
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/205662/ft2_4FGL_J0515.8+1527_daily_bin1617.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/205662/ft2_4FGL_J0515.8+1527_daily_bin1617.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/205662/ft1_filteredMKT_4FGL_J0515.8+1527_daily_bin1617.fits evtable="EVENTS" outfile="/scratch/kocevski/205662/ft1_filtered_4FGL_J0515.8+1527_daily_bin1617.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/205662/ft1_filtered_4FGL_J0515.8+1527_daily_bin1617.fits" evtable="EVENTS" scfile=/scratch/kocevski/205662/ft2_4FGL_J0515.8+1527_daily_bin1617.fits sctable="SC_DATA" outfile=/scratch/kocevski/205662/ltcube_658454401_658713601_4FGL_J0515.8+1527_daily_bin1617.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/205662/ft2_4FGL_J0515.8+1527_daily_bin1617.fits
.....................!
real 13.88
user 13.48
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/205662/ft1_filtered_4FGL_J0515.8+1527_daily_bin1617.fits evtable="EVENTS" scfile=/scratch/kocevski/205662/ft2_4FGL_J0515.8+1527_daily_bin1617.fits sctable="SC_DATA" expcube=/scratch/kocevski/205662/ltcube_658454401_658713601_4FGL_J0515.8+1527_daily_bin1617.fits outfile=/scratch/kocevski/205662/expmap_658454401_658713601_4FGL_J0515.8+1527_daily_bin1617.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/205662/ltcube_658454401_658713601_4FGL_J0515.8+1527_daily_bin1617.fits
.....................!
real 191.28
user 185.76
sys 5.02

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
Extended source S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Extended source IC 443 in ROI with RadialGaussian spatial model.
Added 165 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0515.8+1527 @ 78.953 15.4614

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/205662/ft1_filtered_4FGL_J0515.8+1527_daily_bin1617.fits scfile=/scratch/kocevski/205662/ft2_4FGL_J0515.8+1527_daily_bin1617.fits outfile=/scratch/kocevski/205662/cmap_658454401_658713601_4FGL_J0515.8+1527_daily_bin1617.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=78.953 yref=15.4614 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/205662/ft1_filtered_4FGL_J0515.8+1527_daily_bin1617.fits scfile=/scratch/kocevski/205662/ft2_4FGL_J0515.8+1527_daily_bin1617.fits outfile=/scratch/kocevski/205662/cmap_HighResolution_658454401_658713601_4FGL_J0515.8+1527_daily_bin1617.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=78.953 yref=15.4614 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/205662/ft1_filtered_4FGL_J0515.8+1527_daily_bin1617.fits evtable="EVENTS" scfile=/scratch/kocevski/205662/ft2_4FGL_J0515.8+1527_daily_bin1617.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/205662/Model_4FGL_J0515.8+1527_daily_bin1617.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
adding source IC 443
adding source S 147
Working on...
/scratch/kocevski/205662/ft1_filtered_4FGL_J0515.8+1527_daily_bin1617.fits.....................!
real 59.18
user 57.84
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/205662/ft1_filtered_4FGL_J0515.8+1527_daily_bin1617.fits', '/scratch/kocevski/205662/ft2_4FGL_J0515.8+1527_daily_bin1617.fits', expMap='/scratch/kocevski/205662/expmap_658454401_658713601_4FGL_J0515.8+1527_daily_bin1617.fits', expCube='/scratch/kocevski/205662/ltcube_658454401_658713601_4FGL_J0515.8+1527_daily_bin1617.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/205662/Model_4FGL_J0515.8+1527_daily_bin1617.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0515.8+1527'

4FGL J0515.8+1527
   Spectrum: PowerLaw
237    Prefactor:  1.467e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
239        Scale:  3.068e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/205662/ft1_filtered_4FGL_J0515.8+1527_daily_bin1617.fits
Spacecraft file(s): /scratch/kocevski/205662/ft2_4FGL_J0515.8+1527_daily_bin1617.fits
Exposure map: /scratch/kocevski/205662/expmap_658454401_658713601_4FGL_J0515.8+1527_daily_bin1617.fits
Exposure cube: /scratch/kocevski/205662/ltcube_658454401_658713601_4FGL_J0515.8+1527_daily_bin1617.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/205662/Model_4FGL_J0515.8+1527_daily_bin1617.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) = 2050.5687963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .39028E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    67.726       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11230E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .29205E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    30.603       1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.187       1.0000         .10000E-03   10000.    
    13 'Prefactor '    46.394       1.0000         .10000E-03   10000.    
    14 'norm      '    11.406       1.0000         .10000E-03   10000.    
    15 'Prefactor '    187.47       1.0000         .10000E-03   10000.    
    16 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.7200       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .77239       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    38.951       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .29816E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    25.202       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .98923       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2050.542     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3629 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1122.9        .44589E-05** at limit **
   2  Prefactor     .10000E-03    8051.0        .36959E-05** at limit **
   3  Prefactor     .10000E-03    69.587        .17299E-06** at limit **
   4  norm          67.741        46.945        .29908E-06    .19790E-04
   5  Prefactor     .10000E-03    82.253       -.10661E-06** at limit **
   6  Prefactor     .10000E-03    75.168        .82823E-07** at limit **
   7  Prefactor     .10000E-03    263.82       -.38008E-06** at limit **
   8  norm          .10000E-03    1.1030       -.16861E-07** at limit **
   9  norm          .10000E-03    9.1627       -.40538E-07** at limit **
  10  Prefactor     .10077E-03    55.392        .97357E-05** at limit **
  11  norm          30.591        53.092        .52002E-06    .64145E-04
  12  Prefactor     37.161        34.727        .49842E-06    .45003E-04
  13  Prefactor     47.286        703.00       -.65853E-05   -.13694E-04
  14  norm          11.406        17.620        .82993E-07    .78671E-04
  15  Prefactor     187.52        189.13        .87809E-06    .43512E-04
  16  norm          .10000E-03    12.645       -.23711E-07** at limit **
  17  norm          7.7174        5.6094        .19846E-06   -.11955E-03
  18  Prefactor     .77254        .31367        .56073E-07    .18737E-02
  19  norm          .10000E-03    8.2512       -.52887E-06** at limit **
  20  Prefactor     .10000E-03    2.3262       -.12530E-06** at limit **
  21  Prefactor     38.886        94.697       -.33282E-05   -.16840E-03
  22  Prefactor     .10114E-03    1064.9       -.30947E-04** at limit **
  23  Prefactor     .10000E-03    60.107       -.55584E-07** at limit **
  24  Prefactor     25.197        19.881        .29004E-06    .10531E-03
  25  Normalizat    .10000E-01    .45797       -.25663E-04** at limit **
  26  Prefactor     .98899        .10840        .12106E-05    .25611E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 67.7409
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100768
  norm       = 30.5914
  Prefactor  = 37.1613
  Prefactor  = 47.2862
  norm       = 11.4055
  Prefactor  = 187.516
  norm       = 0.0001
  norm       = 7.71744
  Prefactor  = 0.772536
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 38.8863
  Prefactor  = 0.000101136
  Prefactor  = 0.0001
  Prefactor  = 25.1969
  Normalizat = 0.01
  Prefactor  = 0.988995
 **********
 **   18 **HESSE 
 **********

 FCN=   2050.542     FROM HESSE     STATUS=OK           444 CALLS     4073 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1122.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8051.6        .19525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    69.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          67.741        46.906        .48772E-04   -1.4060    
   5  Prefactor     .10000E-03    82.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    75.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    265.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.1048        .46444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    9.1742        .13389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10077E-03    103.56        .37937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          30.591        53.170        .72427E-04   -1.4601    
  12  Prefactor     37.161        34.687        .65722E-04   -1.4488    
  13  Prefactor     47.286        697.19        .29433E-03   -1.4332    
  14  norm          11.406        17.609        .11862E-03   -1.5032    
  15  Prefactor     187.52        189.04        .14746E-03   -1.2961    
  16  norm          .10000E-03    12.664        .15731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.7174        5.6110        .82739E-04   -1.5152    
  18  Prefactor     .77254        .30233        .13929E-04   -1.5532    
  19  norm          .10000E-03    8.3348        .12691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.298        .12232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     38.886        93.671        .64222E-04   -1.4460    
  22  Prefactor     .10114E-03    1078.7        .39670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    60.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     25.197        19.969        .79795E-04   -1.4704    
  25  Normalizat    .10000E-01    .56510        .18922E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .98899        .11244        .14236E-03   -.93097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.89879e-09
Minuit parameter uncertainties:
  1  0.00264419
  2  0.00337333
  3  2.47372e-05
  4  46.9315
  5  2.53787e-05
  6  4.10438e-06
  7  0.000117641
  8  1.73465e-06
  9  1.11576e-05
  10  0.017872
  11  53.2524
  12  34.7062
  13  368.416
  14  17.6171
  15  189.662
  16  3.44724e-05
  17  5.61141
  18  0.302331
  19  8.61262e-05
  20  0.00018851
  21  94.0284
  22  0.0713413
  23  0.000112861
  24  19.9743
  25  2.88973e-05
  26  0.112462
Done.

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

Extracting fit parameters...

4FGL J0515.8+1527
   Spectrum: PowerLaw
237    Prefactor:  3.716e+01  3.471e+01  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
239        Scale:  3.068e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  9.890e-01  1.125e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.000e-02  2.890e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.99
Ra Dec: 78.953 15.461
Photon Index (Fixed Index): 1.94 +/- 0.00
Photon Flux (Fixed Index): 3.04e-07 +/- 2.84e-07
Energy Flux (Fixed Index): 2.44e-04 +/- 2.28e-04

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) = 2050.41960862
delta logL = 0.122383042695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2050.3979864
delta logL = 0.144005264929

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.608       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5810       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99436       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+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=   2050.398     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      259 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.627        43.446        .59369E-04    .17943E-04
   2  Index         1.5823        .68218        .65061E-02    .34100E-05
   3  Normalizat    .10000E-01    .58929        .19210E-01** at limit **
   4  Prefactor     .99437        .97037E-01    .14215E-03   -.16675E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.6274
  Index      = 1.5823
  Normalizat = 0.01
  Prefactor  = 0.994372
 **********
 **   18 **HESSE 
 **********

 FCN=   2050.398     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.627        43.342        .11874E-04   -1.4356    
   2  Index         1.5823        .68054        .26025E-03   -.75260    
   3  Normalizat    .10000E-01    .58949        .38420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .99437        .96994E-01    .56860E-05   -.92917    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.66093e-11
Minuit parameter uncertainties:
  1  43.3721
  2  0.684547
  3  1.04118e-05
  4  0.0970112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/205662': 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) = 2050.3979839
delta logL = 0.144007767631

Extracting fit parameters...

4FGL J0515.8+1527
   Spectrum: PowerLaw
237    Prefactor:  4.563e+01  4.337e+01  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.582e+00  6.845e-01  0.000e+00  1.000e+01 (-1.000e+00)
239        Scale:  3.068e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  9.944e-01  9.701e-02  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.000e-02  1.041e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.28
Ra Dec: 78.953 15.461
Photon Index (Free Index): 1.58 +/- 0.68
Photon Flux (Free Index): 1.73e-07 +/- 2.60e-07
Energy Flux (Free Index): 4.16e-04 +/- 6.09e-04

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/205662/cmap_HighResolution_658454401_658713601_4FGL_J0515.8+1527_daily_bin1617.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.04e-07', energy_flux2='4.16e-04', photon_flux_error='2.84e-07', dlogl='1.44e-01', energy_flux='2.44e-04', photon_flux2='1.73e-07', job_status='DONE', time_completed='2021-12-07 15:53:57.698124', photon_index_error2='0.68', photon_index2='1.58', ts='8.99', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='6.09e-04', EG='0.01', time_epoch_completed='1638921237.7', return_code='0', job_id='205662', GAL2='0.99', EG2='0.01', return_code2='0', energy_flux_error='2.28e-04', photon_flux_error2='2.60e-07', ts2='9.28', photon_index='1.94' WHERE bin_id='1617' AND source_name='4FGL J0515.8+1527' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 15:53:57 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 205662: <4FGL_J0515.8+1527_daily_bin1617> in cluster <slac> Done

Job <4FGL_J0515.8+1527_daily_bin1617> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec  7 15:45:18 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 15:46:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 15:46:06 2021
Terminated at Tue Dec  7 15:53:58 2021
Results reported at Tue Dec  7 15:53:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0515.8+1527_daily_bin1617 78.953 15.4614 658454401 658713601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0515.8+1527 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   461.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   472 sec.
    Turnaround time :                            520 sec.

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

