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


Performing analysis on: 4FGL_J0915.9+2933_daily_bin573
RA = 138.986, Dec = 29.553
tmin = 387849601, tmax = 388108801
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='106592', job_status='RUN', time_executed='2021-08-31 05:43:43.389451', time_epoch_executed='1630413823.39' WHERE source_name='4FGL J0915.9+2933' and cadence='daily' and bin_id='573'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/106592

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/106592/ft1_4FGL_J0915.9+2933_daily_bin573.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/106592/ft2_4FGL_J0915.9+2933_daily_bin573.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/106592/ft1_4FGL_J0915.9+2933_daily_bin573.fits outfile=/scratch/kocevski/106592/ft1_filteredMKT_4FGL_J0915.9+2933_daily_bin573.fits ra=138.986 dec=29.553 rad=12.0 tmin=387849601.0 tmax=388108801.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.95
user 4.36
sys 0.54

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/106592/ft2_4FGL_J0915.9+2933_daily_bin573.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/106592/ft1_filteredMKT_4FGL_J0915.9+2933_daily_bin573.fits evtable="EVENTS" outfile="/scratch/kocevski/106592/ft1_filtered_4FGL_J0915.9+2933_daily_bin573.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.81
user 0.34
sys 0.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/106592/ft1_filtered_4FGL_J0915.9+2933_daily_bin573.fits" evtable="EVENTS" scfile=/scratch/kocevski/106592/ft2_4FGL_J0915.9+2933_daily_bin573.fits sctable="SC_DATA" outfile=/scratch/kocevski/106592/ltcube_387849601_388108801_4FGL_J0915.9+2933_daily_bin573.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/106592/ft2_4FGL_J0915.9+2933_daily_bin573.fits
.....................!
real 12.66
user 11.99
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/106592/ft1_filtered_4FGL_J0915.9+2933_daily_bin573.fits evtable="EVENTS" scfile=/scratch/kocevski/106592/ft2_4FGL_J0915.9+2933_daily_bin573.fits sctable="SC_DATA" expcube=/scratch/kocevski/106592/ltcube_387849601_388108801_4FGL_J0915.9+2933_daily_bin573.fits outfile=/scratch/kocevski/106592/expmap_387849601_388108801_4FGL_J0915.9+2933_daily_bin573.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/106592/ltcube_387849601_388108801_4FGL_J0915.9+2933_daily_bin573.fits
.....................!
real 192.47
user 187.37
sys 4.64

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/106592/ft1_filtered_4FGL_J0915.9+2933_daily_bin573.fits scfile=/scratch/kocevski/106592/ft2_4FGL_J0915.9+2933_daily_bin573.fits outfile=/scratch/kocevski/106592/cmap_387849601_388108801_4FGL_J0915.9+2933_daily_bin573.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.84
user 0.38
sys 0.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/106592/ft1_filtered_4FGL_J0915.9+2933_daily_bin573.fits scfile=/scratch/kocevski/106592/ft2_4FGL_J0915.9+2933_daily_bin573.fits outfile=/scratch/kocevski/106592/cmap_HighResolution_387849601_388108801_4FGL_J0915.9+2933_daily_bin573.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.90
user 0.39
sys 0.43

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4676       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.5480       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4544       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.301       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .53154       1.0000         .10000E-03   10000.    
     6 'norm      '    2.4830       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2830       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .30321E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .51057       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.205       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    14.623       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14721       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8092       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.7871       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.133       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0421       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98466       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=   5593.803     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2473 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4675        1.4477       -.11859E-06    .50249E-03
   2  Prefactor     4.5472        14.928       -.49887E-06    .47802E-04
   3  norm          1.4545        .81087       -.12605E-07    .11412E-03
   4  Prefactor     14.299        11.800       -.11428E-06   -.35005E-04
   5  Prefactor     .59777        45.010       -.69006E-05    .66272E-04
   6  norm          2.5032        94.286       -.20380E-05    .16210E-04
   7  Prefactor     2.2829        2.2702        .52553E-08   -.60615E-04
   8  Prefactor     .10000E-03    219.44        .71899E-06** at limit **
   9  Prefactor     .10000E-03    1.4179       -.35036E-07** at limit **
  10  norm          .51012        1.0200       -.91767E-06   -.72897E-03
  11  Prefactor     19.242        28.588        .74110E-06   -.23233E-03
  12  Prefactor     .10000E-03    32.370        .58670E-06** at limit **
  13  norm          14.613        12.554       -.16953E-06   -.12085E-03
  14  Prefactor     .10000E-03    2.2896        .42323E-07** at limit **
  15  Prefactor     .14685        1.9587        .36854E-06    .27769E-03
  16  Prefactor     .10000E-03    6.8324       -.53315E-07** at limit **
  17  Prefactor     .10000E-03    75.687       -.92917E-06** at limit **
  18  Prefactor     3.8084        6.4039       -.85098E-06    .22945E-03
  19  Prefactor     5.7866        6.4404        .23179E-06    .12083E-03
  20  Prefactor     10.133        3.3274       -.11557E-07    .78032E-04
  21  Normalizat    1.0420        .18543        .96493E-06   -.21538E-03
  22  Prefactor     .98470        .17846        .29726E-06   -.27113E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.46751
  Prefactor  = 4.54719
  norm       = 1.45445
  Prefactor  = 14.2986
  Prefactor  = 0.597771
  norm       = 2.50315
  Prefactor  = 2.28294
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.51012
  Prefactor  = 19.242
  Prefactor  = 0.0001
  norm       = 14.6134
  Prefactor  = 0.0001
  Prefactor  = 0.146854
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.80836
  Prefactor  = 5.78663
  Prefactor  = 10.1334
  Normalizat = 1.04198
  Prefactor  = 0.984699
 **********
 **   18 **HESSE 
 **********

 FCN=   5593.803     FROM HESSE     STATUS=OK           352 CALLS     2825 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4675        1.4189        .82056E-04   -1.5466    
   2  Prefactor     4.5472        14.790        .18877E-03   -1.5281    
   3  norm          1.4545        .81022        .47432E-04   -1.5467    
   4  Prefactor     14.299        11.803        .10591E-03   -1.4952    
   5  Prefactor     .59777        45.770        .43941E-02   -1.5553    
   6  norm          2.5032        94.201        .25944E-03   -1.5392    
   7  Prefactor     2.2829        2.2692        .10929E-03   -1.5406    
   8  Prefactor     .10000E-03    223.01        .19817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.4210        .86945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .51012        1.0018        .12528E-02   -1.5565    
  11  Prefactor     19.242        28.480        .91394E-04   -1.4830    
  12  Prefactor     .10000E-03    32.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          14.613        12.579        .10474E-03   -1.4943    
  14  Prefactor     .10000E-03    2.3380        .11031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .14685        5.2067        .19837E-02   -1.5631    
  16  Prefactor     .10000E-03    6.8355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    76.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.8084        6.3138        .20681E-03   -1.5318    
  19  Prefactor     5.7866        6.4909        .16695E-03   -1.5227    
  20  Prefactor     10.133        3.3307        .74936E-04   -1.5071    
  21  Normalizat    1.0420        .21327        .23722E-03   -.91637    
  22  Prefactor     .98470        .20635        .24664E-03   -.93241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29813e-09
