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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin366
RA = 125.8, Dec = 40.7077
tmin = 334195201, tmax = 334454401
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='423842', job_status='RUN', time_executed='2021-08-29 17:51:32.776205', time_epoch_executed='1630284692.78' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='366'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/423842

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/423842/ft1_4FGL_J0823.1+4042_daily_bin366.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/423842/ft2_4FGL_J0823.1+4042_daily_bin366.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/423842/ft1_4FGL_J0823.1+4042_daily_bin366.fits outfile=/scratch/kocevski/423842/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin366.fits ra=125.8 dec=40.7077 rad=12.0 tmin=334195201.0 tmax=334454401.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.50
user 3.69
sys 0.59

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/423842/ft1_filtered_4FGL_J0823.1+4042_daily_bin366.fits" evtable="EVENTS" scfile=/scratch/kocevski/423842/ft2_4FGL_J0823.1+4042_daily_bin366.fits sctable="SC_DATA" outfile=/scratch/kocevski/423842/ltcube_334195201_334454401_4FGL_J0823.1+4042_daily_bin366.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/423842/ft2_4FGL_J0823.1+4042_daily_bin366.fits
.....................!
real 12.24
user 11.39
sys 0.75

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/423842/ft1_filtered_4FGL_J0823.1+4042_daily_bin366.fits evtable="EVENTS" scfile=/scratch/kocevski/423842/ft2_4FGL_J0823.1+4042_daily_bin366.fits sctable="SC_DATA" expcube=/scratch/kocevski/423842/ltcube_334195201_334454401_4FGL_J0823.1+4042_daily_bin366.fits outfile=/scratch/kocevski/423842/expmap_334195201_334454401_4FGL_J0823.1+4042_daily_bin366.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/423842/ltcube_334195201_334454401_4FGL_J0823.1+4042_daily_bin366.fits
.....................!
real 192.15
user 185.36
sys 6.09

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/423842/ft1_filtered_4FGL_J0823.1+4042_daily_bin366.fits scfile=/scratch/kocevski/423842/ft2_4FGL_J0823.1+4042_daily_bin366.fits outfile=/scratch/kocevski/423842/cmap_334195201_334454401_4FGL_J0823.1+4042_daily_bin366.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.91
user 0.39
sys 0.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/423842/ft1_filtered_4FGL_J0823.1+4042_daily_bin366.fits scfile=/scratch/kocevski/423842/ft2_4FGL_J0823.1+4042_daily_bin366.fits outfile=/scratch/kocevski/423842/cmap_HighResolution_334195201_334454401_4FGL_J0823.1+4042_daily_bin366.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.93
user 0.39
sys 0.53

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18729E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8390       1.0000         .10000E-03   10000.    
     4 'norm      '    1.0222       1.0000         .10000E-03   10000.    
     5 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2424       1.0000         .10000E-03   10000.    
     9 'norm      '    10.162       1.0000         .10000E-03   10000.    
    10 'norm      '    .69765       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .43095E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0418       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    19.650       1.0000         .10000E-03   10000.    
    17 'norm      '    2.9443       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0822       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.2916       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.7459       1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.155       1.0000         .10000E-03   10000.    
    24 'norm      '    .55215       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.2817       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.4390       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .77617       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2343       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=   7266.525     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     3288 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.188       -.44533E-05** at limit **
   2  Prefactor     .10000E-03    7.1608        .29644E-07** at limit **
   3  Prefactor     2.8369        10.560       -.84304E-07    .79502E-04
   4  norm          .99286        14.522        .64031E-05    .45106E-03
   5  norm          .10000E-03    1.0675        .55128E-07** at limit **
   6  Prefactor     .10000E-03    4.8362        .15169E-06** at limit **
   7  Prefactor     .10000E-03    14.771        .56032E-06** at limit **
   8  Prefactor     3.2418        5.0955       -.53027E-06    .23568E-04
   9  norm          10.162        3.0290        .86947E-09    .21709E-04
  10  norm          .69778        .53379       -.47245E-07   -.32479E-03
  11  Prefactor     .10000E-03    90.735       -.19225E-05** at limit **
  12  Prefactor     .10001E-03    8.4159       -.15287E-05** at limit **
  13  Prefactor     2.0427        2.5291       -.37070E-06   -.24294E-03
  14  Prefactor     .10030E-03    50.283       -.12178E-04** at limit **
  15  Prefactor     .10000E-03    2.9353       -.42176E-08** at limit **
  16  norm          19.650        7.8757        .19804E-06    .22758E-03
  17  norm          2.9440        4.6592        .18194E-06    .26874E-03
  18  Prefactor     1.0820        2.5547       -.40167E-06    .29102E-03
  19  Prefactor     .10000E-03    32.935        .39392E-05** at limit **
  20  Prefactor     3.2907        5.8753       -.24139E-06    .14338E-03
  21  Prefactor     .10000E-03    19.004       -.11743E-05** at limit **
  22  Prefactor     3.7453        3.1229       -.69033E-08    .17728E-03
  23  Prefactor     20.151        20.894        .35839E-06    .87299E-04
  24  norm          .55213        .40191       -.10166E-07   -.29516E-03
  25  Prefactor     .10000E-03    1.6792        .12773E-06** at limit **
  26  norm          2.2766        17.568       -.63125E-06    .85408E-04
  27  Prefactor     5.4386        3.1957        .40379E-07    .10284E-03
  28  Normalizat    .77628        .18802       -.34452E-06    .30737E-03
  29  Prefactor     1.2342        .14561        .27090E-06    .50949E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.83693
  norm       = 0.992862
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.24183
  norm       = 10.1617
  norm       = 0.697784
  Prefactor  = 0.000100001
  Prefactor  = 0.000100014
  Prefactor  = 2.0427
  Prefactor  = 0.000100305
  Prefactor  = 0.0001
  norm       = 19.6496
  norm       = 2.944
  Prefactor  = 1.08202
  Prefactor  = 0.000100005
  Prefactor  = 3.29066
  Prefactor  = 0.0001
  Prefactor  = 3.74528
  Prefactor  = 20.1509
  norm       = 0.552127
  Prefactor  = 0.0001
  norm       = 2.27658
  Prefactor  = 5.43858
  Normalizat = 0.776284
  Prefactor  = 1.23419
 **********
 **   18 **HESSE 
 **********

 FCN=   7266.525     FROM HESSE     STATUS=OK           569 CALLS     3857 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.374        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.2178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.8369        10.548        .24134E-03   -1.5371    
   4  norm          .99286        21.063        .44222E-02   -1.5509    
   5  norm          .10000E-03    1.6978        .17090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.8863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.2418        5.0328        .21645E-03   -1.5348    
   9  norm          10.162        3.0286        .78823E-04   -1.5070    
  10  norm          .69778        .52293        .49886E-04   -1.5541    
  11  Prefactor     .10000E-03    92.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    34.747        .40375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.0427        2.4553        .13913E-03   -1.5422    
  14  Prefactor     .10030E-03    98.376        .57436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.9403        .14261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          19.650        7.8424        .90354E-04   -1.4821    
  17  norm          2.9440        4.6613        .22432E-03   -1.5365    
  18  Prefactor     1.0820        2.5479        .19372E-03   -1.5500    
  19  Prefactor     .10000E-03    33.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.2907        5.8672        .22317E-03   -1.5345    
  21  Prefactor     .10000E-03    19.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.7453        3.1124        .12764E-03   -1.5321    
  23  Prefactor     20.151        20.569        .89216E-04   -1.4810    
  24  norm          .55213        .38994        .43008E-04   -1.5559    
  25  Prefactor     .10000E-03    2.9180        .20559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.2766        16.911        .27181E-03   -1.5406    
  27  Prefactor     5.4386        3.1749        .10585E-03   -1.5242    
  28  Normalizat    .77628        .21043        .30632E-03   -1.0095    
  29  Prefactor     1.2342        .16584        .20826E-03   -.85285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.10475e-09
