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


Performing analysis on: 4FGL_J0915.9+2933_daily_bin970
RA = 138.986, Dec = 29.553
tmin = 490752001, tmax = 491011201
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='108473', job_status='RUN', time_executed='2021-08-31 05:50:58.646165', time_epoch_executed='1630414258.65' WHERE source_name='4FGL J0915.9+2933' and cadence='daily' and bin_id='970'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/108473

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/108473/ft1_4FGL_J0915.9+2933_daily_bin970.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/108473/ft2_4FGL_J0915.9+2933_daily_bin970.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/108473/ft1_4FGL_J0915.9+2933_daily_bin970.fits outfile=/scratch/kocevski/108473/ft1_filteredMKT_4FGL_J0915.9+2933_daily_bin970.fits ra=138.986 dec=29.553 rad=12.0 tmin=490752001.0 tmax=491011201.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 5.98
user 5.49
sys 0.46

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/108473/ft1_filtered_4FGL_J0915.9+2933_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/108473/ft2_4FGL_J0915.9+2933_daily_bin970.fits sctable="SC_DATA" expcube=/scratch/kocevski/108473/ltcube_490752001_491011201_4FGL_J0915.9+2933_daily_bin970.fits outfile=/scratch/kocevski/108473/expmap_490752001_491011201_4FGL_J0915.9+2933_daily_bin970.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/108473/ltcube_490752001_491011201_4FGL_J0915.9+2933_daily_bin970.fits
.....................!
real 192.05
user 185.37
sys 5.95

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/108473/ft1_filtered_4FGL_J0915.9+2933_daily_bin970.fits scfile=/scratch/kocevski/108473/ft2_4FGL_J0915.9+2933_daily_bin970.fits outfile=/scratch/kocevski/108473/cmap_490752001_491011201_4FGL_J0915.9+2933_daily_bin970.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.86
user 0.40
sys 0.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/108473/ft1_filtered_4FGL_J0915.9+2933_daily_bin970.fits scfile=/scratch/kocevski/108473/ft2_4FGL_J0915.9+2933_daily_bin970.fits outfile=/scratch/kocevski/108473/cmap_HighResolution_490752001_491011201_4FGL_J0915.9+2933_daily_bin970.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.85
user 0.39
sys 0.41

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2698       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.3772       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.660       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.141       1.0000         .10000E-03   10000.    
     6 'norm      '    21.758       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.0417       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6427       1.0000         .10000E-03   10000.    
    10 'norm      '    .72797       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19986E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10744E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10994E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    54.539       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.144       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.059       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1324       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85693       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=   5683.104     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2372 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2703        1.4746       -.25307E-06   -.81429E-04
   2  Prefactor     .10000E-03    9.4616       -.17419E-06** at limit **
   3  norm          3.3774        1.0977       -.15323E-06    .68918E-03
   4  Prefactor     26.667        19.295        .84117E-05    .42770E-04
   5  Prefactor     18.142        18.226        .18457E-05    .37753E-04
   6  norm          21.642        42.978       -.92842E-04   -.43410E-04
   7  Prefactor     9.0433        4.7343       -.71510E-06   -.10624E-02
   8  Prefactor     .10000E-03    20.787        .12331E-04** at limit **
   9  Prefactor     4.6481        5.4683       -.98096E-06   -.21682E-03
  10  norm          .72762        1.5860       -.68342E-06   -.16966E-02
  11  Prefactor     .10000E-03    19.537       -.14121E-04** at limit **
  12  Prefactor     .10001E-03    135.13        .69318E-04** at limit **
  13  norm          .10000E-03    16.602        .21233E-05** at limit **
  14  Prefactor     .10000E-03    2.9650       -.26472E-07** at limit **
  15  Prefactor     .10000E-03    2.9580       -.12531E-08** at limit **
  16  Prefactor     .10000E-03    65.998       -.13607E-04** at limit **
  17  Prefactor     54.526        71.905       -.14427E-04    .84410E-05
  18  Prefactor     15.142        9.6392       -.47922E-06    .76511E-04
  19  Prefactor     13.062        11.324       -.10757E-05   -.29004E-05
  20  Prefactor     .10000E-03    1.3138       -.86946E-07** at limit **
  21  Normalizat    1.1323        .18896        .22650E-05    .89657E-04
  22  Prefactor     .85691        .17603        .57760E-05   -.80819E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.27033
  Prefactor  = 0.0001
  norm       = 3.37744
  Prefactor  = 26.6668
  Prefactor  = 18.1424
  norm       = 21.6419
  Prefactor  = 9.04327
  Prefactor  = 0.0001
  Prefactor  = 4.6481
  norm       = 0.727615
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.5257
  Prefactor  = 15.1416
  Prefactor  = 13.062
  Prefactor  = 0.0001
  Normalizat = 1.13231
  Prefactor  = 0.856911
 **********
 **   18 **HESSE 
 **********

 FCN=   5683.104     FROM HESSE     STATUS=OK           344 CALLS     2716 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2703        1.4725        .71187E-04   -1.5407    
   2  Prefactor     .10000E-03    9.5232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.3774        1.0986        .41829E-04   -1.5340    
   4  Prefactor     26.667        19.297        .77586E-04   -1.4675    
   5  Prefactor     18.142        18.277        .94035E-04   -1.4856    
   6  norm          21.642        43.031        .85869E-04   -1.4777    
   7  Prefactor     9.0433        4.7406        .57129E-03   -1.5106    
   8  Prefactor     .10000E-03    20.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6481        5.4644        .18199E-03   -1.5277    
  10  norm          .72762        1.3362        .13500E-02   -1.5537    
  11  Prefactor     .10000E-03    19.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    137.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    17.167        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.0429        .25287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.0130        .12643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    66.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     54.526        71.912        .54314E-04   -1.4230    
  18  Prefactor     15.142        9.6641        .10292E-03   -1.4930    
  19  Prefactor     13.062        11.356        .11084E-03   -1.4985    
  20  Prefactor     .10000E-03    1.3445        .84319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1323        .22067        .24656E-03   -.88721    
  22  Prefactor     .85691        .20380        .26763E-03   -.97663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22148e-09
