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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin470
RA = 126.236, Dec = 39.2574
tmin = 361152001, tmax = 361411201
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='454887', job_status='RUN', time_executed='2021-08-29 19:21:50.388555', time_epoch_executed='1630290110.39' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='470'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/454887

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/454887/ft1_4FGL_J0824.9+3915_daily_bin470.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/454887/ft2_4FGL_J0824.9+3915_daily_bin470.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/454887/ft1_4FGL_J0824.9+3915_daily_bin470.fits outfile=/scratch/kocevski/454887/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin470.fits ra=126.236 dec=39.2574 rad=12.0 tmin=361152001.0 tmax=361411201.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.28
user 2.53
sys 0.68

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/454887/ft2_4FGL_J0824.9+3915_daily_bin470.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/454887/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin470.fits evtable="EVENTS" outfile="/scratch/kocevski/454887/ft1_filtered_4FGL_J0824.9+3915_daily_bin470.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.93
user 0.26
sys 0.64

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/454887/ft1_filtered_4FGL_J0824.9+3915_daily_bin470.fits" evtable="EVENTS" scfile=/scratch/kocevski/454887/ft2_4FGL_J0824.9+3915_daily_bin470.fits sctable="SC_DATA" outfile=/scratch/kocevski/454887/ltcube_361152001_361411201_4FGL_J0824.9+3915_daily_bin470.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/454887/ft2_4FGL_J0824.9+3915_daily_bin470.fits
.....................!
real 9.83
user 8.94
sys 0.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/454887/ft1_filtered_4FGL_J0824.9+3915_daily_bin470.fits evtable="EVENTS" scfile=/scratch/kocevski/454887/ft2_4FGL_J0824.9+3915_daily_bin470.fits sctable="SC_DATA" expcube=/scratch/kocevski/454887/ltcube_361152001_361411201_4FGL_J0824.9+3915_daily_bin470.fits outfile=/scratch/kocevski/454887/expmap_361152001_361411201_4FGL_J0824.9+3915_daily_bin470.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/454887/ltcube_361152001_361411201_4FGL_J0824.9+3915_daily_bin470.fits
.....................!
real 145.44
user 140.95
sys 4.13

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/454887/ft1_filtered_4FGL_J0824.9+3915_daily_bin470.fits scfile=/scratch/kocevski/454887/ft2_4FGL_J0824.9+3915_daily_bin470.fits outfile=/scratch/kocevski/454887/cmap_361152001_361411201_4FGL_J0824.9+3915_daily_bin470.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.25
user 0.30
sys 0.63

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/454887/ft1_filtered_4FGL_J0824.9+3915_daily_bin470.fits scfile=/scratch/kocevski/454887/ft2_4FGL_J0824.9+3915_daily_bin470.fits outfile=/scratch/kocevski/454887/cmap_HighResolution_361152001_361411201_4FGL_J0824.9+3915_daily_bin470.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.41
user 0.31
sys 0.61

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9928       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.0883       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.596       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .37967       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.655       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.359       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0351       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.641       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.682       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4349       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11161E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.5615       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    14.776       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.3697       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0690       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0367       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=   7126.706     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     3083 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9928        13.938       -.78313E-06   -.34279E-04
   2  Prefactor     .10000E-03    3.8357       -.21378E-06** at limit **
   3  norm          .10000E-03    4.8275        .10521E-06** at limit **
   4  norm          4.0884        2.6647        .55509E-06   -.32341E-03
   5  Prefactor     .10000E-03    1.6112        .74202E-07** at limit **
   6  Prefactor     33.595        35.601       -.19564E-05    .33963E-04
   7  Prefactor     .10000E-03    1.0790        .20724E-07** at limit **
   8  Prefactor     .10000E-03    13.967        .24839E-06** at limit **
   9  norm          .37971        .44506       -.10516E-06   -.14589E-02
  10  Prefactor     29.641        33.930       -.15988E-04    .30246E-03
  11  Prefactor     .10000E-03    7.7864        .98974E-08** at limit **
  12  Prefactor     11.357        10.740        .13987E-05   -.95841E-06
  13  Prefactor     1.0355        2.4166       -.11091E-05   -.12928E-02
  14  Prefactor     16.638        21.482       -.16219E-05    .49363E-04
  15  Prefactor     .10000E-03    3.5487        .19065E-06** at limit **
  16  norm          12.682        6.0525       -.81175E-07    .13230E-04
  17  Prefactor     .10000E-03    .71009       -.10858E-07** at limit **
  18  Prefactor     2.4350        3.5401       -.19504E-05   -.44167E-03
  19  Prefactor     .10000E-03    63.372        .60696E-06** at limit **
  20  Prefactor     .10000E-03    1.7357        .50828E-07** at limit **
  21  Prefactor     5.5572        23.359       -.15877E-05   -.32215E-04
  22  norm          .10000E-03    .24152       -.19997E-07** at limit **
  23  norm          14.775        11.002        .35638E-06   -.18039E-04
  24  Prefactor     2.3694        2.2101       -.11431E-06   -.14375E-03
  25  Normalizat    1.0691        .17495        .16388E-05    .34005E-04
  26  Prefactor     1.0366        .14404        .25164E-06    .13007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.9928
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.08839
  Prefactor  = 0.0001
  Prefactor  = 33.5946
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.379711
  Prefactor  = 29.6405
  Prefactor  = 0.0001
  Prefactor  = 11.3569
  Prefactor  = 1.03549
  Prefactor  = 16.6384
  Prefactor  = 0.0001
  norm       = 12.6819
  Prefactor  = 0.0001
  Prefactor  = 2.43502
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.55723
  norm       = 0.0001
  norm       = 14.7752
  Prefactor  = 2.3694
  Normalizat = 1.0691
  Prefactor  = 1.03661
 **********
 **   18 **HESSE 
 **********

 FCN=   7126.706     FROM HESSE     STATUS=OK           460 CALLS     3543 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9928        13.952        .13365E-03   -1.5108    
   2  Prefactor     .10000E-03    3.8408        .16147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.8474        .18113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.0884        2.6597        .10762E-03   -1.5304    
   5  Prefactor     .10000E-03    1.6121        .10464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     33.595        35.572        .69135E-04   -1.4548    
   7  Prefactor     .10000E-03    1.0823        .85618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .37971        .41274        .58077E-03   -1.5585    
  10  Prefactor     29.641        33.343        .73573E-04   -1.4619    
  11  Prefactor     .10000E-03    7.7912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.357        10.618        .11887E-03   -1.5034    
  13  Prefactor     1.0355        2.3991        .18277E-03   -1.5504    
  14  Prefactor     16.638        21.435        .98181E-04   -1.4892    
  15  Prefactor     .10000E-03    3.5573        .15527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.682        6.0549        .11248E-03   -1.4996    
  17  Prefactor     .10000E-03    .71649        .69445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.4350        3.5850        .18762E-03   -1.5396    
  19  Prefactor     .10000E-03    63.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.7646        .10829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.5572        22.836        .17036E-03   -1.5236    
  22  norm          .10000E-03    .64729        .80486E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          14.775        10.896        .10420E-03   -1.4939    
  24  Prefactor     2.3694        2.1991        .11473E-03   -1.5400    
  25  Normalizat    1.0691        .20206        .26273E-03   -.90750    
  26  Prefactor     1.0366        .16685        .22610E-03   -.91519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55847e-09
