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


Performing analysis on: 4FGL_J0915.9+2933_daily_bin463
RA = 138.986, Dec = 29.553
tmin = 359337601, tmax = 359596801
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='105024', job_status='RUN', time_executed='2021-08-31 05:38:01.868238', time_epoch_executed='1630413481.87' WHERE source_name='4FGL J0915.9+2933' and cadence='daily' and bin_id='463'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/105024

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/105024/ft1_4FGL_J0915.9+2933_daily_bin463.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/105024/ft2_4FGL_J0915.9+2933_daily_bin463.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/105024/ft1_4FGL_J0915.9+2933_daily_bin463.fits outfile=/scratch/kocevski/105024/ft1_filteredMKT_4FGL_J0915.9+2933_daily_bin463.fits ra=138.986 dec=29.553 rad=12.0 tmin=359337601.0 tmax=359596801.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 3.92
user 3.11
sys 0.77

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/105024/ft1_filtered_4FGL_J0915.9+2933_daily_bin463.fits" evtable="EVENTS" scfile=/scratch/kocevski/105024/ft2_4FGL_J0915.9+2933_daily_bin463.fits sctable="SC_DATA" outfile=/scratch/kocevski/105024/ltcube_359337601_359596801_4FGL_J0915.9+2933_daily_bin463.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/105024/ft2_4FGL_J0915.9+2933_daily_bin463.fits
.....................!
real 13.14
user 11.67
sys 0.95

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/105024/ft1_filtered_4FGL_J0915.9+2933_daily_bin463.fits evtable="EVENTS" scfile=/scratch/kocevski/105024/ft2_4FGL_J0915.9+2933_daily_bin463.fits sctable="SC_DATA" expcube=/scratch/kocevski/105024/ltcube_359337601_359596801_4FGL_J0915.9+2933_daily_bin463.fits outfile=/scratch/kocevski/105024/expmap_359337601_359596801_4FGL_J0915.9+2933_daily_bin463.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/105024/ltcube_359337601_359596801_4FGL_J0915.9+2933_daily_bin463.fits
.....................!
real 192.62
user 186.11
sys 6.11

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/105024/ft1_filtered_4FGL_J0915.9+2933_daily_bin463.fits scfile=/scratch/kocevski/105024/ft2_4FGL_J0915.9+2933_daily_bin463.fits outfile=/scratch/kocevski/105024/cmap_359337601_359596801_4FGL_J0915.9+2933_daily_bin463.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.10
user 0.37
sys 0.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/105024/ft1_filtered_4FGL_J0915.9+2933_daily_bin463.fits scfile=/scratch/kocevski/105024/ft2_4FGL_J0915.9+2933_daily_bin463.fits outfile=/scratch/kocevski/105024/cmap_HighResolution_359337601_359596801_4FGL_J0915.9+2933_daily_bin463.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.11
user 0.38
sys 0.69

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26266       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.622       1.0000         .10000E-03   10000.    
     3 'norm      '    4.7742       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.989       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    15.782       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .38676E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8784       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.0375       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10949E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.511       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.867       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .93394       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .18411       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5345       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .48771       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=   5871.571     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2766 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26170        1.2291        .88333E-06   -.33398E-03
   2  Prefactor     12.640        17.275       -.73287E-06   -.73468E-04
   3  norm          4.7743        1.3198        .11861E-07   -.17318E-03
   4  Prefactor     11.989        16.313       -.67513E-07   -.63004E-04
   5  Prefactor     .10000E-03    12.542        .15754E-07** at limit **
   6  norm          15.784        27.818       -.16158E-05   -.15728E-03
   7  Prefactor     .10000E-03    1.4111        .26705E-07** at limit **
   8  Prefactor     .10002E-03    31.121        .25980E-06** at limit **
   9  Prefactor     1.8774        2.2879       -.39652E-08   -.34696E-04
  10  norm          .10000E-03    .92224        .25107E-07** at limit **
  11  Prefactor     .10000E-03    7.0073        .65800E-08** at limit **
  12  Prefactor     7.0305        55.181        .36018E-05    .61252E-04
  13  norm          .10000E-03    5.0913        .44098E-07** at limit **
  14  Prefactor     .10000E-03    1.6143        .83566E-07** at limit **
  15  Prefactor     .10000E-03    1.9330        .11813E-06** at limit **
  16  Prefactor     .10000E-03    7.7756       -.67820E-08** at limit **
  17  Prefactor     20.472        60.444       -.40849E-05   -.10576E-03
  18  Prefactor     12.868        6.5960        .75479E-07    .31964E-04
  19  Prefactor     .93656        6.0775       -.11281E-05    .32557E-03
  20  Prefactor     .18427        1.1175        .91718E-06   -.32804E-03
  21  Normalizat    1.5342        .17853        .97953E-07   -.53917E-04
  22  Prefactor     .48783        .17032       -.64854E-06   -.22027E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.261704
  Prefactor  = 12.6402
  norm       = 4.77429
  Prefactor  = 11.9892
  Prefactor  = 0.0001
  norm       = 15.7838
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 1.8774
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.03054
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.4718
  Prefactor  = 12.8682
  Prefactor  = 0.936563
  Prefactor  = 0.184269
  Normalizat = 1.53422
  Prefactor  = 0.487833
 **********
 **   18 **HESSE 
 **********

 FCN=   5871.571     FROM HESSE     STATUS=OK           358 CALLS     3124 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26170        1.2798        .15921E-03   -1.5606    
   2  Prefactor     12.640        17.021        .11275E-03   -1.4997    
   3  norm          4.7743        1.3233        .41798E-04   -1.5271    
   4  Prefactor     11.989        16.361        .11570E-03   -1.5015    
   5  Prefactor     .10000E-03    12.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          15.784        28.529        .10082E-03   -1.4913    
   7  Prefactor     .10000E-03    1.4246        .88875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    33.928        .12578       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8774        2.2710        .12354E-03   -1.5434    
  10  norm          .10000E-03    .95525        .14361E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.0154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.0305        57.368        .15122E-03   -1.5178    
  13  norm          .10000E-03    5.1682        .16873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.7593        .18811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.2387        .20586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.7827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.472        62.986        .88438E-04   -1.4803    
  18  Prefactor     12.868        6.6063        .11167E-03   -1.4990    
  19  Prefactor     .93656        21.886        .34008E-02   -1.5514    
  20  Prefactor     .18427        1.1635        .16321E-03   -1.5622    
  21  Normalizat    1.5342        .20556        .20251E-03   -.76821    
  22  Prefactor     .48783        .19411        .32506E-03   -1.1254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7866e-09