Minuit parameter uncertainties:
  1  0.000276616
  2  3.19896e-06
  3  10.5552
  4  9.14921
  5  1.35553e-05
  6  1.38124e-05
  7  7.5114e-05
  8  5.03344
  9  3.02862
  10  0.522937
  11  0.000533822
  12  0.00141234
  13  2.45544
  14  0.0109708
  15  2.15718e-06
  16  7.84285
  17  4.6619
  18  2.54812
  19  0.000782187
  20  5.86823
  21  0.000173643
  22  3.11249
  23  20.5762
  24  0.389939
  25  4.86306e-06
  26  12.4144
  27  3.17496
  28  0.210655
  29  0.165913
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.412e-03  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.234e+00  1.659e-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:  7.763e-01  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 125.800 40.708
Photon Flux Upper Limit: 7.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/423842/likelihoodResults_334195201_334454401_4FGL_J0823.1+4042_daily_bin366.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): 102
logL (Free Index) = 7266.52517015
delta logL = -0.000136193267281

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7266.52503425
delta logL = -2.87768671114e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13624E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5097       1.0000          .0000       10.000    
     3 'Normalizat'    .77633       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2342       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=   7266.525     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      233 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    2.3293        .90712E-01** at limit **
   2  Index         2.5815        2.6020        .50000       -.18593E-04
   3  Normalizat    .77628        .27828E-02    .69227E-01    .37976E-04
   4  Prefactor     1.2342        .23416E-02    .33869E-01    .98849E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100026
  Index      = 2.58153
  Normalizat = 0.776284
  Prefactor  = 1.23419
 **********
 **   18 **HESSE 
 **********

 FCN=   7266.525     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      268 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    7005.4        .39955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5815        7.9427        .50000       -.50487    
   3  Normalizat    .77628        .48237E-01    .30632E-03   -1.0095    
   4  Prefactor     1.2342        .40486E-01    .20826E-03   -.85285    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.53127e-07
Minuit parameter uncertainties:
  1  0.0220906
  2  42.388
  3  0.0482394
  4  0.040487
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/423842': 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) = 7266.52503349
delta logL = 4.69629412692e-07

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  2.209e-02  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.582e+00  4.239e+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.234e+00  4.049e-02  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:  7.763e-01  4.824e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 125.800 40.708

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/423842/cmap_HighResolution_334195201_334454401_4FGL_J0823.1+4042_daily_bin366.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.13e-03', job_status='DONE', photon_flux_upper_limit='7.90e-08', time_completed='2021-08-29 18:07:23.616864', job_id='423842', GAL2='1.23', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1630285643.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='4.70e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='366' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:07:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 423842: <4FGL_J0823.1+4042_daily_bin366> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin366 125.8 40.7077 334195201 334454401 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 :                                   952.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   997 sec.
    Turnaround time :                            999 sec.

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

