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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin770
RA = 125.8, Dec = 40.7077
tmin = 438912001, tmax = 439171201
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='425507', job_status='RUN', time_executed='2021-08-29 17:59:52.015799', time_epoch_executed='1630285192.02' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425507

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425507/ft1_4FGL_J0823.1+4042_daily_bin770.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425507/ft2_4FGL_J0823.1+4042_daily_bin770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425507/ft1_4FGL_J0823.1+4042_daily_bin770.fits outfile=/scratch/kocevski/425507/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin770.fits ra=125.8 dec=40.7077 rad=12.0 tmin=438912001.0 tmax=439171201.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 6.95
user 5.85
sys 0.93

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425507/ft1_filtered_4FGL_J0823.1+4042_daily_bin770.fits" evtable="EVENTS" scfile=/scratch/kocevski/425507/ft2_4FGL_J0823.1+4042_daily_bin770.fits sctable="SC_DATA" outfile=/scratch/kocevski/425507/ltcube_438912001_439171201_4FGL_J0823.1+4042_daily_bin770.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/425507/ft2_4FGL_J0823.1+4042_daily_bin770.fits
.....................!
real 12.93
user 11.77
sys 1.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425507/ft1_filtered_4FGL_J0823.1+4042_daily_bin770.fits evtable="EVENTS" scfile=/scratch/kocevski/425507/ft2_4FGL_J0823.1+4042_daily_bin770.fits sctable="SC_DATA" expcube=/scratch/kocevski/425507/ltcube_438912001_439171201_4FGL_J0823.1+4042_daily_bin770.fits outfile=/scratch/kocevski/425507/expmap_438912001_439171201_4FGL_J0823.1+4042_daily_bin770.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/425507/ltcube_438912001_439171201_4FGL_J0823.1+4042_daily_bin770.fits
.....................!
real 191.55
user 185.77
sys 5.40

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/425507/ft1_filtered_4FGL_J0823.1+4042_daily_bin770.fits scfile=/scratch/kocevski/425507/ft2_4FGL_J0823.1+4042_daily_bin770.fits outfile=/scratch/kocevski/425507/cmap_438912001_439171201_4FGL_J0823.1+4042_daily_bin770.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 1.28
user 0.37
sys 0.82

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425507/ft1_filtered_4FGL_J0823.1+4042_daily_bin770.fits scfile=/scratch/kocevski/425507/ft2_4FGL_J0823.1+4042_daily_bin770.fits outfile=/scratch/kocevski/425507/cmap_HighResolution_438912001_439171201_4FGL_J0823.1+4042_daily_bin770.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 1.34
user 0.37
sys 0.83

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.504       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.8870       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.654       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7418       1.0000         .10000E-03   10000.    
     9 'norm      '    .90182       1.0000         .10000E-03   10000.    
    10 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.993       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.836       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12298E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.618       1.0000         .10000E-03   10000.    
    16 'norm      '    1.8352       1.0000         .10000E-03   10000.    
    17 'norm      '    20.724       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9862       1.0000         .10000E-03   10000.    
    19 'Prefactor '    171.00       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .80203       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .37768       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    12.400       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .92443       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .85728       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=   4426.397     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     3695 TOTAL
                     EDM=   .40E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2501       -.93445E-08** at limit **
   2  Prefactor     .10000E-03    5.9421       -.61208E-07** at limit **
   3  Prefactor     11.502        11.369       -.89871E-07   -.89364E-05
   4  norm          .10000E-03    5.4674        .41999E-07** at limit **
   5  norm          3.8870        3.0972        .45220E-07   -.95497E-05
   6  Prefactor     .10000E-03    3.3391       -.23107E-07** at limit **
   7  Prefactor     22.633        27.759        .15091E-05    .11836E-05
   8  Prefactor     2.7437        6.1379        .44123E-05   -.13227E-03
   9  norm          .89950        3.1865        .47221E-06    .18027E-05
  10  norm          .10000E-03    .23618        .23140E-07** at limit **
  11  Prefactor     36.975        26.713        .11363E-05    .13058E-04
  12  Prefactor     25.896        21.001       -.58868E-06   -.62391E-04
  13  Prefactor     .10000E-03    2.9217       -.11765E-06** at limit **
  14  Prefactor     .10000E-03    11.264        .14516E-06** at limit **
  15  Prefactor     13.618        11.661       -.86441E-08   -.32983E-04
  16  norm          1.8354        5.8778        .78491E-06    .31537E-04
  17  norm          20.721        13.509        .33404E-06   -.21156E-04
  18  Prefactor     2.9856        3.9286        .63116E-06    .47688E-04
  19  Prefactor     171.11        141.13       -.11607E-04   -.34216E-04
  20  Prefactor     .10000E-03    3.4361       -.12878E-07** at limit **
  21  Prefactor     .10000E-03    23.629        .73651E-06** at limit **
  22  Prefactor     .80185        3.8306        .66742E-06   -.45384E-05
  23  Prefactor     .10000E-03    24.653       -.61565E-06** at limit **
  24  norm          .37765        .40838        .17778E-07    .36672E-04
  25  Prefactor     .10000E-03    2.1159        .83754E-07** at limit **
  26  norm          12.399        12.080        .23735E-06    .10971E-04
  27  Prefactor     .10000E-03    .86665        .27919E-07** at limit **
  28  Normalizat    .92445        .20666       -.17868E-05   -.45071E-04
  29  Prefactor     .85734        .15389        .10371E-06   -.67380E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5021
  norm       = 0.0001
  norm       = 3.88698
  Prefactor  = 0.0001
  Prefactor  = 22.6333
  Prefactor  = 2.74372
  norm       = 0.899503
  norm       = 0.0001
  Prefactor  = 36.9753
  Prefactor  = 25.8959
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 13.6179
  norm       = 1.83537
  norm       = 20.7209
  Prefactor  = 2.98557
  Prefactor  = 171.11
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.801854
  Prefactor  = 0.0001
  norm       = 0.377651
  Prefactor  = 0.0001
  norm       = 12.3994
  Prefactor  = 0.0001
  Normalizat = 0.924455
  Prefactor  = 0.857338
 **********
 **   18 **HESSE 
 **********

 FCN=   4426.397     FROM HESSE     STATUS=OK           557 CALLS     4252 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2614        .13395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.9625        .15834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.502        11.369        .11812E-03   -1.5030    
   4  norm          .10000E-03    5.4833        .15192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.8870        3.0945        .10078E-03   -1.5314    
   6  Prefactor     .10000E-03    3.3464        .11872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.633        27.731        .84156E-04   -1.4756    
   8  Prefactor     2.7437        6.1510        .11184E-02   -1.5377    
   9  norm          .89950        3.1934        .21409E-03   -1.5518    
  10  norm          .10000E-03    .26408        .62782E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     36.975        26.719        .65894E-04   -1.4491    
  12  Prefactor     25.896        18.360        .78812E-04   -1.4690    
  13  Prefactor     .10000E-03    12.513        .18584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.618        11.661        .10854E-03   -1.4970    
  16  norm          1.8354        5.8232        .27455E-03   -1.5437    
  17  norm          20.721        13.483        .87984E-04   -1.4797    
  18  Prefactor     2.9856        3.9150        .14191E-03   -1.5362    
  19  Prefactor     171.11        141.38        .15427E-03   -1.3084    
  20  Prefactor     .10000E-03    3.4901        .12043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    23.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .80185        3.8740        .24332E-03   -1.5529    
  23  Prefactor     .10000E-03    24.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .37765        .40250        .42865E-04   -1.5585    
  25  Prefactor     .10000E-03    2.1404        .94399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          12.399        12.066        .11376E-03   -1.5004    
  27  Prefactor     .10000E-03    .86751        .60469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .92445        .23316        .25184E-03   -.95606    
  29  Prefactor     .85734        .17619        .20915E-03   -.97648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6758e-10
