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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin232
RA = 125.8, Dec = 40.7077
tmin = 299462401, tmax = 299721601
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='423631', job_status='RUN', time_executed='2021-08-29 17:52:02.163915', time_epoch_executed='1630284722.16' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='232'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/423631

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/423631/ft1_4FGL_J0823.1+4042_daily_bin232.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/423631/ft2_4FGL_J0823.1+4042_daily_bin232.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/423631/ft1_4FGL_J0823.1+4042_daily_bin232.fits outfile=/scratch/kocevski/423631/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin232.fits ra=125.8 dec=40.7077 rad=12.0 tmin=299462401.0 tmax=299721601.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.44
user 3.00
sys 0.39

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/423631/ft2_4FGL_J0823.1+4042_daily_bin232.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/423631/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin232.fits evtable="EVENTS" outfile="/scratch/kocevski/423631/ft1_filtered_4FGL_J0823.1+4042_daily_bin232.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.32
sys 0.36

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/423631/ft1_filtered_4FGL_J0823.1+4042_daily_bin232.fits" evtable="EVENTS" scfile=/scratch/kocevski/423631/ft2_4FGL_J0823.1+4042_daily_bin232.fits sctable="SC_DATA" outfile=/scratch/kocevski/423631/ltcube_299462401_299721601_4FGL_J0823.1+4042_daily_bin232.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/423631/ft2_4FGL_J0823.1+4042_daily_bin232.fits
.....................!
real 11.98
user 11.02
sys 0.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/423631/ft1_filtered_4FGL_J0823.1+4042_daily_bin232.fits evtable="EVENTS" scfile=/scratch/kocevski/423631/ft2_4FGL_J0823.1+4042_daily_bin232.fits sctable="SC_DATA" expcube=/scratch/kocevski/423631/ltcube_299462401_299721601_4FGL_J0823.1+4042_daily_bin232.fits outfile=/scratch/kocevski/423631/expmap_299462401_299721601_4FGL_J0823.1+4042_daily_bin232.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/423631/ltcube_299462401_299721601_4FGL_J0823.1+4042_daily_bin232.fits
.....................!
real 191.92
user 185.87
sys 5.19

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/423631/ft1_filtered_4FGL_J0823.1+4042_daily_bin232.fits scfile=/scratch/kocevski/423631/ft2_4FGL_J0823.1+4042_daily_bin232.fits outfile=/scratch/kocevski/423631/cmap_299462401_299721601_4FGL_J0823.1+4042_daily_bin232.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.72
user 0.38
sys 0.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/423631/ft1_filtered_4FGL_J0823.1+4042_daily_bin232.fits scfile=/scratch/kocevski/423631/ft2_4FGL_J0823.1+4042_daily_bin232.fits outfile=/scratch/kocevski/423631/cmap_HighResolution_299462401_299721601_4FGL_J0823.1+4042_daily_bin232.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.84
user 0.37
sys 0.34

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.497       1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.6702       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.788       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.4392       1.0000         .10000E-03   10000.    
    10 'norm      '    .41422       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.082       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.9491       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.776       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12412E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .34187       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3934       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    32.384       1.0000         .10000E-03   10000.    
    24 'norm      '    1.0989       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10226E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.6657       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .84492       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0124       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=   6209.666     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     3199 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.251        .27950E-05** at limit **
   2  Prefactor     .10000E-03    9.6315       -.26800E-05** at limit **
   3  Prefactor     27.495        17.970        .43238E-08    .40642E-04
   4  norm          .10000E-03    7.8585        .19883E-06** at limit **
   5  norm          2.6701        2.4078       -.53778E-07   -.52822E-04
   6  Prefactor     .10000E-03    2.0917       -.25982E-08** at limit **
   7  Prefactor     10.788        22.823       -.14940E-05   -.22767E-03
   8  Prefactor     .10000E-03    1.5103       -.20438E-08** at limit **
   9  norm          4.4391        2.3830       -.76485E-08    .42593E-04
  10  norm          .41407        .32518       -.99094E-07    .15071E-03
  11  Prefactor     23.080        20.973       -.41429E-06    .19022E-04
  12  Prefactor     7.9498        8.1652       -.10883E-05    .12854E-03
  13  Prefactor     .10000E-03    1.4057       -.15630E-06** at limit **
  14  Prefactor     40.806        27.095        .15573E-04   -.69287E-04
  15  Prefactor     .10000E-03    4.9544       -.31831E-05** at limit **
  16  norm          .10000E-03    1.9493        .60664E-07** at limit **
  17  norm          .10000E-03    1.6634        .88267E-07** at limit **
  18  Prefactor     .34181        2.0092       -.27550E-05    .84196E-03
  19  Prefactor     .10000E-03    51.775        .72809E-05** at limit **
  20  Prefactor     1.3934        3.3912       -.92976E-06   -.60879E-03
  21  Prefactor     .10000E-03    15.672       -.30620E-06** at limit **
  22  Prefactor     .10000E-03    1.3480        .18197E-07** at limit **
  23  Prefactor     32.366        20.837       -.31283E-05    .21043E-03
  24  norm          1.0990        .49778        .74518E-07    .55678E-03
  25  Prefactor     .10000E-03    2.4881        .35377E-06** at limit **
  26  norm          .10000E-03    6.4530        .25896E-06** at limit **
  27  Prefactor     3.6646        3.0094       -.58202E-06   -.25508E-05
  28  Normalizat    .84518        .18037       -.42557E-06    .70416E-03
  29  Prefactor     1.0123        .14031       -.28880E-06    .61703E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.4954
  norm       = 0.0001
  norm       = 2.67014
  Prefactor  = 0.0001
  Prefactor  = 10.788
  Prefactor  = 0.0001
  norm       = 4.43913
  norm       = 0.414075
  Prefactor  = 23.0804
  Prefactor  = 7.94984
  Prefactor  = 0.0001
  Prefactor  = 40.8057
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.341806
  Prefactor  = 0.0001
  Prefactor  = 1.39337
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.3663
  norm       = 1.099
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 3.66456
  Normalizat = 0.845179
  Prefactor  = 1.0123
 **********
 **   18 **HESSE 
 **********

 FCN=   6209.666     FROM HESSE     STATUS=OK           547 CALLS     3746 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.7467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.495        17.964        .76399E-04   -1.4659    
   4  norm          .10000E-03    7.9494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.6701        2.4019        .11209E-03   -1.5381    
   6  Prefactor     .10000E-03    2.0932        .11128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.788        22.887        .60990E-03   -1.5051    
   8  Prefactor     .10000E-03    1.5200        .94533E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.4391        2.3817        .86650E-04   -1.5287    
  10  norm          .41407        .32582        .38556E-04   -1.5579    
  11  Prefactor     23.080        20.975        .83373E-04   -1.4747    
  12  Prefactor     7.9498        8.1551        .14221E-03   -1.5144    
  13  Prefactor     .10000E-03    1.4363        .91152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     40.806        27.077        .62774E-04   -1.4430    
  15  Prefactor     .10000E-03    32.709        .33354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.9593        .10742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.6654        .99253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .34181        3.8080        .20308E-02   -1.5591    
  19  Prefactor     .10000E-03    51.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.3934        3.3600        .22111E-03   -1.5472    
  21  Prefactor     .10000E-03    15.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.3634        .89174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     32.366        20.863        .70413E-04   -1.4570    
  24  norm          1.0990        .46534        .33701E-04   -1.5498    
  25  Prefactor     .10000E-03    4.0216        .22199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    6.4767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.6646        2.9967        .11730E-03   -1.5325    
  28  Normalizat    .84518        .20286        .27139E-03   -.98414    
  29  Prefactor     1.0123        .16008        .20764E-03   -.92321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7638e-09
