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


Performing analysis on: 4FGL_J0915.9+2933_daily_bin94
RA = 138.986, Dec = 29.553
tmin = 263692801, tmax = 263952001
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='103276', job_status='RUN', time_executed='2021-08-31 05:33:29.780841', time_epoch_executed='1630413209.78' WHERE source_name='4FGL J0915.9+2933' and cadence='daily' and bin_id='94'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/103276

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/103276/ft1_4FGL_J0915.9+2933_daily_bin94.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/103276/ft2_4FGL_J0915.9+2933_daily_bin94.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/103276/ft1_4FGL_J0915.9+2933_daily_bin94.fits outfile=/scratch/kocevski/103276/ft1_filteredMKT_4FGL_J0915.9+2933_daily_bin94.fits ra=138.986 dec=29.553 rad=12.0 tmin=263692801.0 tmax=263952001.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.01
user 1.47
sys 0.39

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/103276/ft1_filtered_4FGL_J0915.9+2933_daily_bin94.fits" evtable="EVENTS" scfile=/scratch/kocevski/103276/ft2_4FGL_J0915.9+2933_daily_bin94.fits sctable="SC_DATA" outfile=/scratch/kocevski/103276/ltcube_263692801_263952001_4FGL_J0915.9+2933_daily_bin94.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/103276/ft2_4FGL_J0915.9+2933_daily_bin94.fits
.....................!
real 14.83
user 13.87
sys 0.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/103276/ft1_filtered_4FGL_J0915.9+2933_daily_bin94.fits evtable="EVENTS" scfile=/scratch/kocevski/103276/ft2_4FGL_J0915.9+2933_daily_bin94.fits sctable="SC_DATA" expcube=/scratch/kocevski/103276/ltcube_263692801_263952001_4FGL_J0915.9+2933_daily_bin94.fits outfile=/scratch/kocevski/103276/expmap_263692801_263952001_4FGL_J0915.9+2933_daily_bin94.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/103276/ltcube_263692801_263952001_4FGL_J0915.9+2933_daily_bin94.fits
.....................!
real 192.69
user 186.05
sys 4.41

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/103276/ft1_filtered_4FGL_J0915.9+2933_daily_bin94.fits scfile=/scratch/kocevski/103276/ft2_4FGL_J0915.9+2933_daily_bin94.fits outfile=/scratch/kocevski/103276/cmap_263692801_263952001_4FGL_J0915.9+2933_daily_bin94.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.74
user 0.35
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/103276/ft1_filtered_4FGL_J0915.9+2933_daily_bin94.fits scfile=/scratch/kocevski/103276/ft2_4FGL_J0915.9+2933_daily_bin94.fits outfile=/scratch/kocevski/103276/cmap_HighResolution_263692801_263952001_4FGL_J0915.9+2933_daily_bin94.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.78
user 0.38
sys 0.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .31577       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3903       1.0000         .10000E-03   10000.    
     3 'norm      '    .19616       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.859       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1877       1.0000         .10000E-03   10000.    
     6 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6511       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6797       1.0000         .10000E-03   10000.    
    10 'norm      '    3.9403       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0510       1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.828       1.0000         .10000E-03   10000.    
    13 'norm      '    .11820E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.9519       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5403       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7791       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.2876       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2275       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82633       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=   5292.145     FROM MIGRAD    STATUS=CONVERGED     69 CALLS     1974 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31543        .89963       -.17741E-06   -.18624E-04
   2  Prefactor     3.3941        1.0292       -.20947E-06    .14384E-03
   3  norm          .19636        .70848       -.15170E-06   -.19303E-03
   4  Prefactor     16.858        1.0055        .21825E-07    .23793E-04
   5  Prefactor     3.1884        1.0170        .28500E-07    .32981E-04
   6  norm          .10001E-03    40.446       -.22066E-05** at limit **
   7  Prefactor     2.6508        2.0940       -.24096E-05   -.68813E-02
   8  Prefactor     .10005E-03    10.440        .82994E-05** at limit **
   9  Prefactor     4.6790        2.2453        .21485E-05   -.86321E-05
  10  norm          3.9403        2.0030        .33623E-07    .31122E-03
  11  Prefactor     2.0521        1.8785        .24328E-05   -.78048E-03
  12  Prefactor     34.827        1.2011       -.23641E-06    .15537E-02
  13  norm          .10014E-03    18.711       -.10400E-04** at limit **
  14  Prefactor     7.9507        4.1591        .50731E-06   -.49502E-02
  15  Prefactor     2.5404        2.8619       -.30290E-06   -.20235E-02
  16  Prefactor     2.7779        1.0548       -.33650E-06    .13047E-03
  17  Prefactor     .10006E-03    10.905        .88688E-05** at limit **
  18  Prefactor     .10000E-03    1.9095       -.80306E-06** at limit **
  19  Prefactor     .10000E-03    3.4087       -.20839E-06** at limit **
  20  Prefactor     5.2876        2.4277       -.86148E-06   -.52761E-02
  21  Normalizat    1.2275        .20755        .38035E-06   -.14608E-05
  22  Prefactor     .82631        .20269       -.60733E-06    .18923E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.315426
  Prefactor  = 3.39405
  norm       = 0.196363
  Prefactor  = 16.8582
  Prefactor  = 3.18838
  norm       = 0.000100014
  Prefactor  = 2.65077
  Prefactor  = 0.000100046
  Prefactor  = 4.67896
  norm       = 3.94032
  Prefactor  = 2.05207
  Prefactor  = 34.827
  norm       = 0.000100144
  Prefactor  = 7.9507
  Prefactor  = 2.54036
  Prefactor  = 2.77788
  Prefactor  = 0.000100056
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.28755
  Normalizat = 1.22747
  Prefactor  = 0.826311
 **********
 **   18 **HESSE 
 **********

 FCN=   5292.145     FROM HESSE     STATUS=OK           400 CALLS     2374 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31543        .92842        .26392E-01   -1.5596    
   2  Prefactor     3.3941        12.821        .54935E-02   -1.5339    
   3  norm          .19636        .61029        .24511E-01   -1.5619    
   4  Prefactor     16.858        14.540        .24386E-02   -1.4887    
   5  Prefactor     3.1884        21.380        .56740E-02   -1.5351    
   6  norm          .10001E-03    40.913        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6508        2.6125        .62593E-02   -1.5382    
   8  Prefactor     .10005E-03    24.177        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6790        5.4910        .46507E-02   -1.5275    
  10  norm          3.9403        2.0065        .50805E-02   -1.5311    
  11  Prefactor     2.0521        59.040        .72162E-02   -1.5421    
  12  Prefactor     34.827        57.524        .16976E-02   -1.4527    
  13  norm          .10014E-03    22.481        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.9507        5.4932        .35547E-02   -1.5144    
  15  Prefactor     2.5404        2.9507        .64058E-02   -1.5389    
  16  Prefactor     2.7779        32.649        .61026E-02   -1.5375    
  17  Prefactor     .10006E-03    24.236        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.9048        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.3997        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.2876        2.5863        .43697E-02   -1.5248    
  21  Normalizat    1.2275        .18858        .50688E-01   -.85758    
  22  Prefactor     .82631        .17599        .44059E-01   -.98766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.99643e-08
