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


Performing analysis on: 4FGL_J0915.9+2933_daily_bin40
RA = 138.986, Dec = 29.553
tmin = 249696001, tmax = 249955201
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='102337', job_status='RUN', time_executed='2021-08-31 05:29:02.871220', time_epoch_executed='1630412942.87' WHERE source_name='4FGL J0915.9+2933' and cadence='daily' and bin_id='40'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/102337

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/102337/ft1_4FGL_J0915.9+2933_daily_bin40.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/102337/ft2_4FGL_J0915.9+2933_daily_bin40.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/102337/ft1_4FGL_J0915.9+2933_daily_bin40.fits outfile=/scratch/kocevski/102337/ft1_filteredMKT_4FGL_J0915.9+2933_daily_bin40.fits ra=138.986 dec=29.553 rad=12.0 tmin=249696001.0 tmax=249955201.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 1.46
user 1.26
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/102337/ft2_4FGL_J0915.9+2933_daily_bin40.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/102337/ft2_4FGL_J0915.9+2933_daily_bin40.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/102337/ft1_filteredMKT_4FGL_J0915.9+2933_daily_bin40.fits evtable="EVENTS" outfile="/scratch/kocevski/102337/ft1_filtered_4FGL_J0915.9+2933_daily_bin40.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.32
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/102337/ft1_filtered_4FGL_J0915.9+2933_daily_bin40.fits" evtable="EVENTS" scfile=/scratch/kocevski/102337/ft2_4FGL_J0915.9+2933_daily_bin40.fits sctable="SC_DATA" outfile=/scratch/kocevski/102337/ltcube_249696001_249955201_4FGL_J0915.9+2933_daily_bin40.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/102337/ft2_4FGL_J0915.9+2933_daily_bin40.fits
.....................!
real 12.26
user 11.90
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/102337/ft1_filtered_4FGL_J0915.9+2933_daily_bin40.fits evtable="EVENTS" scfile=/scratch/kocevski/102337/ft2_4FGL_J0915.9+2933_daily_bin40.fits sctable="SC_DATA" expcube=/scratch/kocevski/102337/ltcube_249696001_249955201_4FGL_J0915.9+2933_daily_bin40.fits outfile=/scratch/kocevski/102337/expmap_249696001_249955201_4FGL_J0915.9+2933_daily_bin40.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/102337/ltcube_249696001_249955201_4FGL_J0915.9+2933_daily_bin40.fits
.....................!
real 191.87
user 187.36
sys 4.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
Added 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J0915.9+2933 @ 138.986 29.553

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/102337/ft1_filtered_4FGL_J0915.9+2933_daily_bin40.fits scfile=/scratch/kocevski/102337/ft2_4FGL_J0915.9+2933_daily_bin40.fits outfile=/scratch/kocevski/102337/cmap_249696001_249955201_4FGL_J0915.9+2933_daily_bin40.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=138.986 yref=29.553 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/102337/ft1_filtered_4FGL_J0915.9+2933_daily_bin40.fits scfile=/scratch/kocevski/102337/ft2_4FGL_J0915.9+2933_daily_bin40.fits outfile=/scratch/kocevski/102337/cmap_HighResolution_249696001_249955201_4FGL_J0915.9+2933_daily_bin40.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=138.986 yref=29.553 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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/102337/ft1_filtered_4FGL_J0915.9+2933_daily_bin40.fits evtable="EVENTS" scfile=/scratch/kocevski/102337/ft2_4FGL_J0915.9+2933_daily_bin40.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/102337/Model_4FGL_J0915.9+2933_daily_bin40.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/102337/ft1_filtered_4FGL_J0915.9+2933_daily_bin40.fits.....................!
real 48.79
user 47.54
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/102337/ft1_filtered_4FGL_J0915.9+2933_daily_bin40.fits', '/scratch/kocevski/102337/ft2_4FGL_J0915.9+2933_daily_bin40.fits', expMap='/scratch/kocevski/102337/expmap_249696001_249955201_4FGL_J0915.9+2933_daily_bin40.fits', expCube='/scratch/kocevski/102337/ltcube_249696001_249955201_4FGL_J0915.9+2933_daily_bin40.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/102337/Model_4FGL_J0915.9+2933_daily_bin40.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0915.9+2933'

4FGL J0915.9+2933
   Spectrum: LogParabola
