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


Performing analysis on: 4FGL_J0915.9+2933_daily_bin399
RA = 138.986, Dec = 29.553
tmin = 342748801, tmax = 343008001
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='104923', job_status='RUN', time_executed='2021-08-31 05:39:58.003673', time_epoch_executed='1630413598.0' WHERE source_name='4FGL J0915.9+2933' and cadence='daily' and bin_id='399'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/104923

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/104923/ft1_4FGL_J0915.9+2933_daily_bin399.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/104923/ft2_4FGL_J0915.9+2933_daily_bin399.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/104923/ft1_4FGL_J0915.9+2933_daily_bin399.fits outfile=/scratch/kocevski/104923/ft1_filteredMKT_4FGL_J0915.9+2933_daily_bin399.fits ra=138.986 dec=29.553 rad=12.0 tmin=342748801.0 tmax=343008001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.79
user 3.29
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/104923/ft2_4FGL_J0915.9+2933_daily_bin399.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/104923/ft1_filteredMKT_4FGL_J0915.9+2933_daily_bin399.fits evtable="EVENTS" outfile="/scratch/kocevski/104923/ft1_filtered_4FGL_J0915.9+2933_daily_bin399.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.54
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/104923/ft1_filtered_4FGL_J0915.9+2933_daily_bin399.fits" evtable="EVENTS" scfile=/scratch/kocevski/104923/ft2_4FGL_J0915.9+2933_daily_bin399.fits sctable="SC_DATA" outfile=/scratch/kocevski/104923/ltcube_342748801_343008001_4FGL_J0915.9+2933_daily_bin399.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/104923/ft2_4FGL_J0915.9+2933_daily_bin399.fits
.....................!
real 12.38
user 11.72
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/104923/ft1_filtered_4FGL_J0915.9+2933_daily_bin399.fits evtable="EVENTS" scfile=/scratch/kocevski/104923/ft2_4FGL_J0915.9+2933_daily_bin399.fits sctable="SC_DATA" expcube=/scratch/kocevski/104923/ltcube_342748801_343008001_4FGL_J0915.9+2933_daily_bin399.fits outfile=/scratch/kocevski/104923/expmap_342748801_343008001_4FGL_J0915.9+2933_daily_bin399.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/104923/ltcube_342748801_343008001_4FGL_J0915.9+2933_daily_bin399.fits
.....................!
real 191.67
user 185.36
sys 5.31

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/104923/ft1_filtered_4FGL_J0915.9+2933_daily_bin399.fits scfile=/scratch/kocevski/104923/ft2_4FGL_J0915.9+2933_daily_bin399.fits outfile=/scratch/kocevski/104923/cmap_342748801_343008001_4FGL_J0915.9+2933_daily_bin399.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 1.16
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/104923/ft1_filtered_4FGL_J0915.9+2933_daily_bin399.fits scfile=/scratch/kocevski/104923/ft2_4FGL_J0915.9+2933_daily_bin399.fits outfile=/scratch/kocevski/104923/cmap_HighResolution_342748801_343008001_4FGL_J0915.9+2933_daily_bin399.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 1.27
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25267       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.6696       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    80.792       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.5568       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.956       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12997E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.1483       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.463       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .49927E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14594       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.428       1.0000         .10000E-03   10000.    
    17 'Prefactor '    53.632       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.9325       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1832       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .62996       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3486       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=   6732.990     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2423 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25270        .50426        .81361E-06    .33907E-03
   2  Prefactor     .10000E-03    3.3204        .87735E-07** at limit **
   3  norm          6.6699        1.2333       -.18378E-07   -.15153E-03
   4  Prefactor     .10000E-03    5.5558       -.10625E-06** at limit **
   5  Prefactor     .10000E-03    7.4598        .18562E-06** at limit **
   6  norm          80.804        41.216        .19510E-05    .38840E-03
   7  Prefactor     7.5581        4.0682        .63285E-06    .13496E-03
   8  Prefactor     14.956        29.708        .84796E-06   -.33663E-05
   9  Prefactor     .10000E-03    2.1950       -.30816E-06** at limit **
  10  norm          3.1487        1.8235       -.26043E-07   -.77958E-04
  11  Prefactor     14.446        13.912       -.90116E-06   -.39367E-03
  12  Prefactor     .10000E-03    26.615        .13781E-05** at limit **
  13  norm          .10001E-03    5.9193       -.17384E-05** at limit **
  14  Prefactor     .19511        2.3315        .15071E-05   -.11999E-02
  15  Prefactor     .10000E-03    2.0006        .51906E-07** at limit **
  16  Prefactor     30.436        25.406        .18503E-05    .37945E-03
  17  Prefactor     53.637        58.383        .12811E-05    .87650E-04
  18  Prefactor     9.9339        6.9885       -.20262E-06   -.11150E-03
  19  Prefactor     .10000E-03    3.6340       -.43778E-07** at limit **
  20  Prefactor     1.1835        1.7918        .23329E-06    .58501E-04
  21  Normalizat    .62971        .16715        .24410E-07    .54224E-04
  22  Prefactor     1.3487        .17008       -.40660E-06    .12886E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.252695
  Prefactor  = 0.0001
  norm       = 6.66991
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 80.8037
  Prefactor  = 7.55809
  Prefactor  = 14.9565
  Prefactor  = 0.0001
  norm       = 3.14869
  Prefactor  = 14.4457
  Prefactor  = 0.000100001
  norm       = 0.000100011
  Prefactor  = 0.19511
  Prefactor  = 0.0001
  Prefactor  = 30.4364
  Prefactor  = 53.6372
  Prefactor  = 9.93394
  Prefactor  = 0.0001
  Prefactor  = 1.18347
  Normalizat = 0.629705
  Prefactor  = 1.34867
 **********
 **   18 **HESSE 
 **********

 FCN=   6732.990     FROM HESSE     STATUS=OK           340 CALLS     2763 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .25270        .52032        .20431E-03   -1.5607    
   2  Prefactor     .10000E-03    3.3283        .14603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.6699        1.2339        .37699E-04   -1.5191    
   4  Prefactor     .10000E-03    5.5688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.4868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          80.804        42.105        .44683E-04   -1.3908    
   7  Prefactor     7.5581        4.0993        .58541E-03   -1.5158    
   8  Prefactor     14.956        29.655        .10357E-03   -1.4934    
   9  Prefactor     .10000E-03    4.0417        .22933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.1487        1.8238        .81658E-04   -1.5353    
  11  Prefactor     14.446        14.023        .10532E-03   -1.4948    
  12  Prefactor     .10000E-03    26.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    16.517        .34898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .19511        15.896        .20340E-02   -1.5620    
  15  Prefactor     .10000E-03    2.0374        .11318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.436        25.960        .72635E-04   -1.4604    
  17  Prefactor     53.637        58.540        .54769E-04   -1.4242    
  18  Prefactor     9.9339        6.9959        .12715E-03   -1.5077    
  19  Prefactor     .10000E-03    3.6489        .15275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1835        1.7540        .12961E-03   -1.5490    
  21  Normalizat    .62971        .19447        .29953E-03   -1.0674    
  22  Prefactor     1.3487        .19918        .22474E-03   -.81871    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.31706e-09