Minuit parameter uncertainties:
  1  7.48435e-07
  2  7.14716e-07
  3  11.3711
  4  1.04511e-06
  5  3.09465
  6  5.61267e-06
  7  27.7467
  8  6.15237
  9  3.19403
  10  2.47586e-06
  11  26.728
  12  18.3644
  13  0.000260551
  14  7.94529e-07
  15  11.6625
  16  5.82496
  17  13.4848
  18  3.91529
  19  141.661
  20  1.12659e-06
  21  1.09446e-05
  22  3.52512
  23  1.42661e-05
  24  0.402502
  25  4.44955e-06
  26  12.068
  27  1.40997e-07
  28  0.233417
  29  0.176311
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  2.590e+01  1.836e+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.573e-01  1.763e-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.245e-01  2.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.23
Ra Dec: 125.800 40.708
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 7.54e-08 +/- 5.34e-08
Energy Flux (Fixed Index): 2.30e-05 +/- 1.63e-05

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

Saving results to:
/scratch/kocevski/425507/likelihoodResults_438912001_439171201_4FGL_J0823.1+4042_daily_bin770.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) = 4425.33572169
delta logL = 1.06153513702

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4425.29309331
delta logL = 1.10416351321

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2506       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8298       1.0000          .0000       10.000    
     3 'Normalizat'    .82612       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91191       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=   4425.293     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      262 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2314        26.934        .56160E-02    .68092E-03
   2  Index         3.8329        2.4752        .70964E-01    .22444E-03
   3  Normalizat    .82593        .81307E-01    .43950E-01    .19605E-04
   4  Prefactor     .91200        .62228E-01    .45157E-01    .11096E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.23138
  Index      = 3.83291
  Normalizat = 0.82593
  Prefactor  = 0.911995
 **********
 **   18 **HESSE 
 **********

 FCN=   4425.293     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      295 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2314        38.337        .56901E-04   -1.5348    
   2  Index         3.8329        3.1117        .29185E-02   -.23559    
   3  Normalizat    .82593        .23119        .26434E-03   -.99114    
   4  Prefactor     .91200        .18156        .20344E-03   -.95723    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.42168e-10
