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


Performing analysis on: 4FGL_J0915.9+2933_daily_bin922
RA = 138.986, Dec = 29.553
tmin = 478310401, tmax = 478569601
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='110085', job_status='RUN', time_executed='2021-08-31 05:54:42.574245', time_epoch_executed='1630414482.57' WHERE source_name='4FGL J0915.9+2933' and cadence='daily' and bin_id='922'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/110085

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/110085/ft1_4FGL_J0915.9+2933_daily_bin922.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/110085/ft2_4FGL_J0915.9+2933_daily_bin922.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/110085/ft1_4FGL_J0915.9+2933_daily_bin922.fits outfile=/scratch/kocevski/110085/ft1_filteredMKT_4FGL_J0915.9+2933_daily_bin922.fits ra=138.986 dec=29.553 rad=12.0 tmin=478310401.0 tmax=478569601.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.66
user 3.26
sys 0.58

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/110085/ft1_filtered_4FGL_J0915.9+2933_daily_bin922.fits" evtable="EVENTS" scfile=/scratch/kocevski/110085/ft2_4FGL_J0915.9+2933_daily_bin922.fits sctable="SC_DATA" outfile=/scratch/kocevski/110085/ltcube_478310401_478569601_4FGL_J0915.9+2933_daily_bin922.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/110085/ft2_4FGL_J0915.9+2933_daily_bin922.fits
.....................!
real 13.01
user 11.91
sys 0.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/110085/ft1_filtered_4FGL_J0915.9+2933_daily_bin922.fits evtable="EVENTS" scfile=/scratch/kocevski/110085/ft2_4FGL_J0915.9+2933_daily_bin922.fits sctable="SC_DATA" expcube=/scratch/kocevski/110085/ltcube_478310401_478569601_4FGL_J0915.9+2933_daily_bin922.fits outfile=/scratch/kocevski/110085/expmap_478310401_478569601_4FGL_J0915.9+2933_daily_bin922.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/110085/ltcube_478310401_478569601_4FGL_J0915.9+2933_daily_bin922.fits
.....................!
real 194.30
user 184.60
sys 6.05

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/110085/ft1_filtered_4FGL_J0915.9+2933_daily_bin922.fits scfile=/scratch/kocevski/110085/ft2_4FGL_J0915.9+2933_daily_bin922.fits outfile=/scratch/kocevski/110085/cmap_478310401_478569601_4FGL_J0915.9+2933_daily_bin922.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.92
user 0.37
sys 0.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/110085/ft1_filtered_4FGL_J0915.9+2933_daily_bin922.fits scfile=/scratch/kocevski/110085/ft2_4FGL_J0915.9+2933_daily_bin922.fits outfile=/scratch/kocevski/110085/cmap_HighResolution_478310401_478569601_4FGL_J0915.9+2933_daily_bin922.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.45
user 0.40
sys 0.48

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7318       1.0000         .10000E-03   10000.    
     3 'norm      '    1.3997       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.8460       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1161       1.0000         .10000E-03   10000.    
     6 'norm      '    24.150       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3718       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3821       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0427       1.0000         .10000E-03   10000.    
    10 'norm      '    3.0133       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.189       1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2334       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3400       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .81729       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0325       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=   5481.155     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2388 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .62691        .64555E-07** at limit **
   2  Prefactor     1.7309        29.497        .28390E-05    .12189E-04
   3  norm          1.3994        .73673       -.84575E-07   -.27734E-03
   4  Prefactor     6.8447        11.254       -.26158E-06   -.11563E-04
   5  Prefactor     5.1170        14.702        .85990E-05    .12091E-03
   6  norm          24.050        46.024       -.22182E-05   -.14131E-03
   7  Prefactor     4.3721        3.3776        .81426E-07   -.28993E-04
   8  Prefactor     4.3707        102.24        .18919E-05   -.53038E-05
   9  Prefactor     4.0429        4.8649        .24249E-06   -.14484E-05
  10  norm          3.0132        1.9786       -.92857E-07   -.68238E-04
  11  Prefactor     .10000E-03    21.502       -.31801E-06** at limit **
  12  Prefactor     45.189        37.210       -.15048E-06   -.16463E-04
  13  norm          .10000E-03    5.8774        .21963E-06** at limit **
  14  Prefactor     3.2340        3.0167        .71014E-07   -.33569E-04
  15  Prefactor     .10000E-03    1.0443        .95697E-08** at limit **
  16  Prefactor     .10000E-03    11.509        .21404E-06** at limit **
  17  Prefactor     .10000E-03    65.527        .82221E-06** at limit **
  18  Prefactor     .10000E-03    9.3656        .82657E-06** at limit **
  19  Prefactor     .10000E-03    3.2023        .15169E-06** at limit **
  20  Prefactor     3.3402        2.4964        .16752E-06   -.28289E-04
  21  Normalizat    .81681        .18692       -.57956E-05    .60020E-04
  22  Prefactor     1.0330        .18359        .38232E-05   -.29120E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 1.7309
  norm       = 1.39942
  Prefactor  = 6.84467
  Prefactor  = 5.11702
  norm       = 24.05
  Prefactor  = 4.37212
  Prefactor  = 4.37069
  Prefactor  = 4.04295
  norm       = 3.01317
  Prefactor  = 0.0001
  Prefactor  = 45.1893
  norm       = 0.0001
  Prefactor  = 3.23396
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.34019
  Normalizat = 0.816814
  Prefactor  = 1.03302
 **********
 **   18 **HESSE 
 **********

 FCN=   5481.155     FROM HESSE     STATUS=OK           342 CALLS     2730 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .65246        .11403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.7309        29.420        .31898E-03   -1.5445    
   3  norm          1.3994        .73253        .43830E-04   -1.5471    
   4  Prefactor     6.8447        11.219        .15334E-03   -1.5185    
   5  Prefactor     5.1170        14.913        .88875E-03   -1.5256    
   6  norm          24.050        46.264        .81511E-04   -1.4727    
   7  Prefactor     4.3721        3.3777        .11528E-03   -1.5290    
   8  Prefactor     4.3707        100.90        .19240E-03   -1.5290    
   9  Prefactor     4.0429        4.8194        .16065E-03   -1.5306    
  10  norm          3.0132        1.9745        .81443E-04   -1.5361    
  11  Prefactor     .10000E-03    21.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     45.189        37.209        .59642E-04   -1.4362    
  13  norm          .10000E-03    5.9317        .17515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.2340        3.0112        .11671E-03   -1.5348    
  15  Prefactor     .10000E-03    1.0482        .73856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    65.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.7086        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.2144        .12940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.3402        2.4921        .96710E-04   -1.5342    
  21  Normalizat    .81681        .20172        .24738E-03   -.99448    
  22  Prefactor     1.0330        .20101        .22428E-03   -.91637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.73725e-10
