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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin816
RA = 125.8, Dec = 40.7077
tmin = 450835201, tmax = 451094401
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='425574', job_status='RUN', time_executed='2021-08-29 17:56:49.094286', time_epoch_executed='1630285009.09' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='816'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425574

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425574/ft1_4FGL_J0823.1+4042_daily_bin816.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425574/ft2_4FGL_J0823.1+4042_daily_bin816.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425574/ft1_4FGL_J0823.1+4042_daily_bin816.fits outfile=/scratch/kocevski/425574/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin816.fits ra=125.8 dec=40.7077 rad=12.0 tmin=450835201.0 tmax=451094401.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.81
user 3.16
sys 0.41

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/425574/ft2_4FGL_J0823.1+4042_daily_bin816.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/425574/ft2_4FGL_J0823.1+4042_daily_bin816.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/425574/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin816.fits evtable="EVENTS" outfile="/scratch/kocevski/425574/ft1_filtered_4FGL_J0823.1+4042_daily_bin816.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.79
user 0.33
sys 0.35

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425574/ft1_filtered_4FGL_J0823.1+4042_daily_bin816.fits" evtable="EVENTS" scfile=/scratch/kocevski/425574/ft2_4FGL_J0823.1+4042_daily_bin816.fits sctable="SC_DATA" outfile=/scratch/kocevski/425574/ltcube_450835201_451094401_4FGL_J0823.1+4042_daily_bin816.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/425574/ft2_4FGL_J0823.1+4042_daily_bin816.fits
.....................!
real 12.00
user 11.37
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425574/ft1_filtered_4FGL_J0823.1+4042_daily_bin816.fits evtable="EVENTS" scfile=/scratch/kocevski/425574/ft2_4FGL_J0823.1+4042_daily_bin816.fits sctable="SC_DATA" expcube=/scratch/kocevski/425574/ltcube_450835201_451094401_4FGL_J0823.1+4042_daily_bin816.fits outfile=/scratch/kocevski/425574/expmap_450835201_451094401_4FGL_J0823.1+4042_daily_bin816.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/425574/ltcube_450835201_451094401_4FGL_J0823.1+4042_daily_bin816.fits
.....................!
real 194.14
user 186.30
sys 5.77

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

