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


Performing analysis on: 4FGL_J0915.9+2933_daily_bin878
RA = 138.986, Dec = 29.553
tmin = 466905601, tmax = 467164801
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='108337', job_status='RUN', time_executed='2021-08-31 05:49:36.750980', time_epoch_executed='1630414176.75' WHERE source_name='4FGL J0915.9+2933' and cadence='daily' and bin_id='878'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/108337

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/108337/ft1_4FGL_J0915.9+2933_daily_bin878.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/108337/ft2_4FGL_J0915.9+2933_daily_bin878.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/108337/ft1_4FGL_J0915.9+2933_daily_bin878.fits outfile=/scratch/kocevski/108337/ft1_filteredMKT_4FGL_J0915.9+2933_daily_bin878.fits ra=138.986 dec=29.553 rad=12.0 tmin=466905601.0 tmax=467164801.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 7.56
user 3.41
sys 3.46

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/108337/ft2_4FGL_J0915.9+2933_daily_bin878.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/108337/ft1_filteredMKT_4FGL_J0915.9+2933_daily_bin878.fits evtable="EVENTS" outfile="/scratch/kocevski/108337/ft1_filtered_4FGL_J0915.9+2933_daily_bin878.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 4.73
user 0.33
sys 3.38

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/108337/ft1_filtered_4FGL_J0915.9+2933_daily_bin878.fits" evtable="EVENTS" scfile=/scratch/kocevski/108337/ft2_4FGL_J0915.9+2933_daily_bin878.fits sctable="SC_DATA" outfile=/scratch/kocevski/108337/ltcube_466905601_467164801_4FGL_J0915.9+2933_daily_bin878.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/108337/ft2_4FGL_J0915.9+2933_daily_bin878.fits
.....................!
real 16.41
user 12.00
sys 3.97

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/108337/ft1_filtered_4FGL_J0915.9+2933_daily_bin878.fits evtable="EVENTS" scfile=/scratch/kocevski/108337/ft2_4FGL_J0915.9+2933_daily_bin878.fits sctable="SC_DATA" expcube=/scratch/kocevski/108337/ltcube_466905601_467164801_4FGL_J0915.9+2933_daily_bin878.fits outfile=/scratch/kocevski/108337/expmap_466905601_467164801_4FGL_J0915.9+2933_daily_bin878.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/108337/ltcube_466905601_467164801_4FGL_J0915.9+2933_daily_bin878.fits
.....................!
real 196.99
user 187.49
sys 8.51

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/108337/ft1_filtered_4FGL_J0915.9+2933_daily_bin878.fits scfile=/scratch/kocevski/108337/ft2_4FGL_J0915.9+2933_daily_bin878.fits outfile=/scratch/kocevski/108337/cmap_466905601_467164801_4FGL_J0915.9+2933_daily_bin878.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 3.97
user 0.38
sys 3.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/108337/ft1_filtered_4FGL_J0915.9+2933_daily_bin878.fits scfile=/scratch/kocevski/108337/ft2_4FGL_J0915.9+2933_daily_bin878.fits outfile=/scratch/kocevski/108337/cmap_HighResolution_466905601_467164801_4FGL_J0915.9+2933_daily_bin878.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 4.16
user 0.39
sys 3.24

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/108337/ft1_filtered_4FGL_J0915.9+2933_daily_bin878.fits', '/scratch/kocevski/108337/ft2_4FGL_J0915.9+2933_daily_bin878.fits', expMap='/scratch/kocevski/108337/expmap_466905601_467164801_4FGL_J0915.9+2933_daily_bin878.fits', expCube='/scratch/kocevski/108337/ltcube_466905601_467164801_4FGL_J0915.9+2933_daily_bin878.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/108337/Model_4FGL_J0915.9+2933_daily_bin878.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/108337/ft1_filtered_4FGL_J0915.9+2933_daily_bin878.fits
Spacecraft file(s): /scratch/kocevski/108337/ft2_4FGL_J0915.9+2933_daily_bin878.fits
Exposure map: /scratch/kocevski/108337/expmap_466905601_467164801_4FGL_J0915.9+2933_daily_bin878.fits
Exposure cube: /scratch/kocevski/108337/ltcube_466905601_467164801_4FGL_J0915.9+2933_daily_bin878.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/108337/Model_4FGL_J0915.9+2933_daily_bin878.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) = 6086.566829

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.4971       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.6497       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .35309E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .48031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8689       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .32965E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.601       1.0000         .10000E-03   10000.    
    10 'norm      '    2.3414       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.189       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.423       1.0000         .10000E-03   10000.    
    13 'norm      '    .11696E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.6542       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .49660       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10587E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .20761E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.264       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10453E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99584       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87372       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6086.467     FROM MIGRAD    STATUS=CONVERGED    119 CALLS     1719 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .27620       -.25272E-06** at limit **
   2  Prefactor     .10000E-03    3.3579        .47352E-06** at limit **
   3  norm          1.4967        .67032        .15415E-06    .25286E-04
   4  Prefactor     9.6670        2.6641       -.19895E-05    .23547E-02
   5  Prefactor     .10000E-03    17.596       -.33797E-05** at limit **
   6  norm          .10006E-03    29.146        .27078E-05** at limit **
   7  Prefactor     5.8648        4.3255       -.78496E-07    .14506E-04
   8  Prefactor     .10006E-03    32.065       -.10939E-05** at limit **
   9  Prefactor     17.594        6.3364       -.11205E-05   -.72017E-03
  10  norm          2.3409        1.5736       -.25198E-06   -.28052E-04
  11  Prefactor     12.152        5.1288       -.21255E-05    .30593E-02
  12  Prefactor     22.593        38.830        .70122E-05   -.15193E-02
  13  norm          .10364E-03    90.613        .60406E-05** at limit **
  14  Prefactor     7.6603        4.0996        .20288E-05    .23863E-03
  15  Prefactor     .49831        5.1768        .96566E-05    .68773E-04
  16  Prefactor     .10000E-03    7.3800       -.73371E-06** at limit **
  17  Prefactor     .11384E-03    29.539       -.28043E-05** at limit **
  18  Prefactor     14.260        6.8934        .83284E-05    .33165E-02
  19  Prefactor     .10000E-03    2.4897       -.31182E-06** at limit **
  20  Prefactor     .10000E-03    .95206        .33116E-06** at limit **
  21  Normalizat    .99625        .19226       -.33757E-05   -.24749E-05
  22  Prefactor     .87336        .18789        .54201E-07   -.21864E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.49671
  Prefactor  = 9.66701
  Prefactor  = 0.000100003
  norm       = 0.000100057
  Prefactor  = 5.8648
  Prefactor  = 0.000100061
  Prefactor  = 17.5941
  norm       = 2.3409
  Prefactor  = 12.152
  Prefactor  = 22.5933
  norm       = 0.00010364
  Prefactor  = 7.66026
  Prefactor  = 0.498308
  Prefactor  = 0.0001
  Prefactor  = 0.000113844
  Prefactor  = 14.2599
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.996247
  Prefactor  = 0.873362
 **********
 **   18 **HESSE 
 **********

 FCN=   6086.467     FROM HESSE     STATUS=OK           396 CALLS     2115 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .27268        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.3532        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.4967        .67884        .87528E-02   -1.5463    
   4  Prefactor     9.6670        11.815        .32251E-02   -1.5086    
   5  Prefactor     .10000E-03    17.260        .10660E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10006E-03    29.711        .10589E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.8648        4.3222        .41442E-02   -1.5224    
   8  Prefactor     .10006E-03    36.920        .98620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.594        6.4135        .23867E-02   -1.4869    
  10  norm          2.3409        1.5803        .66986E-02   -1.5402    
  11  Prefactor     12.152        13.115        .28684E-02   -1.5011    
  12  Prefactor     22.593        40.467        .21147E-02   -1.4757    
  13  norm          .10364E-03    4.1210        .53925E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.6603        4.1178        .36237E-02   -1.5154    
  15  Prefactor     .49831        2.6837        .38778E-01   -1.5567    
  16  Prefactor     .10000E-03    7.3724        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11384E-03    109.11        .10098E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.260        7.0227        .26513E-02   -1.4953    
  19  Prefactor     .10000E-03    2.4862        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .92133        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .99625        .16573        .46115E-01   -.93156    
  22  Prefactor     .87336        .16042        .44669E-01   -.97078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76091e-07
