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


Performing analysis on: 4FGL_J0915.9+2933_daily_bin586
RA = 138.986, Dec = 29.553
tmin = 391219201, tmax = 391478401
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='106612', job_status='RUN', time_executed='2021-08-31 05:44:43.193142', time_epoch_executed='1630413883.19' WHERE source_name='4FGL J0915.9+2933' and cadence='daily' and bin_id='586'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/106612

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/106612/ft1_4FGL_J0915.9+2933_daily_bin586.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/106612/ft2_4FGL_J0915.9+2933_daily_bin586.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/106612/ft1_4FGL_J0915.9+2933_daily_bin586.fits outfile=/scratch/kocevski/106612/ft1_filteredMKT_4FGL_J0915.9+2933_daily_bin586.fits ra=138.986 dec=29.553 rad=12.0 tmin=391219201.0 tmax=391478401.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.13
user 3.17
sys 0.73

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/106612/ft1_filtered_4FGL_J0915.9+2933_daily_bin586.fits evtable="EVENTS" scfile=/scratch/kocevski/106612/ft2_4FGL_J0915.9+2933_daily_bin586.fits sctable="SC_DATA" expcube=/scratch/kocevski/106612/ltcube_391219201_391478401_4FGL_J0915.9+2933_daily_bin586.fits outfile=/scratch/kocevski/106612/expmap_391219201_391478401_4FGL_J0915.9+2933_daily_bin586.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/106612/ltcube_391219201_391478401_4FGL_J0915.9+2933_daily_bin586.fits
.....................!
real 193.61
user 186.62
sys 5.06

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/106612/ft1_filtered_4FGL_J0915.9+2933_daily_bin586.fits scfile=/scratch/kocevski/106612/ft2_4FGL_J0915.9+2933_daily_bin586.fits outfile=/scratch/kocevski/106612/cmap_391219201_391478401_4FGL_J0915.9+2933_daily_bin586.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.05
user 0.38
sys 0.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/106612/ft1_filtered_4FGL_J0915.9+2933_daily_bin586.fits scfile=/scratch/kocevski/106612/ft2_4FGL_J0915.9+2933_daily_bin586.fits outfile=/scratch/kocevski/106612/cmap_HighResolution_391219201_391478401_4FGL_J0915.9+2933_daily_bin586.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.19
user 0.38
sys 0.66

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32170       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.1802       1.0000         .10000E-03   10000.    
     3 'norm      '    1.5054       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9258       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    20.147       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15266E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5424       1.0000         .10000E-03   10000.    
    10 'norm      '    2.1289       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.830       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1605       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.204       1.0000         .10000E-03   10000.    
    17 'Prefactor '    48.853       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.828       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .49140E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.544       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4606       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .60042       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=   6701.004     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2335 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32111        1.1558        .10520E-01    .21085E-02
   2  Prefactor     7.1834        11.208        .37424E-02    .11285E-03
   3  norm          1.5055        .79463        .87201E-02    .33206E-03
   4  Prefactor     3.9254        12.621        .50902E-02    .30440E-03
   5  Prefactor     .10000E-03    5.5931        .90712E-02** at limit **
   6  norm          20.147        21.673        .22308E-02    .11458E-03
   7  Prefactor     .10000E-03    1.7344        .36457E-01** at limit **
   8  Prefactor     .10004E-03    23.588        .90712E-02** at limit **
   9  Prefactor     3.5412        3.7467        .53690E-02    .11093E-02
  10  norm          2.1290        1.7147        .70647E-02    .86001E-04
  11  Prefactor     .10005E-03    23.049        .90712E-02** at limit **
  12  Prefactor     .10000E-03    10.723        .90712E-02** at limit **
  13  norm          12.824        9.9593        .27957E-02   -.10691E-02
  14  Prefactor     1.1601        3.7453        .10694E-01    .85531E-03
  15  Prefactor     .10000E-03    1.1768        .90712E-02** at limit **
  16  Prefactor     23.204        32.342        .20789E-02    .37376E-03
  17  Prefactor     48.853        42.832        .14343E-02   -.15360E-03
  18  Prefactor     14.828        7.6745        .26003E-02   -.31655E-03
  19  Prefactor     .10000E-03    5.2930        .10583    ** at limit **
  20  Prefactor     10.543        3.2636        .30848E-02   -.49539E-02
  21  Normalizat    1.4605        .17849        .50118E-01   -.53875E-04
  22  Prefactor     .60047        .16046        .69969E-01   -.11766E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.321109
  Prefactor  = 7.18342
  norm       = 1.50547
  Prefactor  = 3.92545
  Prefactor  = 0.0001
  norm       = 20.1474
  Prefactor  = 0.0001
  Prefactor  = 0.000100043
  Prefactor  = 3.54124
  norm       = 2.12903
  Prefactor  = 0.000100051
  Prefactor  = 0.0001
  norm       = 12.8238
  Prefactor  = 1.16011
  Prefactor  = 0.0001
  Prefactor  = 23.2036
  Prefactor  = 48.853
  Prefactor  = 14.8279
  Prefactor  = 0.0001
  Prefactor  = 10.5432
  Normalizat = 1.46051
  Prefactor  = 0.600474
 **********
 **   18 **HESSE 
 **********

 FCN=   6701.004     FROM HESSE     STATUS=OK           340 CALLS     2675 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32111        1.1185        .15447E-03   -1.5595    
   2  Prefactor     7.1834        11.036        .14970E-03   -1.5172    
   3  norm          1.5055        .78727        .49065E-04   -1.5463    
   4  Prefactor     3.9254        12.538        .20361E-03   -1.5312    
   5  Prefactor     .10000E-03    5.6047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          20.147        21.666        .89232E-04   -1.4810    
   7  Prefactor     .10000E-03    5.0742        .20933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10004E-03    23.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.5412        3.7248        .15331E-03   -1.5332    
  10  norm          2.1290        1.7105        .92989E-04   -1.5416    
  11  Prefactor     .10005E-03    23.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.824        9.8056        .11183E-03   -1.4992    
  14  Prefactor     1.1601        3.6259        .25074E-03   -1.5493    
  15  Prefactor     .10000E-03    1.1841        .86675E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.204        32.522        .83155E-04   -1.4744    
  17  Prefactor     48.853        42.834        .57372E-04   -1.4309    
  18  Prefactor     14.828        7.6744        .10401E-03   -1.4938    
  19  Prefactor     .10000E-03    31.466        .36122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.543        3.2658        .78966E-04   -1.5058    
  21  Normalizat    1.4605        .20752        .22156E-03   -.78894    
  22  Prefactor     .60047        .18573        .30970E-03   -1.0757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.96759e-09
