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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin1403
RA = 125.8, Dec = 40.7077
tmin = 602985601, tmax = 603244801
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='430515', job_status='RUN', time_executed='2021-08-29 18:14:49.887310', time_epoch_executed='1630286089.89' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430515

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430515/ft1_4FGL_J0823.1+4042_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430515/ft2_4FGL_J0823.1+4042_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430515/ft1_4FGL_J0823.1+4042_daily_bin1403.fits outfile=/scratch/kocevski/430515/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin1403.fits ra=125.8 dec=40.7077 rad=12.0 tmin=602985601.0 tmax=603244801.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 2.62
user 2.11
sys 0.41

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/430515/ft2_4FGL_J0823.1+4042_daily_bin1403.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/430515/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin1403.fits evtable="EVENTS" outfile="/scratch/kocevski/430515/ft1_filtered_4FGL_J0823.1+4042_daily_bin1403.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.66
user 0.25
sys 0.37

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/430515/ft1_filtered_4FGL_J0823.1+4042_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/430515/ft2_4FGL_J0823.1+4042_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/430515/ltcube_602985601_603244801_4FGL_J0823.1+4042_daily_bin1403.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/430515/ft2_4FGL_J0823.1+4042_daily_bin1403.fits
.....................!
real 9.68
user 9.13
sys 0.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430515/ft1_filtered_4FGL_J0823.1+4042_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/430515/ft2_4FGL_J0823.1+4042_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/430515/ltcube_602985601_603244801_4FGL_J0823.1+4042_daily_bin1403.fits outfile=/scratch/kocevski/430515/expmap_602985601_603244801_4FGL_J0823.1+4042_daily_bin1403.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/430515/ltcube_602985601_603244801_4FGL_J0823.1+4042_daily_bin1403.fits
.....................!
real 146.54
user 141.72
sys 4.46

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/430515/ft1_filtered_4FGL_J0823.1+4042_daily_bin1403.fits scfile=/scratch/kocevski/430515/ft2_4FGL_J0823.1+4042_daily_bin1403.fits outfile=/scratch/kocevski/430515/cmap_602985601_603244801_4FGL_J0823.1+4042_daily_bin1403.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.99
user 0.32
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430515/ft1_filtered_4FGL_J0823.1+4042_daily_bin1403.fits scfile=/scratch/kocevski/430515/ft2_4FGL_J0823.1+4042_daily_bin1403.fits outfile=/scratch/kocevski/430515/cmap_HighResolution_602985601_603244801_4FGL_J0823.1+4042_daily_bin1403.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.98
user 0.31
sys 0.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.608       1.0000         .10000E-03   10000.    
     2 'Prefactor '    50.540       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.315       1.0000         .10000E-03   10000.    
     4 'norm      '    23.562       1.0000         .10000E-03   10000.    
     5 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    75.290       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .83007       1.0000         .10000E-03   10000.    
    11 'Prefactor '    169.99       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10747E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    23.747       1.0000         .10000E-03   10000.    
    17 'norm      '    .10370E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .83012E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .39198E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12519E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .19893       1.0000         .10000E-03   10000.    
    24 'norm      '    .10373E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .18166       1.0000         .10000E-03   10000.    
    26 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    27 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10032E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96467       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=   1073.038     FROM MIGRAD    STATUS=CONVERGED    755 CALLS     5691 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.615        31.974       -.28397E-06   -.12874E-03
   2  Prefactor     50.505        28.677       -.20394E-06   -.61074E-04
   3  Prefactor     20.317        38.136       -.45090E-06   -.53146E-04
   4  norm          23.570        37.568       -.25759E-06   -.77047E-04
   5  norm          .10000E-03    2.7515       -.23643E-06** at limit **
   6  Prefactor     .10000E-03    21.469        .49451E-06** at limit **
   7  Prefactor     75.425        142.51       -.13216E-05   -.45806E-05
   8  Prefactor     .10000E-03    4.3641        .14586E-07** at limit **
   9  norm          .10000E-03    1.3153       -.29157E-07** at limit **
  10  norm          .82955        1.3231       -.10775E-08   -.95399E-04
  11  Prefactor     170.00        157.22       -.11714E-06   -.12164E-04
  12  Prefactor     .10000E-03    21.904       -.11534E-07** at limit **
  13  Prefactor     .10000E-03    10.620       -.63879E-07** at limit **
  14  Prefactor     .10000E-03    57.070       -.86767E-08** at limit **
  15  Prefactor     .10000E-03    19.444        .56765E-08** at limit **
  16  norm          23.699        30.286       -.13367E-05    .21648E-03
  17  norm          .10000E-03    33.343        .57566E-06** at limit **
  18  Prefactor     .10000E-03    24.426        .36147E-06** at limit **
  19  Prefactor     .10000E-03    748.64        .39420E-06** at limit **
  20  Prefactor    10000.0        9641.5        .41598E-06** at limit **
  21  Prefactor     .10000E-03    6250.0        .42846E-06** at limit **
  22  Prefactor     .10000E-03    164.84        .19295E-07** at limit **
  23  Prefactor     .10000E-03    9201.7       -.15653E-05** at limit **
  24  norm          .10000E-03    48.882        .17518E-06** at limit **
  25  Prefactor     .10004E-03    8556.3        .58987E-05** at limit **
  26  norm         10000.0        6711.4       -.85788E-08** at limit **
  27  Prefactor    10000.0        1574.8       -.13581E-06** at limit **
  28  Normalizat    .10000E-01    .38338        .13456E-04** at limit **
  29  Prefactor     .96471        .19345       -.17270E-05   -.11450E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.6151
  Prefactor  = 50.505
  Prefactor  = 20.3171
  norm       = 23.5701
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 75.425
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.829552
  Prefactor  = 169.998
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.6988
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.000100043
  norm       = 10000
  Prefactor  = 10000
  Normalizat = 0.01
  Prefactor  = 0.964711
 **********
 **   18 **HESSE 
 **********

 FCN=   1073.038     FROM HESSE     STATUS=OK           531 CALLS     6222 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.615        32.379        .79161E-04   -1.4695    
   2  Prefactor     50.505        28.766        .56411E-04   -1.4285    
   3  Prefactor     20.317        38.250        .88863E-04   -1.4806    
   4  norm          23.570        37.794        .82521E-04   -1.4737    
   5  norm          .10000E-03    2.7314        .52714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.457        .14789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     75.425        142.51        .46275E-04   -1.3969    
   8  Prefactor     .10000E-03    4.3653        .66844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.3155        .36690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .82955        1.2795        .46002E-03   -1.5526    
  11  Prefactor     170.00        157.31        .30944E-04   -1.3093    
  12  Prefactor     .10000E-03    21.909        .14980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.742        .10427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    57.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.445        .14114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          23.699        29.627        .82199E-04   -1.4734    
  17  norm          .10000E-03    33.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.393        .15807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    748.50        .18413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        9641.4        .18151E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6249.6        .18434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    164.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9199.9        .19946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    48.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10004E-03    8555.3        .19787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm         10000.0        6711.5        .21373E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor    10000.0        1574.6        .19671E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .10000E-01    .73449        .11799E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .96471        .20294        .17304E-03   -.93915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62253e-10
