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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin975
RA = 125.8, Dec = 40.7077
tmin = 492048001, tmax = 492307201
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='427188', job_status='RUN', time_executed='2021-08-29 18:03:23.651707', time_epoch_executed='1630285403.65' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='975'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/427188

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/427188/ft1_4FGL_J0823.1+4042_daily_bin975.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/427188/ft2_4FGL_J0823.1+4042_daily_bin975.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/427188/ft1_4FGL_J0823.1+4042_daily_bin975.fits outfile=/scratch/kocevski/427188/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin975.fits ra=125.8 dec=40.7077 rad=12.0 tmin=492048001.0 tmax=492307201.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 7.82
user 3.47
sys 4.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/427188/ft1_filtered_4FGL_J0823.1+4042_daily_bin975.fits" evtable="EVENTS" scfile=/scratch/kocevski/427188/ft2_4FGL_J0823.1+4042_daily_bin975.fits sctable="SC_DATA" outfile=/scratch/kocevski/427188/ltcube_492048001_492307201_4FGL_J0823.1+4042_daily_bin975.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/427188/ft2_4FGL_J0823.1+4042_daily_bin975.fits
.....................!
real 16.50
user 11.58
sys 4.77

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/427188/ft1_filtered_4FGL_J0823.1+4042_daily_bin975.fits evtable="EVENTS" scfile=/scratch/kocevski/427188/ft2_4FGL_J0823.1+4042_daily_bin975.fits sctable="SC_DATA" expcube=/scratch/kocevski/427188/ltcube_492048001_492307201_4FGL_J0823.1+4042_daily_bin975.fits outfile=/scratch/kocevski/427188/expmap_492048001_492307201_4FGL_J0823.1+4042_daily_bin975.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/427188/ltcube_492048001_492307201_4FGL_J0823.1+4042_daily_bin975.fits
.....................!
real 198.10
user 185.84
sys 10.37

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/427188/ft1_filtered_4FGL_J0823.1+4042_daily_bin975.fits scfile=/scratch/kocevski/427188/ft2_4FGL_J0823.1+4042_daily_bin975.fits outfile=/scratch/kocevski/427188/cmap_492048001_492307201_4FGL_J0823.1+4042_daily_bin975.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 4.46
user 0.38
sys 4.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/427188/ft1_filtered_4FGL_J0823.1+4042_daily_bin975.fits scfile=/scratch/kocevski/427188/ft2_4FGL_J0823.1+4042_daily_bin975.fits outfile=/scratch/kocevski/427188/cmap_HighResolution_492048001_492307201_4FGL_J0823.1+4042_daily_bin975.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 4.35
user 0.38
sys 3.94

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/427188/ft1_filtered_4FGL_J0823.1+4042_daily_bin975.fits', '/scratch/kocevski/427188/ft2_4FGL_J0823.1+4042_daily_bin975.fits', expMap='/scratch/kocevski/427188/expmap_492048001_492307201_4FGL_J0823.1+4042_daily_bin975.fits', expCube='/scratch/kocevski/427188/ltcube_492048001_492307201_4FGL_J0823.1+4042_daily_bin975.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/427188/Model_4FGL_J0823.1+4042_daily_bin975.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/427188/ft1_filtered_4FGL_J0823.1+4042_daily_bin975.fits
Spacecraft file(s): /scratch/kocevski/427188/ft2_4FGL_J0823.1+4042_daily_bin975.fits
Exposure map: /scratch/kocevski/427188/expmap_492048001_492307201_4FGL_J0823.1+4042_daily_bin975.fits
Exposure cube: /scratch/kocevski/427188/ltcube_492048001_492307201_4FGL_J0823.1+4042_daily_bin975.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/427188/Model_4FGL_J0823.1+4042_daily_bin975.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 833.777819205

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 832.96299256

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .59756E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .33166E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .52137       1.0000         .10000E-03   10000.    
     4 'norm      '    .32683       1.0000         .10000E-03   10000.    
     5 'norm      '    .73443E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21054E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .83269       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7141       1.0000         .10000E-03   10000.    
     9 'norm      '    2.0440       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .36324E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .41327E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .26196       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .60009E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    6.0040       1.0000         .10000E-03   10000.    
    17 'norm      '    6.3329       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .29049E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.1636       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.0121       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1057       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13347E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12316       1.0000         .10000E-03   10000.    
    24 'norm      '    .12124E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .72311E-01   1.0000         .10000E-03   10000.    
    26 'norm      '    .46552E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .19983E-02   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .67455       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0167       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   832.9501     FROM MIGRAD    STATUS=CONVERGED    153 CALLS      423 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10016E-03    68.010        .93176E-02** at limit **
   2  Prefactor     .10463E-03    321.87        .91876E-02** at limit **
   3  Prefactor     .10160E-03    253.60        .11358E-01** at limit **
   4  norm          .10039E-03    63.279        .10542E-01** at limit **
   5  norm          .10004E-03    43.790        .93838E-02** at limit **
   6  Prefactor     .10001E-03    30.625        .90712E-02** at limit **
   7  Prefactor     .10080E-03    194.55        .12561E-01** at limit **
   8  Prefactor     6.6994        20.191        .38714E-02    .16313E-01
   9  norm          2.0440        1.0336         .0000         .0000    
  10  norm          .10000E-03    .20571       -.81981E-07** at limit **
  11  Prefactor     .10018E-03    .21174       -.11469E-04** at limit **
  12  Prefactor     .10000E-03    .23652        .66906E-05** at limit **
  13  Prefactor     .10000E-03    .20571       -.11050E-05** at limit **
  14  Prefactor     .10119E-03    .26301        .56379E-04** at limit **
  15  Prefactor     .10075E-03    .21710        .19019E-04** at limit **
  16  norm          6.0040        1.0035         .0000         .0000    
  17  norm          6.3329        1.0031         .0000         .0000    
  18  Prefactor     .10440E-03    .21010       -.44481E-06** at limit **
  19  Prefactor     4.1636        1.0074         .0000         .0000    
  20  Prefactor     5.9771        1.0006       -.59507E-06   -.92411E-04
  21  Prefactor     .10063E-03    .31705        .66201E-04** at limit **
  22  Prefactor     .10000E-03    .26420        .12354E-05** at limit **
  23  Prefactor     .10003E-03    .23141       -.34369E-04** at limit **
  24  norm          .10010E-03    .20628        .28840E-04** at limit **
  25  Prefactor     .10001E-03    .21988       -.10147E-03** at limit **
  26  norm          .10044E-03    .21405        .46485E-05** at limit **
  27  Prefactor     .10000E-03    .25577       -.17169E-05** at limit **
  28  Normalizat    .67501        1.0143        .34330E-05   -.64598E-04
  29  Prefactor     1.0180        1.2463       -.69505E-06   -.10529E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100156
  Prefactor  = 0.000104634
  Prefactor  = 0.000101596
  norm       = 0.000100387
  norm       = 0.000100039
  Prefactor  = 0.000100006
  Prefactor  = 0.000100799
  Prefactor  = 6.69942
  norm       = 2.04405
  norm       = 0.0001
  Prefactor  = 0.000100181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101186
  Prefactor  = 0.000100748
  norm       = 6.00399
  norm       = 6.33292
  Prefactor  = 0.000104397
  Prefactor  = 4.1636
  Prefactor  = 5.9771
  Prefactor  = 0.000100629
  Prefactor  = 0.0001
  Prefactor  = 0.000100026
  norm       = 0.000100102
  Prefactor  = 0.000100006
  norm       = 0.000100441
  Prefactor  = 0.0001
  Normalizat = 0.675008
  Prefactor  = 1.018
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   832.9501     FROM HESSE     STATUS=FAILED        25 CALLS      448 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10016E-03    68.010        .93176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10463E-03    321.87        .91876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10160E-03    253.60        .11358E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10039E-03    63.279        .10542E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10004E-03    43.790        .93838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    30.625        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10080E-03    194.55        .12561E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.6994        20.191        .38714E-02   -1.5190    
   9  norm          568.28        566.10         .0000       -1.5422    
  10  norm          .10000E-03    .20571       -.81981E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10018E-03    .21174       -.11469E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .23652        .66906E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .20571       -.11050E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10119E-03    .26301        .56379E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10075E-03    .21710        .19019E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.0040        1.0035         .0000       -1.5218    
  17  norm          6.3329        1.0031         .0000       -1.5205    
  18  Prefactor     .10440E-03    .21010       -.44481E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.1636        1.0074         .0000       -1.5300    
  20  Prefactor     5.9771        1.0006       -.59507E-06   -1.5219    
  21  Prefactor     .10063E-03    .31705        .66201E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .26420        .12354E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10003E-03    .23141       -.34369E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10010E-03    .20628        .28840E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    .21988       -.10147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10044E-03    .21405        .46485E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    .25577       -.17169E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .67501        1.0143        .34330E-05   -1.0489    
  29  Prefactor     1.0180        1.2463       -.69505E-06   -.92132    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.67684e-10