Minuit parameter uncertainties:
  1  1.41898
  2  14.8015
  3  0.81023
  4  11.8048
  5  10.4688
  6  30.7632
  7  2.26927
  8  0.000680196
  9  4.13185e-06
  10  1.00188
  11  28.5004
  12  0.00010378
  13  12.5808
  14  2.15482e-05
  15  1.74843
  16  9.44592e-06
  17  7.90412e-05
  18  6.31488
  19  6.49171
  20  3.33075
  21  0.213447
  22  0.20652
Done.

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

Extracting fit parameters...

4FGL J0915.9+2933
   Spectrum: LogParabola
270         norm:  5.101e-01  1.002e+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:  9.847e-01  2.065e-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.042e+00  2.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/106592/likelihoodResults_387849601_388108801_4FGL_J0915.9+2933_daily_bin573.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): 102
logL (Free Index) = 5593.51564758
delta logL = 0.287054155897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5593.3553851
delta logL = 0.447316634554

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .53712E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .97879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0299       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=   5593.355     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      282 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .53681E-02    .25649        .95510E-03    .10012E-01
   2  alpha         5.0000        2.7186        .46268    ** at limit **
   3  Normalizat    .97880        .90864E-01    .45901E-01    .10957E-04
   4  Prefactor     1.0300        .89455E-01    .41264E-01    .62520E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00536812
  alpha      = 5
  Normalizat = 0.9788
  Prefactor  = 1.03
 **********
 **   18 **HESSE 
 **********

 FCN=   5593.355     FROM HESSE     STATUS=OK            37 CALLS      319 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .53681E-02    .66430E-02    .55488E-04   -1.5693    
   2  alpha         5.0000        3.1693        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .97880        .20848        .24396E-03   -.93744    
   4  Prefactor     1.0300        .20727        .24192E-03   -.91736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30638e-09
Minuit parameter uncertainties:
  1  0.00664303
  2  1.68778e-05
  3  0.208652
  4  0.207431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/106592': 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) = 5593.3553827
delta logL = 0.447319030753

Extracting fit parameters...

4FGL J0915.9+2933
   Spectrum: LogParabola
270         norm:  5.368e-03  6.643e-03  1.000e-04  1.000e+04 ( 1.000e-12)
271        alpha:  5.000e+00  1.688e-05  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.030e+00  2.074e-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:  9.788e-01  2.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.35
Ra Dec: 138.986 29.553
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 4.12e-08 +/- 5.07e-08
Energy Flux (Free Index): 5.64e-06 +/- 6.96e-06

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/106592/cmap_HighResolution_387849601_388108801_4FGL_J0915.9+2933_daily_bin573.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.59e-05', comment='SUCCESS', energy_flux2='5.64e-06', dlogl='4.47e-01', photon_flux2='4.12e-08', job_status='DONE', time_completed='2021-08-31 05:54:03.814234', photon_index_error2='0.00', photon_index2='5.00', ts='0.39', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='3.99e-08', energy_flux_error2='6.96e-06', EG='1.04', time_epoch_completed='1630414443.81', return_code='0', job_id='106592', GAL2='1.03', EG2='0.98', return_code2='0', photon_flux_error2='5.07e-08', ts2='1.35', photon_index='1.75' WHERE bin_id='573' AND source_name='4FGL J0915.9+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 05:54:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 106592: <4FGL_J0915.9+2933_daily_bin573> in cluster <slac> Done

Job <4FGL_J0915.9+2933_daily_bin573> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 05:40:50 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 05:40:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 05:40:51 2021
Terminated at Tue Aug 31 05:54:04 2021
Results reported at Tue Aug 31 05:54:04 2021

Your job looked like:

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

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