Minuit parameter uncertainties:
  1  0.52033
  2  7.05195e-06
  3  1.2339
  4  1.89343e-05
  5  1.60105e-05
  6  42.1205
  7  4.09944
  8  29.6838
  9  1.1821e-05
  10  1.82379
  11  14.0259
  12  0.000279779
  13  0.000868528
  14  3.52226
  15  4.48742e-06
  16  25.9699
  17  58.6028
  18  6.99649
  19  2.71332e-06
  20  1.75411
  21  0.194683
  22  0.199295
Done.

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

Extracting fit parameters...

4FGL J0915.9+2933
   Spectrum: LogParabola
270         norm:  3.149e+00  1.824e+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:  1.349e+00  1.993e-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:  6.297e-01  1.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.98
Ra Dec: 138.986 29.553
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 3.19e-08 +/- 1.85e-08
Energy Flux (Fixed Index): 3.66e-05 +/- 2.12e-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) = 6732.39583896
delta logL = 0.594570210226

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6732.38193565
delta logL = 0.608473524867

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6496       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2309       1.0000          .0000       5.0000    
     3 'Normalizat'    .60668       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3572       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=   6732.382     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      241 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6494        24.658        .62612E-02    .11973E-03
   2  alpha         2.2310        3.6151        .24398        .66332E-04
   3  Normalizat    .60666        .83522E-01    .68832E-01    .33002E-04
   4  Prefactor     1.3572        .70473E-01    .50666E-01   -.65578E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 2.64942
  alpha      = 2.23098
  Normalizat = 0.606664
  Prefactor  = 1.35723
 **********
 **   18 **HESSE 
 **********

 FCN=   6732.382     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6494        1.7132        .64718E-04   -1.5382    
   2  alpha         2.2310        .44006        .93071E-02   -.10782    
   3  Normalizat    .60666        .18722        .30465E-03   -1.0770    
   4  Prefactor     1.3572        .19783        .22398E-03   -.81621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93696e-12
Minuit parameter uncertainties:
  1  1.71324
  2  0.442397
  3  0.187413
  4  0.197937
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/104923': 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) = 6732.3819356
delta logL = 0.608473572976

Extracting fit parameters...

4FGL J0915.9+2933
   Spectrum: LogParabola
270         norm:  2.649e+00  1.713e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        alpha:  2.231e+00  4.424e-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:  1.357e+00  1.979e-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:  6.067e-01  1.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.17
Ra Dec: 138.986 29.553
Photon Index (Free Index): 2.23 +/- 0.44
Photon Flux (Free Index): 5.47e-08 +/- 3.32e-08
Energy Flux (Free Index): 2.46e-05 +/- 1.45e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/104923/cmap_HighResolution_342748801_343008001_4FGL_J0915.9+2933_daily_bin399.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.19e-08', energy_flux2='2.46e-05', photon_flux_error='1.85e-08', dlogl='6.08e-01', energy_flux='3.66e-05', photon_flux2='5.47e-08', job_status='DONE', time_completed='2021-08-31 05:50:10.857336', photon_index_error2='0.44', photon_index2='2.23', ts='10.98', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', energy_flux_error2='1.45e-05', EG='0.63', time_epoch_completed='1630414210.86', return_code='0', job_id='104923', GAL2='1.36', EG2='0.61', return_code2='0', energy_flux_error='2.12e-05', photon_flux_error2='3.32e-08', ts2='12.17', photon_index='1.75' WHERE bin_id='399' AND source_name='4FGL J0915.9+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 05:50:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 104923: <4FGL_J0915.9+2933_daily_bin399> in cluster <slac> Done

Job <4FGL_J0915.9+2933_daily_bin399> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 31 05:35:37 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 05:35: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:35:38 2021
Terminated at Tue Aug 31 05:50:11 2021
Results reported at Tue Aug 31 05:50:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0915.9+2933_daily_bin399 138.986 29.553 342748801 343008001 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 :                                   595.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            874 sec.

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