Minuit parameter uncertainties:
  1  1.15726
  2  17.0272
  3  1.32334
  4  16.3667
  5  1.68874e-06
  6  28.5535
  7  6.35612e-07
  8  0.00173976
  9  2.27106
  10  3.82779e-07
  11  1.27453e-06
  12  40.2183
  13  1.10307e-06
  14  5.42014e-06
  15  1.47843e-05
  16  7.32898e-07
  17  63.1914
  18  6.60667
  19  9.05818
  20  0.925837
  21  0.205672
  22  0.194376
Done.

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

Extracting fit parameters...

4FGL J0915.9+2933
   Spectrum: LogParabola
270         norm:  1.000e-04  3.828e-07  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:  4.878e-01  1.944e-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.534e+00  2.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/105024/likelihoodResults_359337601_359596801_4FGL_J0915.9+2933_daily_bin463.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) = 5871.57232843
delta logL = -0.000833978884657

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5871.57148188
delta logL = 1.25712576846e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2709       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5342       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48783       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5871.571     FROM MIGRAD    STATUS=FAILED        93 CALLS      288 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    77.808        .12334E-02** at limit **
   2  alpha         2.3014        3.6481        .50000       -.34991E-05
   3  Normalizat    1.5342        .36828E-01    .20251E-03    .51185E-03
   4  Prefactor     .48783        .35364E-01    .32506E-03    .28815E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5871.571     FROM SIMPLEX   STATUS=UNCHANGED    153 CALLS      441 TOTAL
                     EDM=   .98E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    77.808        .18692E-03** at limit **
   2  alpha         2.3014        3.6481        .63087E-04   -.34991E-05
   3  Normalizat    1.5342        .36828E-01    .69263E-06    .51185E-03
   4  Prefactor     .48783        .35364E-01    .13980E-05    .28815E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5871.571     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      475 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    270.56        .24668E-03** at limit **
   2  alpha         2.2980        2.9934        .50000       -.42120E-05
   3  Normalizat    1.5342        .11382        .40503E-04    .50619E-03
   4  Prefactor     .48783        .10881        .13002E-04    .28504E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100028
  alpha      = 2.298
  Normalizat = 1.53422
  Prefactor  = 0.487833
 **********
 **   18 **HESSE 
 **********

 FCN=   5871.571     FROM HESSE     STATUS=OK            29 CALLS      504 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    1.3332        .49336E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2980        3.6904        .50000       -.80887E-01
   3  Normalizat    1.5342        .19783        .81006E-05   -.76821    
   4  Prefactor     .48783        .18981        .26005E-05   -1.1254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51581e-08
Minuit parameter uncertainties:
  1  0.000383524
  2  88.5469
  3  0.197935
  4  0.190057
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/105024': 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) = 5871.57148177
delta logL = 1.26826698761e-05

Extracting fit parameters...

4FGL J0915.9+2933
   Spectrum: LogParabola
270         norm:  1.000e-04  3.835e-04  1.000e-04  1.000e+04 ( 1.000e-12)
271        alpha:  2.298e+00  8.855e+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:  4.878e-01  1.901e-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.534e+00  1.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/105024/cmap_HighResolution_359337601_359596801_4FGL_J0915.9+2933_daily_bin463.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.14e-05', job_status='DONE', photon_flux_upper_limit='3.61e-08', time_completed='2021-08-31 05:49:06.316760', job_id='105024', GAL2='0.49', fit_tolerance='1e-08', EG2='1.53', EG='1.53', time_epoch_completed='1630414146.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.49', dlogl='1.27e-05', ts2='-0.00', photon_index_error='0.00', photon_index='1.75' WHERE bin_id='463' AND source_name='4FGL J0915.9+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 05:49:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 105024: <4FGL_J0915.9+2933_daily_bin463> in cluster <slac> Done

Job <4FGL_J0915.9+2933_daily_bin463> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 31 05:35:45 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 05:35:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 05:35:46 2021
Terminated at Tue Aug 31 05:49:07 2021
Results reported at Tue Aug 31 05:49:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0915.9+2933_daily_bin463 138.986 29.553 359337601 359596801 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 :                                   661.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            802 sec.

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

