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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin938
RA = 126.236, Dec = 39.2574
tmin = 482457601, tmax = 482716801
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='459076', job_status='RUN', time_executed='2021-08-29 19:35:58.955102', time_epoch_executed='1630290958.96' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/459076

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/459076/ft1_4FGL_J0824.9+3915_daily_bin938.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/459076/ft2_4FGL_J0824.9+3915_daily_bin938.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/459076/ft1_4FGL_J0824.9+3915_daily_bin938.fits outfile=/scratch/kocevski/459076/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin938.fits ra=126.236 dec=39.2574 rad=12.0 tmin=482457601.0 tmax=482716801.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.14
user 3.32
sys 0.78

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/459076/ft2_4FGL_J0824.9+3915_daily_bin938.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/459076/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin938.fits evtable="EVENTS" outfile="/scratch/kocevski/459076/ft1_filtered_4FGL_J0824.9+3915_daily_bin938.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.13
user 0.36
sys 0.69

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/459076/ft1_filtered_4FGL_J0824.9+3915_daily_bin938.fits" evtable="EVENTS" scfile=/scratch/kocevski/459076/ft2_4FGL_J0824.9+3915_daily_bin938.fits sctable="SC_DATA" outfile=/scratch/kocevski/459076/ltcube_482457601_482716801_4FGL_J0824.9+3915_daily_bin938.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/459076/ft2_4FGL_J0824.9+3915_daily_bin938.fits
.....................!
real 14.35
user 12.14
sys 1.14

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/459076/ft1_filtered_4FGL_J0824.9+3915_daily_bin938.fits evtable="EVENTS" scfile=/scratch/kocevski/459076/ft2_4FGL_J0824.9+3915_daily_bin938.fits sctable="SC_DATA" expcube=/scratch/kocevski/459076/ltcube_482457601_482716801_4FGL_J0824.9+3915_daily_bin938.fits outfile=/scratch/kocevski/459076/expmap_482457601_482716801_4FGL_J0824.9+3915_daily_bin938.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/459076/ltcube_482457601_482716801_4FGL_J0824.9+3915_daily_bin938.fits
.....................!
real 192.99
user 186.34
sys 6.07

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/459076/ft1_filtered_4FGL_J0824.9+3915_daily_bin938.fits scfile=/scratch/kocevski/459076/ft2_4FGL_J0824.9+3915_daily_bin938.fits outfile=/scratch/kocevski/459076/cmap_482457601_482716801_4FGL_J0824.9+3915_daily_bin938.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.09
user 0.39
sys 0.66

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/459076/ft1_filtered_4FGL_J0824.9+3915_daily_bin938.fits scfile=/scratch/kocevski/459076/ft2_4FGL_J0824.9+3915_daily_bin938.fits outfile=/scratch/kocevski/459076/cmap_HighResolution_482457601_482716801_4FGL_J0824.9+3915_daily_bin938.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.08
user 0.40
sys 0.66

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/459076/ft1_filtered_4FGL_J0824.9+3915_daily_bin938.fits', '/scratch/kocevski/459076/ft2_4FGL_J0824.9+3915_daily_bin938.fits', expMap='/scratch/kocevski/459076/expmap_482457601_482716801_4FGL_J0824.9+3915_daily_bin938.fits', expCube='/scratch/kocevski/459076/ltcube_482457601_482716801_4FGL_J0824.9+3915_daily_bin938.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/459076/Model_4FGL_J0824.9+3915_daily_bin938.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/459076/ft1_filtered_4FGL_J0824.9+3915_daily_bin938.fits
Spacecraft file(s): /scratch/kocevski/459076/ft2_4FGL_J0824.9+3915_daily_bin938.fits
Exposure map: /scratch/kocevski/459076/expmap_482457601_482716801_4FGL_J0824.9+3915_daily_bin938.fits
Exposure cube: /scratch/kocevski/459076/ltcube_482457601_482716801_4FGL_J0824.9+3915_daily_bin938.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/459076/Model_4FGL_J0824.9+3915_daily_bin938.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) = 6975.39255349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4417       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.1268       1.0000         .10000E-03   10000.    
     4 'norm      '    8.8723       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.3599       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5182       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8859       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .82718E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5003       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.131       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3136       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .32140       1.0000         .10000E-03   10000.    
    23 'norm      '    .21236E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.0566       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0491       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0247       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=   6975.387     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     3088 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4420        8.5861        .38066E-06    .13916E-03
   2  Prefactor     .10000E-03    4.7015       -.64363E-07** at limit **
   3  norm          7.1277        12.591        .14200E-06    .37859E-04
   4  norm          8.8725        3.5065        .71897E-08    .36208E-04
   5  Prefactor     .10000E-03    3.1015       -.47154E-07** at limit **
   6  Prefactor     .10000E-03    8.6902       -.99808E-07** at limit **
   7  Prefactor     .10000E-03    2.6765       -.36946E-07** at limit **
   8  Prefactor     .10000E-03    17.839       -.10036E-06** at limit **
   9  norm          1.3598        .63653        .81105E-07    .11482E-02
  10  Prefactor     1.5235        165.59       -.42226E-05    .17566E-04
  11  Prefactor     .10000E-03    8.5820        .72027E-06** at limit **
  12  Prefactor     .10000E-03    11.243       -.28927E-05** at limit **
  13  Prefactor     1.8871        3.1332        .68711E-06    .85756E-03
  14  Prefactor     .10000E-03    13.423        .21184E-05** at limit **
  15  Prefactor     .10008E-03    21.839        .13972E-04** at limit **
  16  norm          .10000E-03    3.5050       -.97688E-08** at limit **
  17  Prefactor     1.5002        2.0159        .89190E-08   -.25052E-04
  18  Prefactor     .10000E-03    1.2792       -.42601E-07** at limit **
  19  Prefactor     32.125        38.283        .53526E-06    .58654E-04
  20  Prefactor     4.3134        3.5219        .25953E-05    .24331E-02
  21  Prefactor     .10000E-03    13.212        .76906E-06** at limit **
  22  norm          .32160        .52802        .82723E-07    .14842E-02
  23  norm          .10027E-03    7.6306       -.61139E-05** at limit **
  24  Prefactor     5.0554        3.0683       -.29790E-06    .72566E-03
  25  Normalizat    1.0490        .18123       -.76218E-06    .45695E-03
  26  Prefactor     1.0248        .14338        .53471E-06    .47473E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.44202
  Prefactor  = 0.0001
  norm       = 7.12768
  norm       = 8.87247
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.35982
  Prefactor  = 1.52355
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.88708
  Prefactor  = 0.0001
  Prefactor  = 0.000100083
  norm       = 0.0001
  Prefactor  = 1.5002
  Prefactor  = 0.0001
  Prefactor  = 32.1251
  Prefactor  = 4.31337
  Prefactor  = 0.0001
  norm       = 0.321596
  norm       = 0.000100272
  Prefactor  = 5.05541
  Normalizat = 1.04897
  Prefactor  = 1.02479
 **********
 **   18 **HESSE 
 **********

 FCN=   6975.387     FROM HESSE     STATUS=OK           458 CALLS     3546 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4420        8.5992        .73510E-03   -1.5162    
   2  Prefactor     .10000E-03    4.7060        .17686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.1277        12.588        .15026E-03   -1.5174    
   4  norm          8.8725        3.5074        .95138E-04   -1.5112    
   5  Prefactor     .10000E-03    3.1121        .14364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.6919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.7122        .13332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.3598        .63221        .43477E-04   -1.5475    
  10  Prefactor     1.5235        167.75        .34685E-03   -1.5461    
  11  Prefactor     .10000E-03    8.5918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.8871        3.1136        .17956E-03   -1.5433    
  14  Prefactor     .10000E-03    13.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10008E-03    38.733        .39665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.5817        .15266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.5002        1.9893        .13184E-03   -1.5463    
  18  Prefactor     .10000E-03    1.2895        .92245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     32.125        38.090        .70689E-04   -1.4574    
  20  Prefactor     4.3134        4.2846        .77945E-03   -1.5293    
  21  Prefactor     .10000E-03    13.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .32160        .45347        .74069E-03   -1.5595    
  23  norm          .10027E-03    62.738        .34692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.0554        3.0394        .52948E-03   -1.5258    
  25  Normalizat    1.0490        .20710        .27532E-03   -.91408    
  26  Prefactor     1.0248        .16559        .22581E-03   -.91908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.83234e-09
