/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 18 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 = 7482
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0823.1+4042_daily_bin350
RA = 125.8, Dec = 40.7077
tmin = 330048001, tmax = 330307201
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='423817', job_status='RUN', time_executed='2021-08-29 17:52:13.264802', time_epoch_executed='1630284733.26' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/423817

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/423817/ft1_4FGL_J0823.1+4042_daily_bin350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/423817/ft2_4FGL_J0823.1+4042_daily_bin350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/423817/ft1_4FGL_J0823.1+4042_daily_bin350.fits outfile=/scratch/kocevski/423817/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin350.fits ra=125.8 dec=40.7077 rad=12.0 tmin=330048001.0 tmax=330307201.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.69
user 3.26
sys 2.11

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/423817/ft2_4FGL_J0823.1+4042_daily_bin350.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/423817/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin350.fits evtable="EVENTS" outfile="/scratch/kocevski/423817/ft1_filtered_4FGL_J0823.1+4042_daily_bin350.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 2.38
user 0.34
sys 2.00

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/423817/ft1_filtered_4FGL_J0823.1+4042_daily_bin350.fits" evtable="EVENTS" scfile=/scratch/kocevski/423817/ft2_4FGL_J0823.1+4042_daily_bin350.fits sctable="SC_DATA" outfile=/scratch/kocevski/423817/ltcube_330048001_330307201_4FGL_J0823.1+4042_daily_bin350.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/423817/ft2_4FGL_J0823.1+4042_daily_bin350.fits
.....................!
real 14.58
user 11.88
sys 2.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/423817/ft1_filtered_4FGL_J0823.1+4042_daily_bin350.fits evtable="EVENTS" scfile=/scratch/kocevski/423817/ft2_4FGL_J0823.1+4042_daily_bin350.fits sctable="SC_DATA" expcube=/scratch/kocevski/423817/ltcube_330048001_330307201_4FGL_J0823.1+4042_daily_bin350.fits outfile=/scratch/kocevski/423817/expmap_330048001_330307201_4FGL_J0823.1+4042_daily_bin350.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/423817/ltcube_330048001_330307201_4FGL_J0823.1+4042_daily_bin350.fits
.....................!
real 193.89
user 185.92
sys 6.64

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/423817/ft1_filtered_4FGL_J0823.1+4042_daily_bin350.fits scfile=/scratch/kocevski/423817/ft2_4FGL_J0823.1+4042_daily_bin350.fits outfile=/scratch/kocevski/423817/cmap_330048001_330307201_4FGL_J0823.1+4042_daily_bin350.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 2.36
user 0.38
sys 1.96

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/423817/ft1_filtered_4FGL_J0823.1+4042_daily_bin350.fits scfile=/scratch/kocevski/423817/ft2_4FGL_J0823.1+4042_daily_bin350.fits outfile=/scratch/kocevski/423817/cmap_HighResolution_330048001_330307201_4FGL_J0823.1+4042_daily_bin350.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 2.40
user 0.39
sys 1.98

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/423817/ft1_filtered_4FGL_J0823.1+4042_daily_bin350.fits', '/scratch/kocevski/423817/ft2_4FGL_J0823.1+4042_daily_bin350.fits', expMap='/scratch/kocevski/423817/expmap_330048001_330307201_4FGL_J0823.1+4042_daily_bin350.fits', expCube='/scratch/kocevski/423817/ltcube_330048001_330307201_4FGL_J0823.1+4042_daily_bin350.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/423817/Model_4FGL_J0823.1+4042_daily_bin350.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/423817/ft1_filtered_4FGL_J0823.1+4042_daily_bin350.fits
Spacecraft file(s): /scratch/kocevski/423817/ft2_4FGL_J0823.1+4042_daily_bin350.fits
Exposure map: /scratch/kocevski/423817/expmap_330048001_330307201_4FGL_J0823.1+4042_daily_bin350.fits
Exposure cube: /scratch/kocevski/423817/ltcube_330048001_330307201_4FGL_J0823.1+4042_daily_bin350.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/423817/Model_4FGL_J0823.1+4042_daily_bin350.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) = 7185.46998131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12146E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .26027E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4457       1.0000         .10000E-03   10000.    
     4 'norm      '    .14513E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5625       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.609       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .30306E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.6728       1.0000         .10000E-03   10000.    
    10 'norm      '    2.0443       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14707E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.564       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14691E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3918       1.0000         .10000E-03   10000.    
    16 'norm      '    9.7673       1.0000         .10000E-03   10000.    
    17 'norm      '    56.736       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1151       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.415       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.9394       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.068       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.1771       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.888       1.0000         .10000E-03   10000.    
    24 'norm      '    .42919       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .25987E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    5.7731       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.3704       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .63449       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2615       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.

 FCN=   7185.413     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     3281 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.103        .74652E-07** at limit **
   2  Prefactor     .10006E-03    7.1009       -.79772E-06** at limit **
   3  Prefactor     2.4507        23.317        .25110E-04   -.84134E-04
   4  norm          .10000E-03    6.1146       -.17656E-07** at limit **
   5  norm          2.5621        2.3924        .37363E-07    .19667E-03
   6  Prefactor     .10000E-03    3.4768       -.77860E-06** at limit **
   7  Prefactor     12.756        34.680       -.34013E-05   -.48373E-04
   8  Prefactor     .10000E-03    3.1638       -.10332E-05** at limit **
   9  norm          4.6725        2.2467        .30927E-07    .28923E-04
  10  norm          2.0453        .80509        .84217E-07    .88085E-03
  11  Prefactor     .10000E-03    40.715        .15048E-07** at limit **
  12  Prefactor     13.459        11.494        .27140E-06    .64717E-04
  13  Prefactor     .10000E-03    1.1648       -.17673E-06** at limit **
  14  Prefactor     .10000E-03    26.874       -.26243E-06** at limit **
  15  Prefactor     2.4035        10.498        .14437E-05    .92532E-05
  16  norm          9.8857        7.9374        .86444E-07    .38797E-05
  17  norm          56.593        13.504        .24038E-08    .55093E-04
  18  Prefactor     2.1075        2.6722        .62441E-06    .14710E-03
  19  Prefactor     20.750        116.46        .32203E-06    .12878E-03
  20  Prefactor     8.9561        5.0669        .40329E-07    .11433E-05
  21  Prefactor     14.088        33.701        .13942E-07   -.39318E-04
  22  Prefactor     2.1809        2.6980        .11285E-06    .10826E-03
  23  Prefactor     16.523        22.048        .48453E-07    .12275E-04
  24  norm          .42981        .57613        .14020E-06    .17567E-02
  25  Prefactor     .10002E-03    2.1335       -.55518E-06** at limit **
  26  norm          5.8800        9.1128        .13742E-06    .70795E-05
  27  Prefactor     2.3716        2.1514       -.16438E-07    .12732E-03
  28  Normalizat    .63483        .19702       -.61959E-06    .12708E-03
  29  Prefactor     1.2612        .15612       -.10396E-05    .25074E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100055
  Prefactor  = 2.45067
  norm       = 0.0001
  norm       = 2.56215
  Prefactor  = 0.0001
  Prefactor  = 12.756
  Prefactor  = 0.000100001
  norm       = 4.67252
  norm       = 2.0453
  Prefactor  = 0.0001
  Prefactor  = 13.4591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.40351
  norm       = 9.88567
  norm       = 56.5931
  Prefactor  = 2.10754
  Prefactor  = 20.7499
  Prefactor  = 8.95605
  Prefactor  = 14.0882
  Prefactor  = 2.18091
  Prefactor  = 16.5227
  norm       = 0.42981
  Prefactor  = 0.000100025
  norm       = 5.88001
  Prefactor  = 2.37159
  Normalizat = 0.634832
  Prefactor  = 1.26123
 **********
 **   18 **HESSE 
 **********

 FCN=   7185.413     FROM HESSE     STATUS=OK           569 CALLS     3850 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.258        .41258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10006E-03    67.031        .41501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.4507        23.275        .13080E-02   -1.5395    
   4  norm          .10000E-03    6.1364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5621        2.2876        .11710E-03   -1.5388    
   6  Prefactor     .10000E-03    3.4936        .15443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.756        34.623        .11281E-03   -1.4994    
   8  Prefactor     .10000E-03    5.8222        .28323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.6725        2.2462        .85784E-04   -1.5276    
  10  norm          2.0453        .79365        .43745E-04   -1.5422    
  11  Prefactor     .10000E-03    40.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.459        11.469        .10876E-03   -1.4974    
  13  Prefactor     .10000E-03    1.1751        .89204E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    27.020        .20487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.4035        10.420        .26481E-03   -1.5398    
  16  norm          9.8857        7.9185        .12822E-03   -1.5079    
  17  norm          56.593        13.495        .26629E-03   -1.4202    
  18  Prefactor     2.1075        2.6383        .14321E-03   -1.5418    
  19  Prefactor     20.750        113.41        .44323E-03   -1.4797    
  20  Prefactor     8.9561        5.0674        .13406E-03   -1.5109    
  21  Prefactor     14.088        33.665        .10679E-03   -1.4957    
  22  Prefactor     2.1809        2.6703        .14646E-03   -1.5413    
  23  Prefactor     16.523        21.966        .97460E-04   -1.4895    
  24  norm          .42981        .46718        .60773E-03   -1.5577    
  25  Prefactor     .10002E-03    20.025        .20097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.8800        9.0764        .16716E-03   -1.5223    
  27  Prefactor     2.3716        2.1427        .11327E-03   -1.5400    
  28  Normalizat    .63483        .21861        .34376E-03   -1.0652    
  29  Prefactor     1.2612        .17519        .20863E-03   -.84467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18414e-09