270         norm:  1.063e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        alpha:  1.750e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
272         beta:  7.920e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  1.366e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/102337/ft1_filtered_4FGL_J0915.9+2933_daily_bin40.fits
Spacecraft file(s): /scratch/kocevski/102337/ft2_4FGL_J0915.9+2933_daily_bin40.fits
Exposure map: /scratch/kocevski/102337/expmap_249696001_249955201_4FGL_J0915.9+2933_daily_bin40.fits
Exposure cube: /scratch/kocevski/102337/ltcube_249696001_249955201_4FGL_J0915.9+2933_daily_bin40.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/102337/Model_4FGL_J0915.9+2933_daily_bin40.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) = 5371.79567014

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17550       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.428       1.0000         .10000E-03   10000.    
     3 'norm      '    2.1283       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.591       1.0000         .10000E-03   10000.    
     6 'norm      '    117.02       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3775       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.9033       1.0000         .10000E-03   10000.    
    10 'norm      '    3.0964       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15848E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.182       1.0000         .10000E-03   10000.    
    13 'norm      '    15.319       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .32344       1.0000         .10000E-03   10000.    
    16 'Prefactor '    39.470       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.362       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.8590       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1532       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90284       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5371.792     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     3046 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17493        1.4405        .40241E-06   -.78875E-03
   2  Prefactor     21.434        17.351        .12233E-06   -.34422E-03
   3  norm          2.1284        .89527       -.59550E-08   -.56417E-04
   4  Prefactor     .10000E-03    6.2656       -.33687E-08** at limit **
   5  Prefactor     18.587        18.019       -.31595E-07    .15653E-03
   6  norm          117.02        48.058       -.30018E-07    .15571E-04
   7  Prefactor     4.3777        3.7276        .13386E-07    .11775E-03
   8  Prefactor     .10000E-03    18.893        .18959E-08** at limit **
   9  Prefactor     6.9070        6.1654        .59345E-06    .69683E-03
  10  norm          3.0942        2.3436       -.38292E-07    .21546E-03
  11  Prefactor     .10107E-03    39.337       -.51680E-05** at limit **
  12  Prefactor     31.174        65.811       -.50123E-06    .68113E-05
  13  norm          15.326        11.486        .12520E-05    .72923E-03
  14  Prefactor     .10000E-03    4.9791       -.19954E-06** at limit **
  15  Prefactor     .35223        2.5894       -.35821E-06    .37606E-03
  16  Prefactor     39.466        29.493       -.15325E-06    .63651E-04
  17  Prefactor     .10000E-03    25.664       -.26856E-07** at limit **
  18  Prefactor     17.362        8.4138       -.50522E-07   -.27371E-04
  19  Prefactor     .10000E-03    4.4264        .20094E-08** at limit **
  20  Prefactor     1.8593        2.6528        .12192E-06   -.64724E-04
  21  Normalizat    1.1531        .20652        .53615E-06    .27083E-03
  22  Prefactor     .90283        .19398       -.34419E-06    .19138E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.174926
  Prefactor  = 21.4338
  norm       = 2.12837
  Prefactor  = 0.0001
  Prefactor  = 18.5874
  norm       = 117.018
  Prefactor  = 4.37772
  Prefactor  = 0.0001
  Prefactor  = 6.90702
  norm       = 3.09418
  Prefactor  = 0.000101071
  Prefactor  = 31.174
  norm       = 15.3257
  Prefactor  = 0.0001
  Prefactor  = 0.352229
  Prefactor  = 39.4655
  Prefactor  = 0.0001
  Prefactor  = 17.3624
  Prefactor  = 0.0001
  Prefactor  = 1.85925
  Normalizat = 1.15314
  Prefactor  = 0.902827
 **********
 **   18 **HESSE 
 **********

 FCN=   5371.792     FROM HESSE     STATUS=OK           356 CALLS     3402 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17493        2.7088        .14894E-02   -1.5624    
   2  Prefactor     21.434        16.968        .86527E-04   -1.4782    
   3  norm          2.1284        .89348        .43327E-04   -1.5416    
   4  Prefactor     .10000E-03    6.2896        .17915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.587        17.997        .92889E-04   -1.4845    
   6  norm          117.02        48.055        .37196E-04   -1.3540    
   7  Prefactor     4.3777        3.7292        .12611E-03   -1.5289    
   8  Prefactor     .10000E-03    18.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.9070        6.3859        .15270E-03   -1.5182    
  10  norm          3.0942        2.3504        .92339E-04   -1.5356    
  11  Prefactor     .10107E-03    45.134        .98493E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     31.174        65.748        .71754E-04   -1.4591    
  13  norm          15.326        13.352        .10233E-03   -1.4925    
  14  Prefactor     .10000E-03    5.1515        .31931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .35223        12.200        .21146E-02   -1.5589    
  16  Prefactor     39.466        29.511        .63800E-04   -1.4451    
  17  Prefactor     .10000E-03    25.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.362        8.4110        .96122E-04   -1.4874    
  19  Prefactor     .10000E-03    4.4480        .15059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.8593        2.6308        .13553E-03   -1.5435    
  21  Normalizat    1.1531        .24386        .24710E-03   -.88064    
  22  Prefactor     .90283        .22693        .27320E-03   -.96042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80375e-09
