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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin806
RA = 125.8, Dec = 40.7077
tmin = 448243201, tmax = 448502401
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='425559', job_status='RUN', time_executed='2021-08-29 17:56:35.829646', time_epoch_executed='1630284995.83' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='806'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425559

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425559/ft1_4FGL_J0823.1+4042_daily_bin806.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425559/ft2_4FGL_J0823.1+4042_daily_bin806.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425559/ft1_4FGL_J0823.1+4042_daily_bin806.fits outfile=/scratch/kocevski/425559/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin806.fits ra=125.8 dec=40.7077 rad=12.0 tmin=448243201.0 tmax=448502401.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.75
user 4.92
sys 0.46

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425559/ft1_filtered_4FGL_J0823.1+4042_daily_bin806.fits" evtable="EVENTS" scfile=/scratch/kocevski/425559/ft2_4FGL_J0823.1+4042_daily_bin806.fits sctable="SC_DATA" outfile=/scratch/kocevski/425559/ltcube_448243201_448502401_4FGL_J0823.1+4042_daily_bin806.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/425559/ft2_4FGL_J0823.1+4042_daily_bin806.fits
.....................!
real 12.33
user 11.38
sys 0.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425559/ft1_filtered_4FGL_J0823.1+4042_daily_bin806.fits evtable="EVENTS" scfile=/scratch/kocevski/425559/ft2_4FGL_J0823.1+4042_daily_bin806.fits sctable="SC_DATA" expcube=/scratch/kocevski/425559/ltcube_448243201_448502401_4FGL_J0823.1+4042_daily_bin806.fits outfile=/scratch/kocevski/425559/expmap_448243201_448502401_4FGL_J0823.1+4042_daily_bin806.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/425559/ltcube_448243201_448502401_4FGL_J0823.1+4042_daily_bin806.fits
.....................!
real 195.06
user 186.63
sys 6.33

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/425559/ft1_filtered_4FGL_J0823.1+4042_daily_bin806.fits scfile=/scratch/kocevski/425559/ft2_4FGL_J0823.1+4042_daily_bin806.fits outfile=/scratch/kocevski/425559/cmap_448243201_448502401_4FGL_J0823.1+4042_daily_bin806.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.39
sys 0.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425559/ft1_filtered_4FGL_J0823.1+4042_daily_bin806.fits scfile=/scratch/kocevski/425559/ft2_4FGL_J0823.1+4042_daily_bin806.fits outfile=/scratch/kocevski/425559/cmap_HighResolution_448243201_448502401_4FGL_J0823.1+4042_daily_bin806.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.76
user 0.39
sys 0.30

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .77412       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2180       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.203       1.0000         .10000E-03   10000.    
     4 'norm      '    5.6931       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4871       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.012       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.851       1.0000         .10000E-03   10000.    
     9 'norm      '    5.1586       1.0000         .10000E-03   10000.    
    10 'norm      '    .18269E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.281       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1207       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.177       1.0000         .10000E-03   10000.    
    16 'norm      '    12.286       1.0000         .10000E-03   10000.    
    17 'norm      '    1.3042       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.5388       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.9691       1.0000         .10000E-03   10000.    
    21 'Prefactor '    61.857       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .33802E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    8.1397       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .25686E-01   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .93673       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .75216       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5364.726     FROM MIGRAD    STATUS=CONVERGED     69 CALLS     3099 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77492        1.1613       -.91685E-06    .43609E-04
   2  Prefactor     2.2187        1.0329       -.10389E-06    .47822E-04
   3  Prefactor     25.203        1.0044       -.33624E-07    .48663E-03
   4  norm          5.6926        1.0103       -.38572E-07   -.95472E-04
   5  norm          .10000E-03    .75346       -.79808E-06** at limit **
   6  Prefactor     4.4880        1.1793        .59898E-06   -.23581E-03
   7  Prefactor     31.010        1.1342       -.19939E-06    .32731E-02
   8  Prefactor     11.851        4.0658        .23423E-05   -.25915E-02
   9  norm          5.1586        1.9499        .11750E-05    .21084E-02
  10  norm          .10000E-03    6.4135       -.10876E-05** at limit **
  11  Prefactor     37.280        1.0257       -.77913E-07    .12723E-02
  12  Prefactor     1.1186        1.6174       -.19009E-05    .64990E-03
  13  Prefactor     .10000E-03    1.6689        .40969E-06** at limit **
  14  Prefactor     .10000E-03    8.1319        .23164E-05** at limit **
  15  Prefactor     10.178        1.0444       -.19367E-06    .61162E-03
  16  norm          12.286        1.0116       -.54139E-07    .19535E-04
  17  norm          1.3047        1.2238        .85153E-06    .85152E-04
  18  Prefactor     4.5385        2.4460       -.92032E-06   -.68754E-04
  19  Prefactor     .10000E-03    28.817       -.15866E-05** at limit **
  20  Prefactor     3.9692        2.5651        .20557E-05    .35128E-02
  21  Prefactor     61.855        1.3138       -.22794E-06    .68676E-02
  22  Prefactor     .10000E-03    2.1260        .77438E-06** at limit **
  23  Prefactor     .10000E-03    .99896       -.23372E-06** at limit **
  24  norm          .10000E-03    .37786       -.24916E-06** at limit **
  25  Prefactor     .10000E-03    .94339        .17587E-06** at limit **
  26  norm          8.1364        1.0528        .21592E-06   -.75129E-03
  27  Prefactor     .26574E-01    .23387        .98314E-08   -.19971E-04
  28  Normalizat    .93688        .19539       -.24292E-06    .29130E-05
  29  Prefactor     .75202        .15786       -.14351E-05   -.20594E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.774917
  Prefactor  = 2.21868
  Prefactor  = 25.2026
  norm       = 5.6926
  norm       = 0.0001
  Prefactor  = 4.48803
  Prefactor  = 31.01
  Prefactor  = 11.8506
  norm       = 5.15861
  norm       = 0.0001
  Prefactor  = 37.2803
  Prefactor  = 1.11862
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1776
  norm       = 12.2857
  norm       = 1.30465
  Prefactor  = 4.5385
  Prefactor  = 0.0001
  Prefactor  = 3.96918
  Prefactor  = 61.8547
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.13642
  Prefactor  = 0.0265736
  Normalizat = 0.936883
  Prefactor  = 0.75202
 **********
 **   18 **HESSE 
 **********

 FCN=   5364.726     FROM HESSE     STATUS=OK           639 CALLS     3738 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77492        12.743        .12343E-01   -1.5532    
   2  Prefactor     2.2187        9.2237        .69035E-02   -1.5410    
   3  Prefactor     25.203        18.302        .19948E-02   -1.4703    
   4  norm          5.6926        11.396        .42087E-02   -1.5231    
   5  norm          .10000E-03    .75234        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.4880        6.4156        .47519E-02   -1.5284    
   7  Prefactor     31.010        38.954        .17987E-02   -1.4594    
   8  Prefactor     11.851        5.4006        .29091E-02   -1.5019    
   9  norm          5.1586        2.9268        .44251E-02   -1.5254    
  10  norm          .10000E-03    .29151        .21722E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     37.280        29.921        .16410E-02   -1.4486    
  12  Prefactor     1.1186        15.156        .11090E-01   -1.5496    
  13  Prefactor     .10000E-03    1.6073        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.2007        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.178        8.2899        .31400E-02   -1.5070    
  16  norm          12.286        6.5732        .28570E-02   -1.5007    
  17  norm          1.3047        4.7667        .96654E-02   -1.5480    
  18  Prefactor     4.5385        3.0606        .47241E-02   -1.5282    
  19  Prefactor     .10000E-03    29.370        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.9692        3.7690        .50614E-02   -1.5309    
  21  Prefactor     61.855        56.567        .12755E-02   -1.4133    
  22  Prefactor     .10000E-03    2.0509        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    40.321        .10669E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .17154        .15830E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .93138        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          8.1364        9.1774        .35132E-02   -1.5137    
  27  Prefactor     .26574E-01    1.1831        .48628E-01   -1.5675    
  28  Normalizat    .93688        .17972        .45369E-01   -.95176    
  29  Prefactor     .75202        .14001        .43091E-01   -1.0152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76363e-07