Minuit parameter uncertainties:
  1  0.000131492
  2  0.00385981
  3  15.1123
  4  1.14349e-05
  5  2.28763
  6  2.75972e-05
  7  34.6777
  8  0.000174939
  9  2.24621
  10  0.793653
  11  0.000116816
  12  11.4709
  13  2.56521e-06
  14  3.54073e-05
  15  10.0116
  16  7.91936
  17  13.496
  18  2.63843
  19  97.3061
  20  5.06764
  21  33.7108
  22  2.67041
  23  21.9765
  24  0.467182
  25  0.00140402
  26  9.07851
  27  2.14278
  28  0.218904
  29  0.175273
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.346e+01  1.147e+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:  1.261e+00  1.753e-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:  6.348e-01  2.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.65
Ra Dec: 125.800 40.708
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 3.92e-08 +/- 3.34e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 1.02e-05

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) = 7184.24368118
delta logL = 1.16937998217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7184.22237616
delta logL = 1.19068500796

Fit tolerance = 1e-08

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

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

 FCN=   7184.222     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      216 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.229        10.798        .29919E-02   -.28370E-04
   2  Index         1.3474        .42553        .26281       -.62640E-04
   3  Normalizat    .66446        .18293        .76036E-01    .38110E-04
   4  Prefactor     1.2512        .15231        .33527E-01    .59083E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2293
  Index      = 1.34738
  Normalizat = 0.664461
  Prefactor  = 1.25117
 **********
 **   18 **HESSE 
 **********

 FCN=   7184.222     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.229        14.073        .11967E-03   -1.5038    
   2  Index         1.3474        .62733        .10240E-01   -.81909    
   3  Normalizat    .66446        .20552        .33663E-03   -1.0531    
   4  Prefactor     1.2512        .17168        .20943E-03   -.84771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22719e-09
