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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin650
RA = 126.236, Dec = 39.2574
tmin = 407808001, tmax = 408067201
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='456489', job_status='RUN', time_executed='2021-08-29 19:26:30.198181', time_epoch_executed='1630290390.2' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456489

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456489/ft1_4FGL_J0824.9+3915_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456489/ft2_4FGL_J0824.9+3915_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456489/ft1_4FGL_J0824.9+3915_daily_bin650.fits outfile=/scratch/kocevski/456489/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin650.fits ra=126.236 dec=39.2574 rad=12.0 tmin=407808001.0 tmax=408067201.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.40
user 2.96
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/456489/ft2_4FGL_J0824.9+3915_daily_bin650.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/456489/ft2_4FGL_J0824.9+3915_daily_bin650.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/456489/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin650.fits evtable="EVENTS" outfile="/scratch/kocevski/456489/ft1_filtered_4FGL_J0824.9+3915_daily_bin650.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.52
user 0.25
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456489/ft1_filtered_4FGL_J0824.9+3915_daily_bin650.fits" evtable="EVENTS" scfile=/scratch/kocevski/456489/ft2_4FGL_J0824.9+3915_daily_bin650.fits sctable="SC_DATA" outfile=/scratch/kocevski/456489/ltcube_407808001_408067201_4FGL_J0824.9+3915_daily_bin650.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/456489/ft2_4FGL_J0824.9+3915_daily_bin650.fits
.....................!
real 9.13
user 8.80
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456489/ft1_filtered_4FGL_J0824.9+3915_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/456489/ft2_4FGL_J0824.9+3915_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/456489/ltcube_407808001_408067201_4FGL_J0824.9+3915_daily_bin650.fits outfile=/scratch/kocevski/456489/expmap_407808001_408067201_4FGL_J0824.9+3915_daily_bin650.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/456489/ltcube_407808001_408067201_4FGL_J0824.9+3915_daily_bin650.fits
.....................!
real 145.54
user 141.34
sys 3.84

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 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J0824.9+3915 @ 126.236 39.2574

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/456489/ft1_filtered_4FGL_J0824.9+3915_daily_bin650.fits scfile=/scratch/kocevski/456489/ft2_4FGL_J0824.9+3915_daily_bin650.fits outfile=/scratch/kocevski/456489/cmap_407808001_408067201_4FGL_J0824.9+3915_daily_bin650.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=126.236 yref=39.2574 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.46
user 0.29
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456489/ft1_filtered_4FGL_J0824.9+3915_daily_bin650.fits scfile=/scratch/kocevski/456489/ft2_4FGL_J0824.9+3915_daily_bin650.fits outfile=/scratch/kocevski/456489/cmap_HighResolution_407808001_408067201_4FGL_J0824.9+3915_daily_bin650.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=126.236 yref=39.2574 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.45
user 0.30
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/456489/ft1_filtered_4FGL_J0824.9+3915_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/456489/ft2_4FGL_J0824.9+3915_daily_bin650.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/456489/Model_4FGL_J0824.9+3915_daily_bin650.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/456489/ft1_filtered_4FGL_J0824.9+3915_daily_bin650.fits.....................!
real 35.81
user 34.70
sys 0.97

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/456489/ft1_filtered_4FGL_J0824.9+3915_daily_bin650.fits', '/scratch/kocevski/456489/ft2_4FGL_J0824.9+3915_daily_bin650.fits', expMap='/scratch/kocevski/456489/expmap_407808001_408067201_4FGL_J0824.9+3915_daily_bin650.fits', expCube='/scratch/kocevski/456489/ltcube_407808001_408067201_4FGL_J0824.9+3915_daily_bin650.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/456489/Model_4FGL_J0824.9+3915_daily_bin650.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0824.9+3915'

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.301e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.432e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  8.513e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/456489/ft1_filtered_4FGL_J0824.9+3915_daily_bin650.fits
Spacecraft file(s): /scratch/kocevski/456489/ft2_4FGL_J0824.9+3915_daily_bin650.fits
Exposure map: /scratch/kocevski/456489/expmap_407808001_408067201_4FGL_J0824.9+3915_daily_bin650.fits
Exposure cube: /scratch/kocevski/456489/ltcube_407808001_408067201_4FGL_J0824.9+3915_daily_bin650.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/456489/Model_4FGL_J0824.9+3915_daily_bin650.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) = 4519.60513381

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .21155E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21115       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7172       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.101       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20130E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    93.181       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5779       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2183       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6740       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.6808       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1606       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .16140       1.0000         .10000E-03   10000.    
    23 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1181       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .83160       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4519.253     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     2815 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10049E-03    19.326        .39893E-05** at limit **
   2  Prefactor     .10033E-03    21.988       -.23827E-06** at limit **
   3  norm          .10000E-03    14.046        .73524E-08** at limit **
   4  norm          .10000E-03    4.6114        .37047E-08** at limit **
   5  Prefactor     .10000E-03    3.1869        .51070E-07** at limit **
   6  Prefactor     .47064        958.24        .31478E-04   -.40953E-03
   7  Prefactor     4.7155        4.9575        .41543E-05    .25384E-03
   8  Prefactor     10.039        10.266       -.10505E-06   -.12791E-01
   9  norm          .10000E-03    .23947        .28153E-07** at limit **
  10  Prefactor     .10002E-03    27.542        .26727E-05** at limit **
  11  Prefactor     .10149E-03    19.552       -.43214E-05** at limit **
  12  Prefactor     .10000E-03    3.8014       -.28379E-07** at limit **
  13  Prefactor     .10000E-03    1.3704        .43808E-07** at limit **
  14  Prefactor     93.162        2.7543       -.11211E-06   -.30204E-02
  15  Prefactor     4.5801        1.2058       -.19614E-06    .31053E-03
  16  norm          1.2119        9.2167       -.82785E-06   -.79173E-05
  17  Prefactor     2.6765        3.1214        .24812E-06    .40432E-06
  18  Prefactor     3.6806        3.3162        .98016E-07    .72359E-05
  19  Prefactor     .10144E-03    81.542       -.11297E-04** at limit **
  20  Prefactor     1.1571        3.6768        .81813E-06   -.26958E-04
  21  Prefactor     .10010E-03    27.894        .30501E-05** at limit **
  22  norm          .16133        .33723        .11204E-06   -.76092E-04
  23  norm          .10000E-03    5.4820       -.12058E-06** at limit **
  24  Prefactor     .10000E-03    1.1876        .32439E-07** at limit **
  25  Normalizat    1.1180        .23222       -.21261E-05   -.17252E-04
  26  Prefactor     .83176        .18420       -.25874E-06   -.20665E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100486
  Prefactor  = 0.000100332
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.470637
  Prefactor  = 4.71549
  Prefactor  = 10.0393
  norm       = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.000101489
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 93.1622
  Prefactor  = 4.58008
  norm       = 1.21195
  Prefactor  = 2.67654
  Prefactor  = 3.68057
  Prefactor  = 0.000101436
  Prefactor  = 1.1571
  Prefactor  = 0.0001001
  norm       = 0.161325
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11804
  Prefactor  = 0.831762
 **********
 **   18 **HESSE 
 **********

 FCN=   4519.253     FROM HESSE     STATUS=OK           524 CALLS     3339 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10049E-03    19.353        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10033E-03    21.737        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    13.922        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.3922        .36937E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.1794        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .47064        55.061        .13210       -1.5571    
   7  Prefactor     4.7155        4.9726        .46317E-02   -1.5274    
   8  Prefactor     10.039        28.608        .31519E-02   -1.5074    
   9  norm          .10000E-03    .21403        .14120E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    55.066        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10149E-03    20.487        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.7993        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.3342        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     93.162        49.688        .10408E-02   -1.3775    
  15  Prefactor     4.5801        17.649        .47033E-02   -1.5280    
  16  norm          1.2119        9.2172        .10223E-01   -1.5488    
  17  Prefactor     2.6765        3.1510        .62303E-02   -1.5381    
  18  Prefactor     3.6806        3.3147        .52630E-02   -1.5324    
  19  Prefactor     .10144E-03    81.692        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1571        3.7129        .10693E-01   -1.5493    
  21  Prefactor     .10010E-03    54.189        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .16133        .41930        .14412E-01   -1.5628    
  23  norm          .10000E-03    5.4637        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.1823        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1180        .20525        .53617E-01   -.89175    
  26  Prefactor     .83176        .15873        .44127E-01   -.98568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50017e-06