Minuit parameter uncertainties:
  1  22.278
  2  3.37668
  3  0.231465
  4  0.181678
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425507': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4425.29308965
delta logL = 1.10416717492

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  3.231e+00  2.228e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  3.833e+00  3.377e+00  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:  9.120e-01  1.817e-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:  8.259e-01  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.78
Ra Dec: 125.800 40.708
Photon Index (Free Index): 3.83 +/- 3.38
Photon Flux (Free Index): 1.44e-07 +/- 8.17e-08
Energy Flux (Free Index): 2.22e-05 +/- 1.44e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/425507/cmap_HighResolution_438912001_439171201_4FGL_J0823.1+4042_daily_bin770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', comment='SUCCESS', photon_flux='7.54e-08', energy_flux2='2.22e-05', photon_flux_error='5.34e-08', dlogl='1.10e+00', energy_flux='2.30e-05', photon_flux2='1.44e-07', job_status='DONE', time_completed='2021-08-29 18:12:13.721893', photon_index_error2='3.38', photon_index2='3.83', ts='3.23', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.81e-07', energy_flux_error2='1.44e-05', EG='0.92', time_epoch_completed='1630285933.72', return_code='0', job_id='425507', GAL2='0.91', EG2='0.83', return_code2='102', energy_flux_error='1.63e-05', photon_flux_error2='8.17e-08', ts2='5.78', photon_index='2.46' WHERE bin_id='770' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:12:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 425507: <4FGL_J0823.1+4042_daily_bin770> in cluster <slac> Done

Job <4FGL_J0823.1+4042_daily_bin770> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Aug 29 17:55:36 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:55:38 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:38 2021
Terminated at Sun Aug 29 18:12:14 2021
Results reported at Sun Aug 29 18:12:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin770 125.8 40.7077 438912001 439171201 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 :                                   749.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   996 sec.
    Turnaround time :                            998 sec.

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