Minuit parameter uncertainties:
  1  14.0776
  2  0.630909
  3  0.205756
  4  0.171761
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/423817': 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) = 7184.22237228
delta logL = 1.19068887913

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.123e+01  1.408e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  1.347e+00  6.309e-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:  1.251e+00  1.718e-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:  6.645e-01  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.03
Ra Dec: 125.800 40.708
Photon Index (Free Index): 1.35 +/- 0.63
Photon Flux (Free Index): 8.12e-09 +/- 1.11e-08
Energy Flux (Free Index): 4.27e-05 +/- 6.12e-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/423817/cmap_HighResolution_330048001_330307201_4FGL_J0823.1+4042_daily_bin350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.92e-08', energy_flux2='4.27e-05', photon_flux_error='3.34e-08', dlogl='1.19e+00', energy_flux='1.20e-05', photon_flux2='8.12e-09', job_status='DONE', time_completed='2021-08-29 18:06:01.626733', photon_index_error2='0.63', photon_index2='1.35', ts='4.65', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='6.12e-05', EG='0.63', time_epoch_completed='1630285561.63', return_code='0', job_id='423817', GAL2='1.25', EG2='0.66', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='1.11e-08', ts2='7.03', photon_index='2.46' WHERE bin_id='350' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:06:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 423817: <4FGL_J0823.1+4042_daily_bin350> in cluster <slac> Done

Job <4FGL_J0823.1+4042_daily_bin350> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 17:50:43 2021
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:50:45 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:50:45 2021
Terminated at Sun Aug 29 18:06:02 2021
Results reported at Sun Aug 29 18:06:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin350 125.8 40.7077 330048001 330307201 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 :                                   852.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            919 sec.

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

