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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin462
RA = 125.8, Dec = 40.7077
tmin = 359078401, tmax = 359337601
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='423959', job_status='RUN', time_executed='2021-08-29 17:52:11.680167', time_epoch_executed='1630284731.68' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='462'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/423959

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/423959/ft1_4FGL_J0823.1+4042_daily_bin462.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/423959/ft2_4FGL_J0823.1+4042_daily_bin462.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/423959/ft1_4FGL_J0823.1+4042_daily_bin462.fits outfile=/scratch/kocevski/423959/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin462.fits ra=125.8 dec=40.7077 rad=12.0 tmin=359078401.0 tmax=359337601.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 4.26
user 3.52
sys 0.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/423959/ft2_4FGL_J0823.1+4042_daily_bin462.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/423959/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin462.fits evtable="EVENTS" outfile="/scratch/kocevski/423959/ft1_filtered_4FGL_J0823.1+4042_daily_bin462.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.83
user 0.31
sys 0.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/423959/ft1_filtered_4FGL_J0823.1+4042_daily_bin462.fits" evtable="EVENTS" scfile=/scratch/kocevski/423959/ft2_4FGL_J0823.1+4042_daily_bin462.fits sctable="SC_DATA" outfile=/scratch/kocevski/423959/ltcube_359078401_359337601_4FGL_J0823.1+4042_daily_bin462.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/423959/ft2_4FGL_J0823.1+4042_daily_bin462.fits
.....................!
real 12.06
user 11.35
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/423959/ft1_filtered_4FGL_J0823.1+4042_daily_bin462.fits evtable="EVENTS" scfile=/scratch/kocevski/423959/ft2_4FGL_J0823.1+4042_daily_bin462.fits sctable="SC_DATA" expcube=/scratch/kocevski/423959/ltcube_359078401_359337601_4FGL_J0823.1+4042_daily_bin462.fits outfile=/scratch/kocevski/423959/expmap_359078401_359337601_4FGL_J0823.1+4042_daily_bin462.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/423959/ltcube_359078401_359337601_4FGL_J0823.1+4042_daily_bin462.fits
.....................!
real 192.23
user 186.38
sys 5.00

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/423959/ft1_filtered_4FGL_J0823.1+4042_daily_bin462.fits scfile=/scratch/kocevski/423959/ft2_4FGL_J0823.1+4042_daily_bin462.fits outfile=/scratch/kocevski/423959/cmap_359078401_359337601_4FGL_J0823.1+4042_daily_bin462.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.82
user 0.37
sys 0.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/423959/ft1_filtered_4FGL_J0823.1+4042_daily_bin462.fits scfile=/scratch/kocevski/423959/ft2_4FGL_J0823.1+4042_daily_bin462.fits outfile=/scratch/kocevski/423959/cmap_HighResolution_359078401_359337601_4FGL_J0823.1+4042_daily_bin462.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.79
user 0.39
sys 0.39

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6750       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8509       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .68671       1.0000         .10000E-03   10000.    
    10 'norm      '    .10878E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13134E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .53690       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7186       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.558       1.0000         .10000E-03   10000.    
    17 'norm      '    49.789       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.5042       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.9075       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.0902       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.3166       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .21293       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.3332       1.0000         .10000E-03   10000.    
    26 'norm      '    6.9298       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10654E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .78242       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2345       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=   7039.143     FROM MIGRAD    STATUS=CONVERGED    742 CALLS     3244 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.4132       -.33785E-06** at limit **
   2  Prefactor     .10000E-03    16.203        .81989E-06** at limit **
   3  Prefactor     1.6738        8.4416        .11456E-05   -.19075E-04
   4  norm          .10000E-03    8.2849        .69619E-06** at limit **
   5  norm          .10000E-03    .91288        .46472E-07** at limit **
   6  Prefactor     4.8515        6.1926        .34213E-05   -.55821E-04
   7  Prefactor     .10000E-03    23.669       -.13956E-05** at limit **
   8  Prefactor     .10000E-03    3.0180       -.14030E-06** at limit **
   9  norm          .68658        1.8727        .88110E-06    .20191E-04
  10  norm          .10000E-03    .25442       -.48507E-07** at limit **
  11  Prefactor     .10000E-03    5.8828        .17195E-07** at limit **
  12  Prefactor     .10000E-03    22.695       -.21077E-05** at limit **
  13  Prefactor     .53202        1.9790        .37977E-06   -.12819E-04
  14  Prefactor     3.6641        31.169       -.17723E-05   -.41621E-04
  15  Prefactor     .10000E-03    2.8683       -.92707E-07** at limit **
  16  norm          10.557        7.2869        .79573E-07   -.21850E-04
  17  norm          49.788        12.016        .83785E-08   -.30131E-04
  18  Prefactor     4.5037        3.0473        .43239E-07   -.83260E-04
  19  Prefactor     .10000E-03    33.295        .22736E-05** at limit **
  20  Prefactor     2.9073        4.7247        .40202E-06   -.23645E-04
  21  Prefactor     5.0296        94.367       -.10932E-04   -.86904E-04
  22  Prefactor     9.3190        4.4080        .71713E-07   -.24962E-03
  23  Prefactor     .10000E-03    15.888       -.95399E-06** at limit **
  24  norm          .21310        .33309       -.27526E-07    .77554E-04
  25  Prefactor     1.3323        3.1429        .63852E-06   -.62632E-04
  26  norm          6.9377        10.170        .36452E-06   -.31961E-04
  27  Prefactor     .10000E-03    1.5300        .43553E-06** at limit **
  28  Normalizat    .78254        .18920       -.67621E-06   -.92470E-04
  29  Prefactor     1.2345        .14558       -.58484E-06   -.81315E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.6738
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.85154
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.686576
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.532024
  Prefactor  = 3.66407
  Prefactor  = 0.0001
  norm       = 10.557
  norm       = 49.7876
  Prefactor  = 4.5037
  Prefactor  = 0.000100001
  Prefactor  = 2.90729
  Prefactor  = 5.02965
  Prefactor  = 9.31904
  Prefactor  = 0.0001
  norm       = 0.213098
  Prefactor  = 1.33225
  norm       = 6.93774
  Prefactor  = 0.0001
  Normalizat = 0.782539
  Prefactor  = 1.23448
 **********
 **   18 **HESSE 
 **********

 FCN=   7039.143     FROM HESSE     STATUS=OK           561 CALLS     3805 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.4809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6738        8.3593        .32562E-03   -1.5449    
   4  norm          .10000E-03    8.3975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .92209        .78263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.8515        6.2411        .91322E-03   -1.5267    
   7  Prefactor     .10000E-03    23.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.0682        .14210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .68658        1.8521        .18401E-03   -1.5542    
  10  norm          .10000E-03    2.7371        .80483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.8844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.047        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .53202        2.9836        .20809E-02   -1.5562    
  14  Prefactor     3.6641        30.839        .20941E-03   -1.5325    
  15  Prefactor     .10000E-03    2.8737        .13873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.557        7.2794        .12331E-03   -1.5058    
  17  norm          49.788        12.018        .56833E-04   -1.4296    
  18  Prefactor     4.5037        3.0373        .11265E-03   -1.5283    
  19  Prefactor     .10000E-03    33.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.9073        4.7126        .22546E-03   -1.5367    
  21  Prefactor     5.0296        100.68        .17821E-03   -1.5259    
  22  Prefactor     9.3190        4.3337        .10771E-03   -1.5097    
  23  Prefactor     .10000E-03    15.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .21310        .28834        .51268E-03   -1.5616    
  25  Prefactor     1.3323        3.0972        .18785E-03   -1.5477    
  26  norm          6.9377        10.112        .15240E-03   -1.5181    
  27  Prefactor     .10000E-03    3.2349        .19545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .78254        .21289        .31096E-03   -1.0072    
  29  Prefactor     1.2345        .16518        .20862E-03   -.85277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72455e-08