Minuit parameter uncertainties:
  1  3.00024e-07
  2  2.98226e-06
  3  0.678848
  4  11.8179
  5  0.000463333
  6  0.0025944
  7  4.32247
  8  0.00300715
  9  6.41378
  10  1.58029
  11  13.1178
  12  40.5162
  13  0.00774643
  14  4.11796
  15  2.31276
  16  6.22041e-08
  17  0.0778719
  18  7.02315
  19  7.6743e-07
  20  6.79684e-07
  21  0.165817
  22  0.16051
Done.

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

Extracting fit parameters...

4FGL J0915.9+2933
   Spectrum: LogParabola
270         norm:  2.341e+00  1.580e+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:  8.734e-01  1.605e-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:  9.962e-01  1.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.93
Ra Dec: 138.986 29.553
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 2.37e-08 +/- 1.60e-08
Energy Flux (Fixed Index): 2.72e-05 +/- 1.84e-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) = 6086.27414628
delta logL = 0.193106211442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6086.2721887
delta logL = 0.195063794529

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1512       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1094       1.0000          .0000       5.0000    
     3 'Normalizat'    .98202       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87959       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=   6086.272     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      223 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1512        32.127        .70232E-02    .79918E-03
   2  alpha         2.1094        3.2444        .25605        .10107E-03
   3  Normalizat    .98202        .10129        .45941E-01    .36501E-05
   4  Prefactor     .87959        .69562E-01    .44744E-01    .12270E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.15116
  alpha      = 2.10936
  Normalizat = 0.98202
  Prefactor  = 0.879586
 **********
 **   18 **HESSE 
 **********

 FCN=   6086.272     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1512        1.5529        .69119E-04   -1.5415    
   2  alpha         2.1094        .58612        .12901E-01   -.15690    
   3  Normalizat    .98202        .18641        .23048E-03   -.93635    
   4  Prefactor     .87959        .18660        .24372E-03   -.96858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79162e-10
