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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin1003
RA = 126.236, Dec = 39.2574
tmin = 499305601, tmax = 499564801
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='459179', job_status='RUN', time_executed='2021-08-29 19:38:29.700543', time_epoch_executed='1630291109.7' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='1003'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/459179

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/459179/ft1_4FGL_J0824.9+3915_daily_bin1003.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/459179/ft2_4FGL_J0824.9+3915_daily_bin1003.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/459179/ft1_4FGL_J0824.9+3915_daily_bin1003.fits outfile=/scratch/kocevski/459179/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1003.fits ra=126.236 dec=39.2574 rad=12.0 tmin=499305601.0 tmax=499564801.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 5.90
user 5.14
sys 0.50

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/459179/ft2_4FGL_J0824.9+3915_daily_bin1003.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/459179/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1003.fits evtable="EVENTS" outfile="/scratch/kocevski/459179/ft1_filtered_4FGL_J0824.9+3915_daily_bin1003.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.95
user 0.33
sys 0.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/459179/ft1_filtered_4FGL_J0824.9+3915_daily_bin1003.fits" evtable="EVENTS" scfile=/scratch/kocevski/459179/ft2_4FGL_J0824.9+3915_daily_bin1003.fits sctable="SC_DATA" outfile=/scratch/kocevski/459179/ltcube_499305601_499564801_4FGL_J0824.9+3915_daily_bin1003.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/459179/ft2_4FGL_J0824.9+3915_daily_bin1003.fits
.....................!
real 12.57
user 11.91
sys 0.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/459179/ft1_filtered_4FGL_J0824.9+3915_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/459179/ft2_4FGL_J0824.9+3915_daily_bin1003.fits sctable="SC_DATA" expcube=/scratch/kocevski/459179/ltcube_499305601_499564801_4FGL_J0824.9+3915_daily_bin1003.fits outfile=/scratch/kocevski/459179/expmap_499305601_499564801_4FGL_J0824.9+3915_daily_bin1003.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/459179/ltcube_499305601_499564801_4FGL_J0824.9+3915_daily_bin1003.fits
.....................!
real 193.60
user 187.02
sys 4.82

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/459179/ft1_filtered_4FGL_J0824.9+3915_daily_bin1003.fits scfile=/scratch/kocevski/459179/ft2_4FGL_J0824.9+3915_daily_bin1003.fits outfile=/scratch/kocevski/459179/cmap_499305601_499564801_4FGL_J0824.9+3915_daily_bin1003.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 1.02
user 0.36
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/459179/ft1_filtered_4FGL_J0824.9+3915_daily_bin1003.fits scfile=/scratch/kocevski/459179/ft2_4FGL_J0824.9+3915_daily_bin1003.fits outfile=/scratch/kocevski/459179/cmap_HighResolution_499305601_499564801_4FGL_J0824.9+3915_daily_bin1003.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 1.17
user 0.37
sys 0.39

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/459179/ft1_filtered_4FGL_J0824.9+3915_daily_bin1003.fits', '/scratch/kocevski/459179/ft2_4FGL_J0824.9+3915_daily_bin1003.fits', expMap='/scratch/kocevski/459179/expmap_499305601_499564801_4FGL_J0824.9+3915_daily_bin1003.fits', expCube='/scratch/kocevski/459179/ltcube_499305601_499564801_4FGL_J0824.9+3915_daily_bin1003.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/459179/Model_4FGL_J0824.9+3915_daily_bin1003.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/459179/ft1_filtered_4FGL_J0824.9+3915_daily_bin1003.fits
Spacecraft file(s): /scratch/kocevski/459179/ft2_4FGL_J0824.9+3915_daily_bin1003.fits
Exposure map: /scratch/kocevski/459179/expmap_499305601_499564801_4FGL_J0824.9+3915_daily_bin1003.fits
Exposure cube: /scratch/kocevski/459179/ltcube_499305601_499564801_4FGL_J0824.9+3915_daily_bin1003.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/459179/Model_4FGL_J0824.9+3915_daily_bin1003.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6129.24063994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    65.855       1.0000         .10000E-03   10000.    
     4 'norm      '    4.8640       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10582E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4829       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .97594       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.789       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.224       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2618       1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.984       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3851       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.8677       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.0686       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0837       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0745       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.

 FCN=   6128.197     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     2731 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9956       -.69395E-06** at limit **
   2  Prefactor     .10000E-03    3.9654       -.42276E-06** at limit **
   3  norm          65.855        18.039        .56469E-07   -.35749E-04
   4  norm          4.8640        2.6118       -.14114E-07    .68253E-04
   5  Prefactor     .10002E-03    4.8517       -.17737E-05** at limit **
   6  Prefactor     4.4934        50.333        .82634E-05    .23849E-03
   7  Prefactor     .10000E-03    3.2377        .13077E-05** at limit **
   8  Prefactor     .10000E-03    19.897        .27450E-05** at limit **
   9  norm          .97591        .63709        .14156E-07   -.66313E-03
  10  Prefactor     12.787        45.340       -.52003E-06   -.48039E-04
  11  Prefactor     .10000E-03    26.690        .25338E-05** at limit **
  12  Prefactor     16.222        15.285       -.22871E-06   -.21285E-03
  13  Prefactor     2.2623        3.4817        .94955E-07   -.50413E-03
  14  Prefactor     31.983        28.005       -.24268E-06   -.67854E-04
  15  Prefactor     .10000E-03    7.8877       -.47597E-06** at limit **
  16  norm          .10000E-03    3.3225       -.26350E-06** at limit **
  17  Prefactor     .10000E-03    3.5726        .70197E-06** at limit **
  18  Prefactor     2.3852        2.3925       -.32024E-07    .39566E-04
  19  Prefactor     .10001E-03    29.337       -.40220E-05** at limit **
  20  Prefactor     .10000E-03    1.7481       -.48715E-07** at limit **
  21  Prefactor     3.8689        10.599        .53141E-05   -.42845E-03
  22  norm          .10000E-03    .20645       -.17644E-08** at limit **
  23  norm          .10000E-03    2.7663       -.50285E-07** at limit **
  24  Prefactor     6.0688        3.3043       -.19680E-07    .10883E-03
  25  Normalizat    1.0836        .19202       -.43943E-06   -.80566E-04
  26  Prefactor     1.0746        .15607       -.23463E-06   -.56504E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 65.8552
  norm       = 4.86398
  Prefactor  = 0.000100018
  Prefactor  = 4.49336
  Prefactor  = 0.000100004
  Prefactor  = 0.000100004
  norm       = 0.975911
  Prefactor  = 12.7868
  Prefactor  = 0.000100003
  Prefactor  = 16.2222
  Prefactor  = 2.26226
  Prefactor  = 31.9832
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.38517
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 3.86894
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.06882
  Normalizat = 1.08355
  Prefactor  = 1.07456
 **********
 **   18 **HESSE 
 **********

 FCN=   6128.197     FROM HESSE     STATUS=OK           458 CALLS     3189 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9812        .15249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          65.855        18.044        .49455E-04   -1.4083    
   4  norm          4.8640        2.6132        .90170E-04   -1.5267    
   5  Prefactor     .10002E-03    17.562        .31338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.4934        55.654        .19017E-03   -1.5284    
   7  Prefactor     .10000E-03    6.7004        .25930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .97591        .61666        .47533E-04   -1.5510    
  10  Prefactor     12.787        45.479        .11201E-03   -1.4993    
  11  Prefactor     .10000E-03    27.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.222        15.119        .99436E-04   -1.4902    
  13  Prefactor     2.2623        3.4467        .15897E-03   -1.5407    
  14  Prefactor     31.983        28.027        .70850E-04   -1.4576    
  15  Prefactor     .10000E-03    7.9381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.3392        .13940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.7388        .28906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.3852        2.4033        .11825E-03   -1.5399    
  19  Prefactor     .10001E-03    30.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.7785        .10095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.8689        11.553        .10259E-02   -1.5315    
  22  norm          .10000E-03    .21621        .69397E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.7695        .12716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.0688        3.3076        .10134E-03   -1.5215    
  25  Normalizat    1.0836        .21851        .27272E-03   -.90282    
  26  Prefactor     1.0746        .17775        .22897E-03   -.90284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21911e-09