Minuit parameter uncertainties:
  1  5.47727e-05
  2  7.45219e-05
  3  17.9679
  4  1.65076e-06
  5  2.40194
  6  1.53817e-07
  7  22.9055
  8  4.42721e-06
  9  2.38177
  10  0.325822
  11  20.9817
  12  8.15627
  13  1.60789e-05
  14  27.0854
  15  0.000163088
  16  6.60864e-06
  17  1.527e-06
  18  2.2816
  19  0.000180567
  20  3.36048
  21  4.54936e-05
  22  1.23384e-05
  23  20.8681
  24  0.465345
  25  9.62929e-05
  26  5.42642e-05
  27  2.99678
  28  0.20304
  29  0.160154
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  7.950e+00  8.156e+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

GAL_V02
   Spectrum: PowerLaw
630    Prefactor:  1.012e+00  1.602e-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.452e-01  2.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.77
Ra Dec: 125.800 40.708
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 2.31e-08 +/- 2.37e-08
Energy Flux (Fixed Index): 7.07e-06 +/- 7.25e-06

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

Saving results to:
/scratch/kocevski/423631/likelihoodResults_299462401_299721601_4FGL_J0823.1+4042_daily_bin232.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) = 6205.72106569
delta logL = 3.94518241637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6205.49247687
delta logL = 4.17377123553

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7185       1.0000         .10000E-03   10000.    
     2 'Index     '    .50646       1.0000          .0000       10.000    
     3 'Normalizat'    .85916       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0098       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=   6205.492     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      222 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7128        2.0408        .80122E-02   -.24380E-03
   2  Index         .50549        .39045        .24222       -.34778E-04
   3  Normalizat    .85914        .16521        .44378E-01    .40567E-04
   4  Prefactor     1.0098        .13795        .43360E-01   -.10056E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.71278
  Index      = 0.505492
  Normalizat = 0.859137
  Prefactor  = 1.00984
 **********
 **   18 **HESSE 
 **********

 FCN=   6205.492     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7128        4.1445        .99317E-04   -1.5446    
   2  Index         .50549        .72398        .11411E-01   -1.1173    
   3  Normalizat    .85914        .18746        .26925E-03   -.97911    
   4  Prefactor     1.0098        .15660        .20783E-03   -.92402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37274e-11