Setting source of interest to:
4FGL J0823.1+4042 @ 125.8 40.7077

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/425574/ft1_filtered_4FGL_J0823.1+4042_daily_bin816.fits scfile=/scratch/kocevski/425574/ft2_4FGL_J0823.1+4042_daily_bin816.fits outfile=/scratch/kocevski/425574/cmap_450835201_451094401_4FGL_J0823.1+4042_daily_bin816.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=125.8 yref=40.7077 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.74
user 0.34
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425574/ft1_filtered_4FGL_J0823.1+4042_daily_bin816.fits scfile=/scratch/kocevski/425574/ft2_4FGL_J0823.1+4042_daily_bin816.fits outfile=/scratch/kocevski/425574/cmap_HighResolution_450835201_451094401_4FGL_J0823.1+4042_daily_bin816.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=125.8 yref=40.7077 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.73
user 0.36
sys 0.36

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/425574/ft1_filtered_4FGL_J0823.1+4042_daily_bin816.fits evtable="EVENTS" scfile=/scratch/kocevski/425574/ft2_4FGL_J0823.1+4042_daily_bin816.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/425574/Model_4FGL_J0823.1+4042_daily_bin816.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/425574/ft1_filtered_4FGL_J0823.1+4042_daily_bin816.fits.....................!
real 65.81
user 64.11
sys 1.46

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/425574/ft1_filtered_4FGL_J0823.1+4042_daily_bin816.fits', '/scratch/kocevski/425574/ft2_4FGL_J0823.1+4042_daily_bin816.fits', expMap='/scratch/kocevski/425574/expmap_450835201_451094401_4FGL_J0823.1+4042_daily_bin816.fits', expCube='/scratch/kocevski/425574/ltcube_450835201_451094401_4FGL_J0823.1+4042_daily_bin816.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/425574/Model_4FGL_J0823.1+4042_daily_bin816.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0823.1+4042'

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  2.674e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.456e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.174e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/425574/ft1_filtered_4FGL_J0823.1+4042_daily_bin816.fits
Spacecraft file(s): /scratch/kocevski/425574/ft2_4FGL_J0823.1+4042_daily_bin816.fits
Exposure map: /scratch/kocevski/425574/expmap_450835201_451094401_4FGL_J0823.1+4042_daily_bin816.fits
Exposure cube: /scratch/kocevski/425574/ltcube_450835201_451094401_4FGL_J0823.1+4042_daily_bin816.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/425574/Model_4FGL_J0823.1+4042_daily_bin816.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) = 7099.008764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33071E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.881       1.0000         .10000E-03   10000.    
     4 'norm      '    8.1500       1.0000         .10000E-03   10000.    
     5 'norm      '    8.4741       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2505       1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.285       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.023       1.0000         .10000E-03   10000.    
     9 'norm      '    6.5450       1.0000         .10000E-03   10000.    
    10 'norm      '    1.3378       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17704E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.002       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2017       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20896E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0912       1.0000         .10000E-03   10000.    
    16 'norm      '    .32533E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    8.9007       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    125.05       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.6261       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10404E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.0589       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.020       1.0000         .10000E-03   10000.    
    24 'norm      '    .12431       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.2019       1.0000         .10000E-03   10000.    
    26 'norm      '    10.057       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.4865       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .96705       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .87243       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7098.949     FROM MIGRAD    STATUS=CONVERGED    200 CALLS     2686 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7227        .81531E-06** at limit **
   2  Prefactor     .10000E-03    5.3278       -.18119E-05** at limit **
   3  Prefactor     20.979        15.464       -.58310E-05   -.15661E-02
   4  norm          8.1422        11.545        .45213E-06   -.42417E-04
   5  norm          8.4929        3.4546        .30198E-06   -.30258E-04
   6  Prefactor     3.3201        5.7894        .11981E-05   -.84713E-05
   7  Prefactor     26.182        38.548       -.74499E-06   -.14648E-03
   8  Prefactor     11.041        5.7235        .25879E-05   -.94214E-04
   9  norm          6.5430        2.6762        .49149E-06   -.56381E-04
  10  norm          1.3424        .72067       -.15057E-06    .12168E-03
  11  Prefactor     .10000E-03    9.6880       -.17228E-05** at limit **
  12  Prefactor     26.966        12.868       -.40395E-05    .36555E-02
  13  Prefactor     2.2001        3.4283        .38076E-06   -.66105E-04
  14  Prefactor     .10016E-03    17.551        .22114E-04** at limit **
  15  Prefactor     2.0926        9.2121        .50284E-05   -.49780E-05
  16  norm          .16457        54.883       -.35025E-04   -.14431E-03
  17  norm          8.9566        6.8338       -.19213E-05    .98306E-04
  18  Prefactor     .10000E-03    1.1445       -.66500E-08** at limit **
  19  Prefactor     122.33        107.43       -.29651E-05   -.31236E-04
  20  Prefactor     9.6253        5.7578       -.18379E-05   -.57400E-04
  21  Prefactor     .10001E-03    43.450        .47051E-05** at limit **
  22  Prefactor     8.0633        4.3305       -.71786E-06   -.20511E-04
  23  Prefactor     11.060        16.072        .20880E-05    .15286E-02
  24  norm          .12582        1.2778       -.34016E-05    .13875E-04
  25  Prefactor     3.1877        6.8888        .80701E-05    .31189E-04
  26  norm          10.039        9.6739       -.45052E-05   -.48360E-03
  27  Prefactor     1.4755        2.9973        .54024E-06    .23356E-04
  28  Normalizat    .96836        .21068       -.38672E-05    .78319E-05
  29  Prefactor     .87241        .15726        .41640E-05   -.74892E-08
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.9794
  norm       = 8.14217
  norm       = 8.49293
  Prefactor  = 3.32013
  Prefactor  = 26.1818
  Prefactor  = 11.0406
  norm       = 6.54305
  norm       = 1.34239
  Prefactor  = 0.0001
  Prefactor  = 26.9663
  Prefactor  = 2.20011
  Prefactor  = 0.000100162
  Prefactor  = 2.09258
  norm       = 0.164568
  norm       = 8.95659
  Prefactor  = 0.0001
  Prefactor  = 122.329
  Prefactor  = 9.62531
  Prefactor  = 0.000100007
  Prefactor  = 8.06329
  Prefactor  = 11.0604
  norm       = 0.125819
  Prefactor  = 3.18766
  norm       = 10.0392
  Prefactor  = 1.47551
  Normalizat = 0.968364
  Prefactor  = 0.872409
 **********
 **   18 **HESSE 
 **********

 FCN=   7098.949     FROM HESSE     STATUS=OK           625 CALLS     3311 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7008        .10674E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.3149        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.979        16.586        .21913E-02   -1.4792    
   4  norm          8.1422        11.587        .35109E-02   -1.5137    
   5  norm          8.4929        3.4573        .34427E-02   -1.5125    
   6  Prefactor     3.3201        5.8409        .56161E-02   -1.5344    
   7  Prefactor     26.182        38.765        .18509E-02   -1.4684    
   8  Prefactor     11.041        5.7711        .30167E-02   -1.5043    
   9  norm          6.5430        2.6742        .39216E-02   -1.5196    
  10  norm          1.3424        .75238        .94787E-02   -1.5476    
  11  Prefactor     .10000E-03    9.6763        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.966        22.543        .19274E-02   -1.4669    
  13  Prefactor     2.2001        3.9159        .69321E-02   -1.5411    
  14  Prefactor     .10016E-03    82.113        .10095E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0926        9.2907        .71367E-02   -1.5419    
  16  norm          .16457        5.6544        .63491E-01   -1.5627    
  17  norm          8.9566        6.8946        .33587E-02   -1.5109    
  18  Prefactor     .10000E-03    1.1331        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     122.33        108.05        .89988E-03   -1.3491    
  20  Prefactor     9.6253        5.7571        .32291E-02   -1.5087    
  21  Prefactor     .10001E-03    43.797        .90750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.0633        4.3886        .35309E-02   -1.5140    
  23  Prefactor     11.060        19.445        .30171E-02   -1.5043    
  24  norm          .12582        1.0027        .96265E-03   -1.5637    
  25  Prefactor     3.1877        6.1144        .56607E-02   -1.5351    
  26  norm          10.039        10.011        .31588E-02   -1.5074    
  27  Prefactor     1.4755        3.0695        .87948E-02   -1.5465    
  28  Normalizat    .96836        .18700        .45753E-01   -.94098    
  29  Prefactor     .87241        .13862        .44653E-01   -.97112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21906e-07