Minuit parameter uncertainties:
  1  1.47254
  2  3.1393e-05
  3  1.09863
  4  19.3015
  5  18.2823
  6  43.0928
  7  4.74084
  8  1.88935e-05
  9  5.46495
  10  1.33627
  11  6.12813e-05
  12  0.00258543
  13  0.000193983
  14  1.29445e-05
  15  2.2009e-06
  16  0.000179719
  17  72.027
  18  9.66514
  19  11.3576
  20  1.0289e-05
  21  0.220853
  22  0.203976
Done.

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

Extracting fit parameters...

4FGL J0915.9+2933
   Spectrum: LogParabola
270         norm:  7.276e-01  1.336e+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.569e-01  2.040e-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.132e+00  2.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/108473/likelihoodResults_490752001_491011201_4FGL_J0915.9+2933_daily_bin970.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) = 5682.95454588
delta logL = 0.149737795141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5682.95156074
delta logL = 0.152722934869

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .64713       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3493       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1243       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85919       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=   5682.952     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      212 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .64719        36.434        .11857E-02    .19869E-03
   2  alpha         2.3500        2.7943        .41246        .29011E-04
   3  Normalizat    1.1244        .72076E-01    .55923E-01    .24017E-05
   4  Prefactor     .85914        .55889E-01    .44483E-01    .12214E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.64719
  alpha      = 2.35005
  Normalizat = 1.12439
  Prefactor  = 0.859142
 **********
 **   18 **HESSE 
 **********

 FCN=   5682.952     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .64719        1.2622        .47430E-04   -1.5547    
   2  alpha         2.3500        1.1813        .19595E-01   -.60018E-01
   3  Normalizat    1.1244        .20971        .24729E-03   -.88973    
   4  Prefactor     .85914        .20121        .26725E-03   -.97584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44228e-12
Minuit parameter uncertainties:
  1  1.26227
  2  1.23061
  3  0.209869
  4  0.201383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/108473': 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) = 5682.95156027
delta logL = 0.152723409015

Extracting fit parameters...

4FGL J0915.9+2933
   Spectrum: LogParabola
270         norm:  6.472e-01  1.262e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        alpha:  2.350e+00  1.231e+00  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.591e-01  2.014e-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.124e+00  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.44
Ra Dec: 138.986 29.553

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/108473/cmap_HighResolution_490752001_491011201_4FGL_J0915.9+2933_daily_bin970.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.64e-05', job_status='DONE', photon_flux_upper_limit='4.90e-08', time_completed='2021-08-31 06:01:04.034870', job_id='108473', GAL2='0.86', fit_tolerance='1e-08', EG2='1.12', EG='1.13', time_epoch_completed='1630414864.03', return_code2='0', ts='0.44', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.53e-01', ts2='0.74', photon_index_error='0.00', photon_index='1.75' WHERE bin_id='970' AND source_name='4FGL J0915.9+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:01:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 108473: <4FGL_J0915.9+2933_daily_bin970> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0915.9+2933_daily_bin970 138.986 29.553 490752001 491011201 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 :                                   602.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             251.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            895 sec.

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