Minuit parameter uncertainties:
  1  8.60059
  2  4.69905e-06
  3  12.5927
  4  3.50745
  5  5.82982e-06
  6  6.98503e-06
  7  1.01311e-05
  8  0.000126999
  9  0.632211
  10  32.0649
  11  2.23355e-05
  12  3.70041e-05
  13  3.11386
  14  2.83307e-05
  15  0.00358921
  16  9.28316e-06
  17  1.98943
  18  2.84305e-06
  19  38.1192
  20  4.28486
  21  0.000159079
  22  0.453473
  23  0.00826851
  24  3.03945
  25  0.20726
  26  0.165671
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.887e+00  3.114e+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.025e+00  1.657e-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.049e+00  2.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/459076/likelihoodResults_482457601_482716801_4FGL_J0824.9+3915_daily_bin938.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) = 6975.38556948
delta logL = 0.0018264159462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6975.38538231
delta logL = 0.00201358960658

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8344       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4963       1.0000          .0000       10.000    
     3 'Normalizat'    1.0475       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0253       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=   6975.385     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      204 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8336        98.060        .77021E-02    .75970E-03
   2  Index         2.4954        6.1087        .23548        .49421E-04
   3  Normalizat    1.0473        .50986E-01    .62293E-01    .12041E-04
   4  Prefactor     1.0255        .39179E-01    .41644E-01    .59871E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.83363
  Index      = 2.49541
  Normalizat = 1.04732
  Prefactor  = 1.02549
 **********
 **   18 **HESSE 
 **********

 FCN=   6975.385     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8336        3.2602        .17477E-03   -1.5437    
   2  Index         2.4954        1.0328        .12155E-01   -.52466    
   3  Normalizat    1.0473        .20117        .27552E-03   -.91462    
   4  Prefactor     1.0255        .16235        .22574E-03   -.91885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20728e-12
Minuit parameter uncertainties:
  1  3.26049
  2  1.04288
  3  0.201316
  4  0.162425
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/459076': 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) = 6975.38538122
delta logL = 0.00201467107581

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.834e+00  3.260e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.495e+00  1.043e+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.025e+00  1.624e-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.047e+00  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.49
Ra Dec: 126.236 39.257

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/459076/cmap_HighResolution_482457601_482716801_4FGL_J0824.9+3915_daily_bin938.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.17e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-08-29 19:50:01.118832', job_id='459076', GAL2='1.03', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630291801.12', return_code2='0', ts='0.49', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.01e-03', ts2='0.49', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='938' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:50:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 459076: <4FGL_J0824.9+3915_daily_bin938> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin938 126.236 39.2574 482457601 482716801 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 :                                   841.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            862 sec.

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