Minuit parameter uncertainties:
  1  0.928462
  2  12.8315
  3  0.610311
  4  14.5426
  5  16.5212
  6  0.00153643
  7  2.61262
  8  0.00210875
  9  5.49155
  10  2.0065
  11  22.0376
  12  57.6159
  13  0.00359422
  14  5.49351
  15  2.95083
  16  19.0595
  17  0.00233673
  18  8.55472e-06
  19  8.03461e-06
  20  2.58631
  21  0.188683
  22  0.176107
Done.

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

Extracting fit parameters...

4FGL J0915.9+2933
   Spectrum: LogParabola
270         norm:  3.940e+00  2.006e+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.263e-01  1.761e-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.227e+00  1.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.12
Ra Dec: 138.986 29.553
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 3.99e-08 +/- 2.03e-08
Energy Flux (Fixed Index): 4.58e-05 +/- 2.33e-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) = 5291.51638474
delta logL = 0.628713668811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5291.47724269
delta logL = 0.667855719416

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2697       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2511       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2429       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82276       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=   5291.477     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      209 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2691        1.8155        .55987E-02   -.12452E-03
   2  alpha         1.2511        .34018        .25955       -.28300E-04
   3  Normalizat    1.2429        .17690        .50438E-01    .17171E-05
   4  Prefactor     .82274        .17506        .44013E-01    .13382E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.26907
  alpha      = 1.25107
  Normalizat = 1.24289
  Prefactor  = 0.822739
 **********
 **   18 **HESSE 
 **********

 FCN=   5291.477     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .87E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2691        2.1446        .70052E-04   -1.5346    
   2  alpha         1.2511        .41798        .10991E-01   -.52310    
   3  Normalizat    1.2429        .20455        .22299E-03   -.85288    
   4  Prefactor     .82274        .20249        .26411E-03   -.98896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.72435e-13
Minuit parameter uncertainties:
  1  2.1447
  2  0.420619
  3  0.204687
  4  0.202673
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/103276': 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) = 5291.47724261
delta logL = 0.667855797896

Extracting fit parameters...

4FGL J0915.9+2933
   Spectrum: LogParabola
270         norm:  3.269e+00  2.145e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        alpha:  1.251e+00  4.206e-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.227e-01  2.027e-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.243e+00  2.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.45
Ra Dec: 138.986 29.553
Photon Index (Free Index): 1.25 +/- 0.42
Photon Flux (Free Index): 2.23e-08 +/- 1.61e-08
Energy Flux (Free Index): 9.70e-05 +/- 8.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/103276/cmap_HighResolution_263692801_263952001_4FGL_J0915.9+2933_daily_bin94.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.99e-08', energy_flux2='9.70e-05', photon_flux_error='2.03e-08', dlogl='6.68e-01', energy_flux='4.58e-05', photon_flux2='2.23e-08', job_status='DONE', time_completed='2021-08-31 05:42:11.103444', photon_index_error2='0.42', photon_index2='1.25', ts='22.12', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='8.41e-05', EG='1.23', time_epoch_completed='1630413731.1', return_code='0', job_id='103276', GAL2='0.82', EG2='1.24', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='1.61e-08', ts2='23.45', photon_index='1.75' WHERE bin_id='94' AND source_name='4FGL J0915.9+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 05:42:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 103276: <4FGL_J0915.9+2933_daily_bin94> in cluster <slac> Done

Job <4FGL_J0915.9+2933_daily_bin94> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 05:30:49 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 05:30:51 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:30:51 2021
Terminated at Tue Aug 31 05:42:11 2021
Results reported at Tue Aug 31 05:42:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0915.9+2933_daily_bin94 138.986 29.553 263692801 263952001 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 :                                   517.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            682 sec.

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