Minuit parameter uncertainties:
  1  1.14906e-08
  2  1.91839e-06
  3  16.5899
  4  11.59
  5  3.45743
  6  5.84187
  7  38.8021
  8  5.77143
  9  2.67429
  10  0.752389
  11  2.50298e-05
  12  22.5502
  13  3.91637
  14  0.00730706
  15  8.82061
  16  1.9289
  17  6.89523
  18  1.17104e-06
  19  108.226
  20  5.75746
  21  0.00113773
  22  4.38876
  23  19.4559
  24  0.71012
  25  6.11555
  26  10.0128
  27  3.0698
  28  0.187124
  29  0.138672
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  2.697e+01  2.255e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.456e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.174e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
630    Prefactor:  8.724e-01  1.387e-01  0.000e+00  1.000e+01 ( 1.000e+00)
631        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
632        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
629   Normalization:  9.684e-01  1.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.10
Ra Dec: 125.800 40.708
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 7.85e-08 +/- 6.56e-08
Energy Flux (Fixed Index): 2.40e-05 +/- 2.00e-05

TS (Fixed Index): 3.10
Ra Dec: 125.800 40.708
Photon Flux Upper Limit: 1.78e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.38e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/425574/likelihoodResults_450835201_451094401_4FGL_J0823.1+4042_daily_bin816.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) = 7098.94274383
delta logL = 0.00606948578115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7098.92871403
delta logL = 0.0200992848886

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.019       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6176       1.0000          .0000       10.000    
     3 'Normalizat'    .95856       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87827       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6330E+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.

 FCN=   7098.929     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      247 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.007        41.120        .85359E-04   -.27796E-03
   2  Index         2.6183        1.1792        .59780E-02   -.67280E-04
   3  Normalizat    .95852        .20412        .28213E-03    .72455E-03
   4  Prefactor     .87829        .15851        .23341E-03    .17529E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.0069
  Index      = 2.61829
  Normalizat = 0.958523
  Prefactor  = 0.878288
 **********
 **   18 **HESSE 
 **********

 FCN=   7098.929     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.007        29.678        .34144E-05   -1.4769    
   2  Index         2.6183        .85403        .23912E-03   -.49649    
   3  Normalizat    .95852        .19929        .56426E-04   -.94433    
   4  Prefactor     .87829        .15554        .93365E-05   -.96904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98501e-09
Minuit parameter uncertainties:
  1  29.6983
  2  0.859497
  3  0.199442
  4  0.155616
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425574': 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) = 7098.92871359
delta logL = 0.0200997213424

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  2.201e+01  2.970e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.618e+00  8.595e-01  0.000e+00  1.000e+01 (-1.000e+00)
304        Scale:  1.174e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
630    Prefactor:  8.783e-01  1.556e-01  0.000e+00  1.000e+01 ( 1.000e+00)
631        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
632        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
629   Normalization:  9.585e-01  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.22
Ra Dec: 125.800 40.708
Photon Index (Free Index): 2.62 +/- 0.86
Photon Flux (Free Index): 8.60e-08 +/- 6.51e-08
Energy Flux (Free Index): 2.22e-05 +/- 1.65e-05

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/425574/cmap_HighResolution_450835201_451094401_4FGL_J0823.1+4042_daily_bin816.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.38e-02', comment='SUCCESS', photon_flux='7.85e-08', energy_flux2='2.22e-05', photon_flux_error='6.56e-08', dlogl='2.01e-02', energy_flux='2.40e-05', photon_flux2='8.60e-08', job_status='DONE', time_completed='2021-08-29 18:11:17.601776', photon_index_error2='0.86', photon_index2='2.62', ts='3.10', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.78e-07', energy_flux_error2='1.65e-05', EG='0.97', time_epoch_completed='1630285877.6', return_code='0', job_id='425574', GAL2='0.88', EG2='0.96', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='6.51e-08', ts2='3.22', photon_index='2.46' WHERE bin_id='816' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:11:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0056>
Subject: Job 425574: <4FGL_J0823.1+4042_daily_bin816> in cluster <slac> Done

Job <4FGL_J0823.1+4042_daily_bin816> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Aug 29 17:55:43 2021
Job was executed on host(s) <bullet0056>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:55:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 17:55:44 2021
Terminated at Sun Aug 29 18:11:18 2021
Results reported at Sun Aug 29 18:11:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin816 125.8 40.7077 450835201 451094401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0823.1+4042 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   868.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            935 sec.

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