Minuit parameter uncertainties:
  1  13.9566
  2  8.68436e-07
  3  6.37807e-06
  4  2.65979
  5  4.85795e-07
  6  35.5948
  7  7.79548e-07
  8  9.35408e-05
  9  0.412739
  10  33.3635
  11  1.0931e-05
  12  10.6197
  13  2.39929
  14  21.4451
  15  1.96899e-06
  16  6.05517
  17  1.43314e-06
  18  3.58532
  19  2.35993e-05
  20  3.54512e-06
  21  22.5449
  22  5.90578e-06
  23  10.8976
  24  2.19919
  25  0.202207
  26  0.166929
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.035e+00  2.399e+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.037e+00  1.669e-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.069e+00  2.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/454887/likelihoodResults_361152001_361411201_4FGL_J0824.9+3915_daily_bin470.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) = 7126.67324471
delta logL = 0.032614710889

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7126.66793865
delta logL = 0.0379207753849

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .82174       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7911       1.0000          .0000       10.000    
     3 'Normalizat'    1.0636       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0391       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=   7126.668     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      197 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82188        106.76        .12521E-01    .99662E-03
   2  Index         2.7913        6.2769        .22631E-01    .56124E-04
   3  Normalizat    1.0636        .71916E-01    .59539E-01    .13633E-04
   4  Prefactor     1.0391        .62409E-01    .40597E-01    .74559E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.821876
  Index      = 2.79127
  Normalizat = 1.06362
  Prefactor  = 1.03906
 **********
 **   18 **HESSE 
 **********

 FCN=   7126.668     FROM HESSE     STATUS=OK            31 CALLS      228 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82188        2.0846        .14103E-03   -1.5527    
   2  Index         2.7913        1.3658        .90524E-03   -.45754    
   3  Normalizat    1.0636        .19393        .26331E-03   -.90928    
   4  Prefactor     1.0391        .16399        .22585E-03   -.91439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75858e-10
Minuit parameter uncertainties:
  1  2.0848
  2  1.38784
  3  0.194064
  4  0.164065
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/454887': 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) = 7126.66793861
delta logL = 0.0379208060876

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  8.219e-01  2.085e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.791e+00  1.388e+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.039e+00  1.641e-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.064e+00  1.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/454887/cmap_HighResolution_361152001_361411201_4FGL_J0824.9+3915_daily_bin470.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.54e-03', job_status='DONE', photon_flux_upper_limit='8.44e-08', time_completed='2021-08-29 19:33:04.640260', job_id='454887', GAL2='1.04', fit_tolerance='1e-08', EG2='1.06', EG='1.07', time_epoch_completed='1630290784.64', return_code2='0', ts='0.25', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='3.79e-02', ts2='0.33', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='470' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:33:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 454887: <4FGL_J0824.9+3915_daily_bin470> in cluster <slac> Done

Job <4FGL_J0824.9+3915_daily_bin470> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 19:21:19 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 19:21:21 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:21:21 2021
Terminated at Sun Aug 29 19:33:06 2021
Results reported at Sun Aug 29 19:33:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin470 126.236 39.2574 361152001 361411201 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 :                                   670.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            707 sec.

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