Minuit parameter uncertainties:
  1  1.55288
  2  0.591772
  3  0.186531
  4  0.18673
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/108337': 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) = 6086.27218869
delta logL = 0.195063796775

Extracting fit parameters...

4FGL J0915.9+2933
   Spectrum: LogParabola
270         norm:  2.151e+00  1.553e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        alpha:  2.109e+00  5.918e-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:  8.796e-01  1.867e-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:  9.820e-01  1.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.30
Ra Dec: 138.986 29.553
Photon Index (Free Index): 2.11 +/- 0.59
Photon Flux (Free Index): 3.63e-08 +/- 3.11e-08
Energy Flux (Free Index): 1.98e-05 +/- 1.50e-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/108337/cmap_HighResolution_466905601_467164801_4FGL_J0915.9+2933_daily_bin878.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.37e-08', energy_flux2='1.98e-05', photon_flux_error='1.60e-08', dlogl='1.95e-01', energy_flux='2.72e-05', photon_flux2='3.63e-08', job_status='DONE', time_completed='2021-08-31 05:59:19.244659', photon_index_error2='0.59', photon_index2='2.11', ts='6.93', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.50e-05', EG='1.00', time_epoch_completed='1630414759.24', return_code='0', job_id='108337', GAL2='0.88', EG2='0.98', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='3.11e-08', ts2='7.30', photon_index='1.75' WHERE bin_id='878' AND source_name='4FGL J0915.9+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 05:59:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 108337: <4FGL_J0915.9+2933_daily_bin878> in cluster <slac> Done

Job <4FGL_J0915.9+2933_daily_bin878> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Aug 31 05:46:03 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 05:46:04 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:46:04 2021
Terminated at Tue Aug 31 05:59:20 2021
Results reported at Tue Aug 31 05:59:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0915.9+2933_daily_bin878 138.986 29.553 466905601 467164801 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 :                                   623.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            797 sec.

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