Minuit parameter uncertainties:
  1  2.40832e-06
  2  14.2799
  3  0.732531
  4  11.2229
  5  14.924
  6  46.3332
  7  3.37785
  8  42.0799
  9  4.81983
  10  1.97458
  11  1.74157e-05
  12  37.2283
  13  1.82281e-05
  14  3.01131
  15  2.89528e-07
  16  2.38506e-05
  17  0.000170709
  18  6.66772e-05
  19  7.81846e-06
  20  2.49213
  21  0.201906
  22  0.201156
Done.

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

Extracting fit parameters...

4FGL J0915.9+2933
   Spectrum: LogParabola
270         norm:  3.013e+00  1.975e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        alpha:  1.750e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
272         beta:  7.920e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  1.366e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.033e+00  2.012e-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:  8.168e-01  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.84
Ra Dec: 138.986 29.553
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 3.05e-08 +/- 2.00e-08
Energy Flux (Fixed Index): 3.51e-05 +/- 2.30e-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) = 5480.44578106
delta logL = 0.709107031116

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5480.42184516
delta logL = 0.733042932161

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4612       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2927       1.0000          .0000       5.0000    
     3 'Normalizat'    .79550       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0393       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=   5480.422     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      231 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4610        28.482        .65172E-02    .19791E-03
   2  alpha         2.2928        3.6447        .22490        .53533E-04
   3  Normalizat    .79546        .81745E-01    .43552E-01    .13624E-04
   4  Prefactor     1.0393        .70910E-01    .40582E-01    .36147E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.46103
  alpha      = 2.29278
  Normalizat = 0.795459
  Prefactor  = 1.03929
 **********
 **   18 **HESSE 
 **********

 FCN=   5480.422     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4610        1.7914        .61892E-04   -1.5394    
   2  alpha         2.2928        .45939        .88937E-02   -.82985E-01
   3  Normalizat    .79546        .19327        .25017E-03   -1.0024    
   4  Prefactor     1.0393        .19478        .22343E-03   -.91431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52694e-12
Minuit parameter uncertainties:
  1  1.79143
  2  0.462032
  3  0.193434
  4  0.194911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/110085': 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) = 5480.421845
delta logL = 0.73304308852

Extracting fit parameters...

4FGL J0915.9+2933
   Spectrum: LogParabola
270         norm:  2.461e+00  1.791e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        alpha:  2.293e+00  4.620e-01  0.000e+00  5.000e+00 ( 1.000e+00)
272         beta:  7.920e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  1.366e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.039e+00  1.949e-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:  7.955e-01  1.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.29
Ra Dec: 138.986 29.553
Photon Index (Free Index): 2.29 +/- 0.46
Photon Flux (Free Index): 5.65e-08 +/- 3.62e-08
Energy Flux (Free Index): 2.32e-05 +/- 1.46e-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/110085/cmap_HighResolution_478310401_478569601_4FGL_J0915.9+2933_daily_bin922.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.05e-08', energy_flux2='2.32e-05', photon_flux_error='2.00e-08', dlogl='7.33e-01', energy_flux='3.51e-05', photon_flux2='5.65e-08', job_status='DONE', time_completed='2021-08-31 06:03:45.469892', photon_index_error2='0.46', photon_index2='2.29', ts='4.84', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.46e-05', EG='0.82', time_epoch_completed='1630415025.47', return_code='0', job_id='110085', GAL2='1.04', EG2='0.80', return_code2='0', energy_flux_error='2.30e-05', photon_flux_error2='3.62e-08', ts2='6.29', photon_index='1.75' WHERE bin_id='922' AND source_name='4FGL J0915.9+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:03:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 110085: <4FGL_J0915.9+2933_daily_bin922> in cluster <slac> Done

Job <4FGL_J0915.9+2933_daily_bin922> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug 31 05:51:23 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 05:51:25 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:51:25 2021
Terminated at Tue Aug 31 06:03:46 2021
Results reported at Tue Aug 31 06:03:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0915.9+2933_daily_bin922 138.986 29.553 478310401 478569601 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 :                                   538.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            743 sec.

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