Minuit parameter uncertainties:
  1  6.28612
  2  9.04971
  3  18.306
  4  11.4006
  5  2.09949e-07
  6  6.41655
  7  38.9858
  8  5.40085
  9  2.92685
  10  1.8337e-06
  11  29.9335
  12  8.23704
  13  1.19547e-07
  14  2.82181e-05
  15  8.29084
  16  6.57361
  17  4.76812
  18  3.06071
  19  3.12478e-05
  20  3.76925
  21  56.6166
  22  2.5658e-06
  23  7.02927e-05
  24  1.69297e-06
  25  1.19446e-07
  26  9.17899
  27  0.353957
  28  0.179837
  29  0.140074
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.119e+00  8.237e+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:  7.520e-01  1.401e-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.369e-01  1.798e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/425559/likelihoodResults_448243201_448502401_4FGL_J0823.1+4042_daily_bin806.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) = 5364.70941094
delta logL = 0.0166455607305

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5364.70869903
delta logL = 0.0173574667233

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5364.709     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      264 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .95278        10.206        .30536E-03   -.93447E-05
   2  Index         2.9010        2.5105        .60847E-02    .28562E-04
   3  Normalizat    .93402        .19441        .24346E-03   -.53234E-05
   4  Prefactor     .75287        .15762        .21787E-03   -.37570E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.952783
  Index      = 2.90095
  Normalizat = 0.934023
  Prefactor  = 0.752872
 **********
 **   18 **HESSE 
 **********

 FCN=   5364.709     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .55E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .95278        8.3448        .12215E-04   -1.5513    
   2  Index         2.9010        2.2949        .12169E-02   -.43324    
   3  Normalizat    .93402        .19459        .97384E-05   -.95275    
   4  Prefactor     .75287        .15774        .87148E-05   -1.0149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.53608e-13
Minuit parameter uncertainties:
  1  5.64017
  2  2.40602
  3  0.194732
  4  0.15783
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425559': 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) = 5364.70869804
delta logL = 0.0173584558243

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  9.528e-01  5.640e+00  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.901e+00  2.406e+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:  7.529e-01  1.578e-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.340e-01  1.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 125.800 40.708

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/425559/cmap_HighResolution_448243201_448502401_4FGL_J0823.1+4042_daily_bin806.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.68e-03', job_status='DONE', photon_flux_upper_limit='7.32e-08', time_completed='2021-08-29 18:09:57.906970', job_id='425559', GAL2='0.75', fit_tolerance='1e-08', EG2='0.93', EG='0.94', time_epoch_completed='1630285797.91', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.74e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='806' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:09:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 425559: <4FGL_J0823.1+4042_daily_bin806> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin806 125.8 40.7077 448243201 448502401 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 :                                   796.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            856 sec.

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