Minuit parameter uncertainties:
  1  1.37639
  2  16.9721
  3  0.893486
  4  5.55396e-07
  5  18.002
  6  48.071
  7  3.7294
  8  3.96414e-06
  9  6.38651
  10  2.3505
  11  0.0139156
  12  65.901
  13  13.3541
  14  1.69895e-05
  15  4.14625
  16  29.5219
  17  1.09249e-05
  18  8.41155
  19  1.58591e-06
  20  2.63101
  21  0.244103
  22  0.227165
Done.

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

Extracting fit parameters...

4FGL J0915.9+2933
   Spectrum: LogParabola
270         norm:  3.094e+00  2.350e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        alpha:  1.750e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
272         beta:  7.920e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  1.366e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  9.028e-01  2.272e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.153e+00  2.441e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.83
Ra Dec: 138.986 29.553
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 3.13e-08 +/- 2.38e-08
Energy Flux (Fixed Index): 3.60e-05 +/- 2.73e-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) = 5371.69729973
delta logL = 0.094483918615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5371.69509262
delta logL = 0.0966910280858

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0633       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0175       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1392       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90771       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5371.695     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0629        58.761        .57944E-02    .11535E-03
   2  alpha         2.0176        2.8823        .25258        .34682E-04
   3  Normalizat    1.1391        .14282        .56165E-01    .23547E-05
   4  Prefactor     .90797        .90389E-01    .45103E-01   -.19796E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.06288
  alpha      = 2.01756
  Normalizat = 1.13908
  Prefactor  = 0.907965
 **********
 **   18 **HESSE 
 **********

 FCN=   5371.695     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0629        2.2434        .85483E-04   -1.5358    
   2  alpha         2.0176        .59973        .13371E-01   -.19419    
   3  Normalizat    1.1391        .22769        .24836E-03   -.88507    
   4  Prefactor     .90797        .22428        .27244E-03   -.95863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56808e-12
Minuit parameter uncertainties:
  1  2.24346
  2  0.605871
  3  0.227892
  4  0.224506
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/102337': 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) = 5371.69509173
delta logL = 0.0966919189268

Extracting fit parameters...

4FGL J0915.9+2933
   Spectrum: LogParabola
270         norm:  3.063e+00  2.243e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        alpha:  2.018e+00  6.059e-01  0.000e+00  5.000e+00 ( 1.000e+00)
272         beta:  7.920e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  1.366e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  9.080e-01  2.245e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.139e+00  2.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.00
Ra Dec: 138.986 29.553
Photon Index (Free Index): 2.02 +/- 0.61
Photon Flux (Free Index): 4.48e-08 +/- 4.36e-08
Energy Flux (Free Index): 2.89e-05 +/- 2.41e-05

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/102337/cmap_HighResolution_249696001_249955201_4FGL_J0915.9+2933_daily_bin40.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.13e-08', energy_flux2='2.89e-05', photon_flux_error='2.38e-08', dlogl='9.67e-02', energy_flux='3.60e-05', photon_flux2='4.48e-08', job_status='DONE', time_completed='2021-08-31 05:38:23.802619', photon_index_error2='0.61', photon_index2='2.02', ts='6.83', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='2.41e-05', EG='1.15', time_epoch_completed='1630413503.8', return_code='0', job_id='102337', GAL2='0.91', EG2='1.14', return_code2='0', energy_flux_error='2.73e-05', photon_flux_error2='4.36e-08', ts2='7.00', photon_index='1.75' WHERE bin_id='40' AND source_name='4FGL J0915.9+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 05:38:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 102337: <4FGL_J0915.9+2933_daily_bin40> in cluster <slac> Done

Job <4FGL_J0915.9+2933_daily_bin40> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 31 05:26:35 2021
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 05:26:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 05:26:38 2021
Terminated at Tue Aug 31 05:38:24 2021
Results reported at Tue Aug 31 05:38:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0915.9+2933_daily_bin40 138.986 29.553 249696001 249955201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0915.9+2933 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   558.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            709 sec.

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