Minuit parameter uncertainties:
  1  1.11855
  2  11.0393
  3  0.787271
  4  12.5466
  5  3.67907e-05
  6  21.6743
  7  7.5874e-07
  8  0.00200898
  9  3.72504
  10  1.71053
  11  0.00217024
  12  2.80538e-05
  13  9.80679
  14  3.62654
  15  2.00574e-06
  16  32.5468
  17  42.8606
  18  7.67493
  19  0.000106469
  20  3.26587
  21  0.207636
  22  0.185917
Done.

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

Extracting fit parameters...

4FGL J0915.9+2933
   Spectrum: LogParabola
270         norm:  2.129e+00  1.711e+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:  6.005e-01  1.859e-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.461e+00  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.59
Ra Dec: 138.986 29.553
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 2.16e-08 +/- 1.73e-08
Energy Flux (Fixed Index): 2.48e-05 +/- 1.99e-05

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

Saving results to:
/scratch/kocevski/106612/likelihoodResults_391219201_391478401_4FGL_J0915.9+2933_daily_bin586.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) = 6699.92766639
delta logL = 1.07608543519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6699.91390581
delta logL = 1.08984600829

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6054       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5688       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4188       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61713       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=   6699.914     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      246 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6053        15.233        .83615E-02    .35973E-03
   2  alpha         2.5688        3.7253        .25124        .70747E-04
   3  Normalizat    1.4188        .63801E-01    .50690E-01   -.20292E-06
   4  Prefactor     .61714        .53890E-01    .69021E-01    .28936E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.60532
  alpha      = 2.56883
  Normalizat = 1.41879
  Prefactor  = 0.617139
 **********
 **   18 **HESSE 
 **********

 FCN=   6699.914     FROM HESSE     STATUS=OK            31 CALLS      277 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6053        1.5096        .57276E-04   -1.5455    
   2  alpha         2.5688        .58454        .94384E-02    .27535E-01
   3  Normalizat    1.4188        .19781        .22410E-03   -.80087    
   4  Prefactor     .61714        .18364        .30548E-03   -1.0687    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.16402e-12
Minuit parameter uncertainties:
  1  1.50963
  2  0.590006
  3  0.197919
  4  0.183818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/106612': 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) = 6699.91390577
delta logL = 1.08984605281

Extracting fit parameters...

4FGL J0915.9+2933
   Spectrum: LogParabola
270         norm:  1.605e+00  1.510e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        alpha:  2.569e+00  5.900e-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.171e-01  1.838e-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.419e+00  1.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.75
Ra Dec: 138.986 29.553
Photon Index (Free Index): 2.57 +/- 0.59
Photon Flux (Free Index): 6.08e-08 +/- 4.14e-08
Energy Flux (Free Index): 1.82e-05 +/- 1.10e-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/106612/cmap_HighResolution_391219201_391478401_4FGL_J0915.9+2933_daily_bin586.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.33e-05', comment='SUCCESS', photon_flux='2.16e-08', energy_flux2='1.82e-05', photon_flux_error='1.73e-08', dlogl='1.09e+00', energy_flux='2.48e-05', photon_flux2='6.08e-08', job_status='DONE', time_completed='2021-08-31 05:55:44.230164', photon_index_error2='0.59', photon_index2='2.57', ts='3.59', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', photon_flux_upper_limit='6.38e-08', energy_flux_error2='1.10e-05', EG='1.46', time_epoch_completed='1630414544.23', return_code='0', job_id='106612', GAL2='0.62', EG2='1.42', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='4.14e-08', ts2='5.75', photon_index='1.75' WHERE bin_id='586' AND source_name='4FGL J0915.9+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 05:55:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 106612: <4FGL_J0915.9+2933_daily_bin586> in cluster <slac> Done

Job <4FGL_J0915.9+2933_daily_bin586> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 05:40:52 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 05:40:53 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:40:53 2021
Terminated at Tue Aug 31 05:55:45 2021
Results reported at Tue Aug 31 05:55:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0915.9+2933_daily_bin586 138.986 29.553 391219201 391478401 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 :                                   657.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             242.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            893 sec.

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