Minuit parameter uncertainties:
  1  32.401
  2  28.7737
  3  38.2957
  4  37.8324
  5  3.59131e-05
  6  0.000102973
  7  143.166
  8  7.76123e-07
  9  2.82758e-06
  10  1.2795
  11  157.696
  12  5.97515e-06
  13  1.50408e-05
  14  8.64376e-06
  15  1.53385e-06
  16  29.6457
  17  0.000174932
  18  9.63448e-05
  19  0.000795189
  20  0.00507702
  21  0.00227821
  22  7.34085e-06
  23  0.0157221
  24  5.78509e-05
  25  0.0415489
  26  0.000321618
  27  0.00120307
  28  4.93471e-06
  29  0.203105
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  5.975e-06  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:  9.647e-01  2.031e-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:  1.000e-02  4.935e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/430515/likelihoodResults_602985601_603244801_4FGL_J0823.1+4042_daily_bin1403.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) = 1073.03820328
delta logL = -0.000220534207301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1073.03798752
delta logL = -4.77093703921e-06

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 'Index     '    2.9239       1.0000          .0000       10.000    
     3 'Normalizat'    .10005E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96471       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=   1073.038     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      286 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10497E-03    18.669        .11868E-01** at limit **
   2  Index         2.8132        8.5934        .50000        .18195E-04
   3  Normalizat    .10000E-01    .18508E-02    .11805E-01** at limit **
   4  Prefactor     .96471        .79273E-02    .17304E-03    .69315E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104968
  Index      = 2.81319
  Normalizat = 0.01
  Prefactor  = 0.964712
 **********
 **   18 **HESSE 
 **********

 FCN=   1073.038     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      315 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10497E-03    190.28        .12460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8132        6.4038        .50000       -.45266    
   3  Normalizat    .10000E-01    .19462E-01    .23611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .96471        .25659E-01    .69215E-05   -.93915    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.07378e-08
Minuit parameter uncertainties:
  1  0.0616887
  2  513.351
  3  1.26409e-07
  4  0.0256597
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430515': 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) = 1073.03798393
delta logL = -1.17629451779e-06

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.050e-04  6.169e-02  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.813e+00  5.134e+02  0.000e+00  1.000e+01 (-1.000e+00)
304        Scale:  1.174e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
630    Prefactor:  9.647e-01  2.566e-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:  1.000e-02  1.264e-07  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/430515/cmap_HighResolution_602985601_603244801_4FGL_J0823.1+4042_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.51e-02', job_status='DONE', photon_flux_upper_limit='3.24e-07', time_completed='2021-08-29 18:20:55.320205', job_id='430515', GAL2='0.96', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630286455.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='-1.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1403' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:20:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 430515: <4FGL_J0823.1+4042_daily_bin1403> in cluster <slac> Done

Job <4FGL_J0823.1+4042_daily_bin1403> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 18:10:36 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 18:10:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 18:10:37 2021
Terminated at Sun Aug 29 18:20:56 2021
Results reported at Sun Aug 29 18:20:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin1403 125.8 40.7077 602985601 603244801 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 :                                   356.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             248.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   618 sec.
    Turnaround time :                            620 sec.

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