Minuit parameter uncertainties:
  1  4.14517
  2  0.737855
  3  0.187604
  4  0.156669
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/423631': 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) = 6205.49247604
delta logL = 4.17377206319

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.713e+00  4.145e+00  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  5.055e-01  7.379e-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.010e+00  1.567e-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.591e-01  1.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.11
Ra Dec: 125.800 40.708
Photon Index (Free Index): 0.51 +/- 0.74
Photon Flux (Free Index): 3.54e-09 +/- 3.64e-09
Energy Flux (Free Index): 1.21e-04 +/- 1.40e-04

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/423631/cmap_HighResolution_299462401_299721601_4FGL_J0823.1+4042_daily_bin232.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.99e-03', comment='SUCCESS', photon_flux='2.31e-08', energy_flux2='1.21e-04', photon_flux_error='2.37e-08', dlogl='4.17e+00', energy_flux='7.07e-06', photon_flux2='3.54e-09', job_status='DONE', time_completed='2021-08-29 18:05:52.615720', photon_index_error2='0.74', photon_index2='0.51', ts='2.77', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='9.02e-08', energy_flux_error2='1.40e-04', EG='0.85', time_epoch_completed='1630285552.62', return_code='0', job_id='423631', GAL2='1.01', EG2='0.86', return_code2='0', energy_flux_error='7.25e-06', photon_flux_error2='3.64e-09', ts2='11.11', photon_index='2.46' WHERE bin_id='232' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:05:52 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin232 125.8 40.7077 299462401 299721601 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 :                                   830.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            924 sec.

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