Minuit parameter uncertainties:
  1  0.0065139
  2  0.0776607
  3  0.0404076
  4  0.00991035
  5  0.00262355
  6  0.00083329
  7  0.0250202
  8  20.2111
  9  1.03358
  10  5.1298e-07
  11  0.000391766
  12  1.95084e-05
  13  3.3132e-06
  14  0.00111692
  15  0.000806183
  16  1.00351
  17  1.00315
  18  0.00192221
  19  1.0074
  20  1.00058
  21  0.000893159
  22  8.58704e-06
  23  0.000154584
  24  0.000289822
  25  7.36221e-05
  26  0.000614265
  27  2.311e-06
  28  1.04464
  29  1.28455
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 832.950123365

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.951e-05  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.018e+00  1.285e+00  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:  6.750e-01  1.045e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/427188/likelihoodResults_492048001_492307201_4FGL_J0823.1+4042_daily_bin975.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) = 832.95028228
delta logL = -0.000158915573934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 832.950124466
delta logL = -1.10104508622e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8010       1.0000          .0000       10.000    
     3 'Normalizat'    .67503       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0180       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=   832.9501     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      272 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10586E-03    24.836        .12256E-01** at limit **
   2  Index         2.6879        7.1488        .50000        .16661E-04
   3  Normalizat    .67501        .13150E-01    .30788E-03   -.99767E-04
   4  Prefactor     1.0180        .95109E-02    .18304E-03   -.15383E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105857
  Index      = 2.68794
  Normalizat = 0.675007
  Prefactor  = 1.018
 **********
 **   18 **HESSE 
 **********

 FCN=   832.9501     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      301 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10586E-03    216.93        .12975E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6879        5.9243        .50000       -.48071    
   3  Normalizat    .67501        .39341E-01    .61576E-04   -1.0489    
   4  Prefactor     1.0180        .28455E-01    .36608E-04   -.92132    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.10056e-09
Minuit parameter uncertainties:
  1  0.0715493
  2  453.125
  3  0.0393426
  4  0.0284549
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/427188': 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) = 832.950124148
delta logL = -7.82933284427e-07

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.059e-04  7.155e-02  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.688e+00  4.531e+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:  1.018e+00  2.845e-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:  6.750e-01  3.934e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/427188/cmap_HighResolution_492048001_492307201_4FGL_J0823.1+4042_daily_bin975.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.16e-02', job_status='DONE', photon_flux_upper_limit='4.07e-07', time_completed='2021-08-29 18:10:12.334812', job_id='427188', GAL2='1.02', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1630285812.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.02', dlogl='-7.83e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='975' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 18:10:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 427188: <4FGL_J0823.1+4042_daily_bin975> in cluster <slac> Done

Job <4FGL_J0823.1+4042_daily_bin975> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Aug 29 18:00:58 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 18:00:59 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:00:59 2021
Terminated at Sun Aug 29 18:10:13 2021
Results reported at Sun Aug 29 18:10:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin975 125.8 40.7077 492048001 492307201 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 :                                   465.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   557 sec.
    Turnaround time :                            555 sec.

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