Minuit parameter uncertainties:
  1  3.24201e-05
  2  3.98373e-05
  3  7.48255
  4  3.94204e-05
  5  4.59183e-07
  6  6.24193
  7  0.000216353
  8  9.644e-06
  9  1.85223
  10  5.79517e-05
  11  1.50398e-07
  12  0.000134673
  13  2.51977
  14  21.2746
  15  5.06938e-06
  16  7.27997
  17  12.0189
  18  3.03738
  19  0.00033022
  20  4.71321
  21  45.0935
  22  4.33384
  23  0.000128391
  24  0.288337
  25  3.09754
  26  10.1142
  27  7.58465e-05
  28  0.213121
  29  0.165247
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.347e-04  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.652e-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.825e-01  2.131e-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: 8.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/423959/likelihoodResults_359078401_359337601_4FGL_J0823.1+4042_daily_bin462.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) = 7039.14348918
delta logL = -0.000206972113119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7039.14328225
delta logL = -4.18922354584e-08

Fit tolerance = 1e-08

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

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

 FCN=   7038.949     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      272 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11940        3.1915        .90712E-02    .31430E-02
   2  Index         4.5768        2.8156        .14522        .13297E-03
   3  Normalizat    .75027        .28298E-01    .71670E-01    .48911E-03
   4  Prefactor     1.2488        .23397E-01    .33865E-01    .63120E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.119397
  Index      = 4.57676
  Normalizat = 0.750273
  Prefactor  = 1.24881
 **********
 **   18 **HESSE 
 **********

 FCN=   7038.949     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      305 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11940        16.707        .48807E-03   -1.5639    
   2  Index         4.5768        6.8633        .82047E-02   -.84748E-01
   3  Normalizat    .75027        .12364        .31718E-03   -1.0194    
   4  Prefactor     1.2488        .10139        .20760E-03   -.84842    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.01972e-08
Minuit parameter uncertainties:
  1  2.82438
  2  10.3516
  3  0.123689
  4  0.10141
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/423959': 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) = 7038.94856881
delta logL = 0.194713395796

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.194e-01  2.824e+00  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  4.577e+00  1.035e+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.249e+00  1.014e-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.503e-01  1.237e-01  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/423959/cmap_HighResolution_359078401_359337601_4FGL_J0823.1+4042_daily_bin462.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.34e-03', job_status='DONE', photon_flux_upper_limit='8.18e-08', time_completed='2021-08-29 18:07:24.170927', job_id='423959', GAL2='1.25', fit_tolerance='1e-08', EG2='0.75', EG='0.78', time_epoch_completed='1630285644.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='1.95e-01', ts2='0.41', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='462' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:07:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 423959: <4FGL_J0823.1+4042_daily_bin462> in cluster <slac> Done

Job <4FGL_J0823.1+4042_daily_bin462> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 17:50:57 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:50:58 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:58 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_bin462 125.8 40.7077 359078401 359337601 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 :                                   911.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             348.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            987 sec.

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