Minuit parameter uncertainties:
  1  6.8442e-05
  2  3.88845e-05
  3  18.0457
  4  2.61329
  5  0.00112394
  6  31.6637
  7  0.000330211
  8  0.000542246
  9  0.61666
  10  45.6025
  11  0.000568484
  12  15.1224
  13  3.447
  14  28.0385
  15  5.42963e-05
  16  2.01962e-05
  17  5.05226e-05
  18  2.40336
  19  0.000914495
  20  3.02586e-06
  21  11.5597
  22  7.62213e-08
  23  3.64055e-06
  24  3.30766
  25  0.218694
  26  0.17785
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  2.262e+00  3.447e+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

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  1.075e+00  1.779e-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.084e+00  2.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.60
Ra Dec: 126.236 39.257
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/459179/likelihoodResults_499305601_499564801_4FGL_J0824.9+3915_daily_bin1003.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6127.77841871
delta logL = 0.418990259586

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6127.7239612
delta logL = 0.473447776279

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20638       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3246       1.0000          .0000       10.000    
     3 'Normalizat'    1.0323       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1042       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.

 FCN=   6127.724     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      280 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20284        2.8799        .67742E-02    .21082E-02
   2  Index         4.3343        3.0297        .11802        .15298E-03
   3  Normalizat    1.0320        .45220E-01    .62938E-01    .12660E-04
   4  Prefactor     1.1045        .37994E-01    .37431E-01    .36095E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.202845
  Index      = 4.33429
  Normalizat = 1.032
  Prefactor  = 1.10448
 **********
 **   18 **HESSE 
 **********

 FCN=   6127.724     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      315 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20284        7.8153        .30954E-03   -1.5618    
   2  Index         4.3343        7.1588        .59984E-02   -.13354    
   3  Normalizat    1.0320        .16229        .27837E-03   -.91966    
   4  Prefactor     1.1045        .13557        .22627E-03   -.89324    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.52009e-10
