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


Performing analysis on: 4FGL_J0915.9+2933_daily_bin339
RA = 138.986, Dec = 29.553
tmin = 327196801, tmax = 327456001
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='104833', job_status='RUN', time_executed='2021-08-31 05:38:40.477884', time_epoch_executed='1630413520.48' WHERE source_name='4FGL J0915.9+2933' and cadence='daily' and bin_id='339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/104833

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/104833/ft1_4FGL_J0915.9+2933_daily_bin339.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/104833/ft2_4FGL_J0915.9+2933_daily_bin339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/104833/ft1_4FGL_J0915.9+2933_daily_bin339.fits outfile=/scratch/kocevski/104833/ft1_filteredMKT_4FGL_J0915.9+2933_daily_bin339.fits ra=138.986 dec=29.553 rad=12.0 tmin=327196801.0 tmax=327456001.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 4.71
user 3.07
sys 1.56

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/104833/ft2_4FGL_J0915.9+2933_daily_bin339.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/104833/ft1_filteredMKT_4FGL_J0915.9+2933_daily_bin339.fits evtable="EVENTS" outfile="/scratch/kocevski/104833/ft1_filtered_4FGL_J0915.9+2933_daily_bin339.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 1.88
user 0.31
sys 1.54

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/104833/ft1_filtered_4FGL_J0915.9+2933_daily_bin339.fits" evtable="EVENTS" scfile=/scratch/kocevski/104833/ft2_4FGL_J0915.9+2933_daily_bin339.fits sctable="SC_DATA" outfile=/scratch/kocevski/104833/ltcube_327196801_327456001_4FGL_J0915.9+2933_daily_bin339.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/104833/ft2_4FGL_J0915.9+2933_daily_bin339.fits
.....................!
real 13.84
user 11.80
sys 1.97

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/104833/ft1_filtered_4FGL_J0915.9+2933_daily_bin339.fits evtable="EVENTS" scfile=/scratch/kocevski/104833/ft2_4FGL_J0915.9+2933_daily_bin339.fits sctable="SC_DATA" expcube=/scratch/kocevski/104833/ltcube_327196801_327456001_4FGL_J0915.9+2933_daily_bin339.fits outfile=/scratch/kocevski/104833/expmap_327196801_327456001_4FGL_J0915.9+2933_daily_bin339.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/104833/ltcube_327196801_327456001_4FGL_J0915.9+2933_daily_bin339.fits
.....................!
real 195.50
user 187.19
sys 7.87

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/104833/ft1_filtered_4FGL_J0915.9+2933_daily_bin339.fits scfile=/scratch/kocevski/104833/ft2_4FGL_J0915.9+2933_daily_bin339.fits outfile=/scratch/kocevski/104833/cmap_327196801_327456001_4FGL_J0915.9+2933_daily_bin339.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.87
user 0.37
sys 1.49

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/104833/ft1_filtered_4FGL_J0915.9+2933_daily_bin339.fits scfile=/scratch/kocevski/104833/ft2_4FGL_J0915.9+2933_daily_bin339.fits outfile=/scratch/kocevski/104833/cmap_HighResolution_327196801_327456001_4FGL_J0915.9+2933_daily_bin339.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.93
user 0.37
sys 1.48

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .89617       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.389       1.0000         .10000E-03   10000.    
     3 'norm      '    1.3766       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8973       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .17168E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6994       1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.614       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0411       1.0000         .10000E-03   10000.    
    10 'norm      '    2.3437       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.1168       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10521E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .12862E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6912       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13463       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2835       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .58484       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=   5425.887     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2359 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .89705        1.3036       -.18373E-06   -.10367E-02
   2  Prefactor     10.394        11.446        .17729E-06   -.17725E-04
   3  norm          1.3766        .71877        .66171E-08   -.95065E-07
   4  Prefactor     5.8974        7.4746       -.32089E-06   -.31136E-03
   5  Prefactor     .10000E-03    11.754       -.12054E-05** at limit **
   6  norm          .10000E-03    57.041       -.44760E-05** at limit **
   7  Prefactor     3.6992        2.9636       -.25201E-07   -.35233E-04
   8  Prefactor     26.588        47.282       -.14119E-04   -.55766E-04
   9  Prefactor     6.0420        4.3083        .14573E-06   -.18946E-03
  10  norm          2.3436        1.9592       -.65052E-07   -.26915E-03
  11  Prefactor     4.0847        48.323        .10533E-04    .14209E-04
  12  Prefactor     .10000E-03    27.620       -.15101E-04** at limit **
  13  norm          .10000E-03    9.6780        .39755E-08** at limit **
  14  Prefactor     2.6917        2.4999       -.12292E-06   -.33241E-04
  15  Prefactor     .10000E-03    2.4533       -.86889E-09** at limit **
  16  Prefactor     .10000E-03    15.613        .26695E-05** at limit **
  17  Prefactor     .10000E-03    33.351        .19081E-04** at limit **
  18  Prefactor     .12819        3.6347       -.71197E-06    .25348E-03
  19  Prefactor     .10000E-03    3.6314        .71663E-08** at limit **
  20  Prefactor     .10000E-03    .69661       -.12187E-07** at limit **
  21  Normalizat    1.2836        .16871       -.27395E-07    .12513E-03
  22  Prefactor     .58470        .16215        .49866E-06    .33413E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.897045
  Prefactor  = 10.3939
  norm       = 1.37656
  Prefactor  = 5.89736
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.6992
  Prefactor  = 26.5883
  Prefactor  = 6.04203
  norm       = 2.34363
  Prefactor  = 4.0847
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.69166
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.128188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.2836
  Prefactor  = 0.5847
 **********
 **   18 **HESSE 
 **********

 FCN=   5425.887     FROM HESSE     STATUS=OK           350 CALLS     2709 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .89705        1.1973        .95817E-03   -1.5519    
   2  Prefactor     10.394        11.354        .12431E-03   -1.5063    
   3  norm          1.3766        .72067        .43476E-04   -1.5473    
   4  Prefactor     5.8974        7.4880        .82682E-03   -1.5222    
   5  Prefactor     .10000E-03    11.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    57.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.6992        2.9655        .10990E-03   -1.5323    
   8  Prefactor     26.588        45.735        .77654E-04   -1.4676    
   9  Prefactor     6.0420        4.2922        .12063E-03   -1.5216    
  10  norm          2.3436        1.9514        .90939E-04   -1.5402    
  11  Prefactor     4.0847        43.955        .19868E-03   -1.5304    
  12  Prefactor     .10000E-03    27.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    9.9224        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.6917        2.4945        .10618E-03   -1.5380    
  15  Prefactor     .10000E-03    2.5057        .11252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    33.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .12819        73.012        .26610E-02   -1.5636    
  19  Prefactor     .10000E-03    3.6434        .13707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .70323        .60012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2836        .19472        .19881E-03   -.84057    
  22  Prefactor     .58470        .18502        .27808E-03   -1.0823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.509e-09