Minuit parameter uncertainties:
  1  0.00613762
  2  0.00537263
  3  2.64014e-05
  4  4.58874e-06
  5  1.9855e-06
  6  10.1896
  7  4.97307
  8  28.6471
  9  3.65099e-07
  10  0.00184809
  11  0.0110485
  12  8.29883e-07
  13  2.72083e-06
  14  49.7101
  15  17.6692
  16  6.68568
  17  3.15119
  18  3.31489
  19  0.0216925
  20  3.71361
  21  0.00466838
  22  0.419304
  23  5.25147e-06
  24  2.28872e-06
  25  0.205394
  26  0.158816
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.721e-06  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.432e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  8.513e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  8.318e-01  1.588e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  1.118e+00  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 126.236 39.257
Photon Flux Upper Limit: 6.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/456489/likelihoodResults_407808001_408067201_4FGL_J0824.9+3915_daily_bin650.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) = 4519.25632115
delta logL = -0.00345035438295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4519.25287079
delta logL = 4.70390659757e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4212       1.0000          .0000       10.000    
     3 'Normalizat'    1.1181       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83179       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6250E+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=   4519.253     FROM MIGRAD    STATUS=FAILED        91 CALLS      246 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10152E-03    37.136        .15235E-02** at limit **
   2  Index         2.3287        5.1752        .50000        .54680E-04
   3  Normalizat    1.1180        .26545E-01    .23707E-03    .74329E-05
   4  Prefactor     .83176        .21830E-01    .22144E-03    .21819E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4519.253     FROM SIMPLEX   STATUS=PROGRESS     122 CALLS      368 TOTAL
                     EDM=   .86E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10054E-03    37.136        .17564E-03** at limit **
   2  Index         2.3277        5.1752        .33260E-03    .54680E-04
   3  Normalizat    1.1180        .26545E-01    .45675E-05    .74329E-05
   4  Prefactor     .83175        .21830E-01    .44257E-05    .21819E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4519.253     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      422 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.870        .30471E-02** at limit **
   2  Index         1.9627        5.7963        .50000       -.17483E-06
   3  Normalizat    1.1180        .27230E-01    .94829E-05    .38124E-04
   4  Prefactor     .83176        .22393E-01    .88576E-05    .52880E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.96268
  Normalizat = 1.11805
  Prefactor  = 0.831762
 **********
 **   18 **HESSE 
 **********

 FCN=   4519.253     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      451 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    188.95        .60941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9627        8.0095        .50000       -.65287    
   3  Normalizat    1.1180        .67650E-01    .18966E-05   -.89175    
   4  Prefactor     .83176        .55612E-01    .17715E-05   -.98568    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05689e-09
Minuit parameter uncertainties:
  1  1.66955e-05
  2  860.897
  3  0.0676556
  4  0.0556153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456489': 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): 102
logL (Free Index) = 4519.25286687
delta logL = 3.93126174458e-06

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.670e-05  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  1.963e+00  8.609e+02  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  8.513e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  8.318e-01  5.562e-02  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  1.118e+00  6.766e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 126.236 39.257

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/456489/cmap_HighResolution_407808001_408067201_4FGL_J0824.9+3915_daily_bin650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.12e-03', job_status='DONE', photon_flux_upper_limit='6.61e-08', time_completed='2021-08-29 19:34:51.425712', job_id='456489', GAL2='0.83', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630290891.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='3.93e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='650' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:34:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 456489: <4FGL_J0824.9+3915_daily_bin650> in cluster <slac> Done

Job <4FGL_J0824.9+3915_daily_bin650> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 19:26:17 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 19:26:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 19:26:17 2021
Terminated at Sun Aug 29 19:34:52 2021
Results reported at Sun Aug 29 19:34:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin650 126.236 39.2574 407808001 408067201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0824.9+3915 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   497.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   514 sec.
    Turnaround time :                            515 sec.

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