Minuit parameter uncertainties:
  1  2.5179
  2  6.718
  3  0.162364
  4  0.135608
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/459179': 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) = 6127.72395794
delta logL = 0.473451028417

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  2.028e-01  2.518e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  4.334e+00  6.718e+00  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:  1.104e+00  1.356e-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.032e+00  1.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.63
Ra Dec: 126.236 39.257
Photon Index (Free Index): 4.33 +/- 6.72
Photon Flux (Free Index): 6.57e-08 +/- 5.51e-08
Energy Flux (Free Index): 9.36e-06 +/- 1.13e-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/459179/cmap_HighResolution_499305601_499564801_4FGL_J0824.9+3915_daily_bin1003.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.24e-03', comment='SUCCESS', energy_flux2='9.36e-06', dlogl='4.73e-01', photon_flux2='6.57e-08', job_status='DONE', time_completed='2021-08-29 19:51:41.559973', photon_index_error2='6.72', photon_index2='4.33', ts='0.60', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='1.13e-05', EG='1.08', time_epoch_completed='1630291901.56', return_code='0', job_id='459179', GAL2='1.10', EG2='1.03', return_code2='102', photon_flux_error2='5.51e-08', ts2='1.63', photon_index='2.43' WHERE bin_id='1003' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:51:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 459179: <4FGL_J0824.9+3915_daily_bin1003> in cluster <slac> Done

Job <4FGL_J0824.9+3915_daily_bin1003> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 19:35:47 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 19:35:48 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:35:48 2021
Terminated at Sun Aug 29 19:51:42 2021
Results reported at Sun Aug 29 19:51:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin1003 126.236 39.2574 499305601 499564801 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 :                                   781.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             261.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            955 sec.

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