Minuit parameter uncertainties:
  1  1.19732
  2  11.3567
  3  0.720673
  4  7.48923
  5  2.06737e-06
  6  3.24496e-05
  7  2.96559
  8  45.7955
  9  4.29243
  10  1.95146
  11  26.8237
  12  1.00712e-05
  13  0.000128649
  14  2.49461
  15  5.57127e-07
  16  1.55146e-06
  17  1.3703e-05
  18  6.12372
  19  9.04881e-07
  20  2.50053e-07
  21  0.194827
  22  0.185213
Done.

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

Extracting fit parameters...

4FGL J0915.9+2933
   Spectrum: LogParabola
270         norm:  2.344e+00  1.951e+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:  5.847e-01  1.852e-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.284e+00  1.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.38
Ra Dec: 138.986 29.553
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 2.37e-08 +/- 1.98e-08
Energy Flux (Fixed Index): 2.73e-05 +/- 2.27e-05

TS (Fixed Index): 2.38
Ra Dec: 138.986 29.553
Photon Flux Upper Limit: 6.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/104833/likelihoodResults_327196801_327456001_4FGL_J0915.9+2933_daily_bin339.txt

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) = 5424.05230262
delta logL = 1.83479331407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5424.04980406
delta logL = 1.83729187423

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2918       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8182       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2225       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61303       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=   5424.050     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      240 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2901        10.521        .94247E-02    .33366E-03
   2  alpha         2.8187        3.7342        .18773        .59963E-04
   3  Normalizat    1.2224        .60140E-01    .34361E-01    .10942E-04
   4  Prefactor     .61312        .54456E-01    .61366E-01    .24074E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.29013
  alpha      = 2.81866
  Normalizat = 1.22244
  Prefactor  = 0.613117
 **********
 **   18 **HESSE 
 **********

 FCN=   5424.050     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2901        1.4641        .42264E-04   -1.5481    
   2  alpha         2.8187        .64081        .75567E-02    .12781    
   3  Normalizat    1.2224        .19105        .20264E-03   -.85912    
   4  Prefactor     .61312        .18412        .27148E-03   -1.0704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.94956e-09
Minuit parameter uncertainties:
  1  1.46416
  2  0.648164
  3  0.191155
  4  0.184299
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/104833': 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) = 5424.04980301
delta logL = 1.83729292758

Extracting fit parameters...

4FGL J0915.9+2933
   Spectrum: LogParabola
270         norm:  1.290e+00  1.464e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        alpha:  2.819e+00  6.482e-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:  6.131e-01  1.843e-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.222e+00  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.08
Ra Dec: 138.986 29.553
Photon Index (Free Index): 2.82 +/- 0.65
Photon Flux (Free Index): 7.93e-08 +/- 4.73e-08
Energy Flux (Free Index): 1.95e-05 +/- 1.07e-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/104833/cmap_HighResolution_327196801_327456001_4FGL_J0915.9+2933_daily_bin339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.98e-05', comment='SUCCESS', photon_flux='2.37e-08', energy_flux2='1.95e-05', photon_flux_error='1.98e-08', dlogl='1.84e+00', energy_flux='2.73e-05', photon_flux2='7.93e-08', job_status='DONE', time_completed='2021-08-31 05:48:46.705368', photon_index_error2='0.65', photon_index2='2.82', ts='2.38', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', photon_flux_upper_limit='6.95e-08', energy_flux_error2='1.07e-05', EG='1.28', time_epoch_completed='1630414126.71', return_code='0', job_id='104833', GAL2='0.61', EG2='1.22', return_code2='0', energy_flux_error='2.27e-05', photon_flux_error2='4.73e-08', ts2='6.08', photon_index='1.75' WHERE bin_id='339' AND source_name='4FGL J0915.9+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 05:48:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 104833: <4FGL_J0915.9+2933_daily_bin339> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0915.9+2933_daily_bin339 138.986 29.553 327196801 327456001 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 :                                   625.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            797 sec.

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

