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


Performing analysis on: 4FGL_J0833.9+4223_daily_bin1281
RA = 128.476, Dec = 42.3989
tmin = 571363201, tmax = 571622401
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='566556', job_status='RUN', time_executed='2021-08-30 01:08:20.969252', time_epoch_executed='1630310900.97' WHERE source_name='4FGL J0833.9+4223' and cadence='daily' and bin_id='1281'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/566556

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/566556/ft1_4FGL_J0833.9+4223_daily_bin1281.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/566556/ft2_4FGL_J0833.9+4223_daily_bin1281.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/566556/ft1_4FGL_J0833.9+4223_daily_bin1281.fits outfile=/scratch/kocevski/566556/ft1_filteredMKT_4FGL_J0833.9+4223_daily_bin1281.fits ra=128.476 dec=42.3989 rad=12.0 tmin=571363201.0 tmax=571622401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.80
user 2.65
sys 1.09

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/566556/ft2_4FGL_J0833.9+4223_daily_bin1281.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/566556/ft2_4FGL_J0833.9+4223_daily_bin1281.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/566556/ft1_filteredMKT_4FGL_J0833.9+4223_daily_bin1281.fits evtable="EVENTS" outfile="/scratch/kocevski/566556/ft1_filtered_4FGL_J0833.9+4223_daily_bin1281.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 1.41
user 0.32
sys 1.06

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/566556/ft1_filtered_4FGL_J0833.9+4223_daily_bin1281.fits" evtable="EVENTS" scfile=/scratch/kocevski/566556/ft2_4FGL_J0833.9+4223_daily_bin1281.fits sctable="SC_DATA" outfile=/scratch/kocevski/566556/ltcube_571363201_571622401_4FGL_J0833.9+4223_daily_bin1281.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/566556/ft2_4FGL_J0833.9+4223_daily_bin1281.fits
.....................!
real 13.38
user 11.95
sys 1.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/566556/ft1_filtered_4FGL_J0833.9+4223_daily_bin1281.fits evtable="EVENTS" scfile=/scratch/kocevski/566556/ft2_4FGL_J0833.9+4223_daily_bin1281.fits sctable="SC_DATA" expcube=/scratch/kocevski/566556/ltcube_571363201_571622401_4FGL_J0833.9+4223_daily_bin1281.fits outfile=/scratch/kocevski/566556/expmap_571363201_571622401_4FGL_J0833.9+4223_daily_bin1281.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/566556/ltcube_571363201_571622401_4FGL_J0833.9+4223_daily_bin1281.fits
.....................!
real 191.82
user 185.72
sys 5.69

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 209 point sources and 0 extended sources

Setting source of interest to:
4FGL J0833.9+4223 @ 128.476 42.3989

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/566556/ft1_filtered_4FGL_J0833.9+4223_daily_bin1281.fits scfile=/scratch/kocevski/566556/ft2_4FGL_J0833.9+4223_daily_bin1281.fits outfile=/scratch/kocevski/566556/cmap_571363201_571622401_4FGL_J0833.9+4223_daily_bin1281.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=128.476 yref=42.3989 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 2.06
user 0.36
sys 1.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/566556/ft1_filtered_4FGL_J0833.9+4223_daily_bin1281.fits scfile=/scratch/kocevski/566556/ft2_4FGL_J0833.9+4223_daily_bin1281.fits outfile=/scratch/kocevski/566556/cmap_HighResolution_571363201_571622401_4FGL_J0833.9+4223_daily_bin1281.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=128.476 yref=42.3989 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 1.50
user 0.37
sys 1.04

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/566556/ft1_filtered_4FGL_J0833.9+4223_daily_bin1281.fits evtable="EVENTS" scfile=/scratch/kocevski/566556/ft2_4FGL_J0833.9+4223_daily_bin1281.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/566556/Model_4FGL_J0833.9+4223_daily_bin1281.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/566556/ft1_filtered_4FGL_J0833.9+4223_daily_bin1281.fits............!
real 16.85
user 13.44
sys 2.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/566556/ft1_filtered_4FGL_J0833.9+4223_daily_bin1281.fits', '/scratch/kocevski/566556/ft2_4FGL_J0833.9+4223_daily_bin1281.fits', expMap='/scratch/kocevski/566556/expmap_571363201_571622401_4FGL_J0833.9+4223_daily_bin1281.fits', expCube='/scratch/kocevski/566556/ltcube_571363201_571622401_4FGL_J0833.9+4223_daily_bin1281.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/566556/Model_4FGL_J0833.9+4223_daily_bin1281.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0833.9+4223'

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  8.920e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
336        Index:  2.434e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
337        Scale:  8.609e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/566556/ft1_filtered_4FGL_J0833.9+4223_daily_bin1281.fits
Spacecraft file(s): /scratch/kocevski/566556/ft2_4FGL_J0833.9+4223_daily_bin1281.fits
Exposure map: /scratch/kocevski/566556/expmap_571363201_571622401_4FGL_J0833.9+4223_daily_bin1281.fits
Exposure cube: /scratch/kocevski/566556/ltcube_571363201_571622401_4FGL_J0833.9+4223_daily_bin1281.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/566556/Model_4FGL_J0833.9+4223_daily_bin1281.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) = 156.335962889

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .23832E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .12300E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14402E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .70937       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .34323E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10637E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.535       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0805       1.0000         .10000E-03   10000.    
    12 'Prefactor '    217.03       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.056       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8224       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6268       1.0000         .10000E-03   10000.    
    16 'norm      '    7.3252       1.0000         .10000E-03   10000.    
    17 'norm      '    8.3897       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.4863       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3119       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.1628       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9002       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.9597       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.5521       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.2153       1.0000         .10000E-03   10000.    
    25 'norm      '    2.3402       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.3769       1.0000         .10000E-03   10000.    
    27 'norm      '    3.3766       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.0663       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .76132       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   152.1124     FROM MIGRAD    STATUS=CONVERGED    728 CALLS     1170 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.781        .10301E-05** at limit **
   2  Prefactor     .10000E-03    30.948        .38017E-05** at limit **
   3  norm          .39566        94.579       -.28537E-05   -.11066E-03
   4  Prefactor     .10000E-03    31.881        .58138E-06** at limit **
   5  Prefactor     .10003E-03    239.27       -.18327E-05** at limit **
   6  Prefactor     .10002E-03    55.809        .88423E-06** at limit **
   7  norm          .10000E-03    14.017       -.22702E-05** at limit **
   8  norm          .10000E-03    5.6288       -.61395E-06** at limit **
   9  norm          .10000E-03    12.695        .22374E-04** at limit **
  10  Prefactor     803.22        1558.9        .43863E-04    .75175E-03
  11  Prefactor     .10002E-03    483.35       -.35409E-05** at limit **
  12  Prefactor     .27262E-02    192.39        .62831E-04   -.58950E-02
  13  Prefactor     8714.9        8585.9        .91694E-03   -.36267E-03
  14  Prefactor     .11424        9248.5       -.73102E-04    .11924E-02
  15  Prefactor     .30440E-03    6847.9       -.39026E-04** at limit **
  16  norm          9994.7        8986.4       -.21722E-03    .35094E-02
  17  norm          9997.7        7080.2        .65264E-04   -.79670E-02
  18  Prefactor     9999.7        7188.0       -.55181E-04    .37898E-02
  19  Prefactor     .13040E-03    7412.9       -.45532E-04** at limit **
  20  Prefactor     .78682E-01    5.1880       -.10435E-04    .10438E-03
  21  Prefactor     1.9002        1.0396         .0000         .0000    
  22  Prefactor     5.9597        1.0036         .0000         .0000    
  23  Prefactor     9997.2        7625.8        .10123E-02    .84438E-03
  24  Prefactor     7.2153        1.0024         .0000         .0000    
  25  norm          9999.5        9714.0       -.29668E-03    .17602E-02
  26  Prefactor     9986.4        8802.4       -.74973E-03   -.25612E-02
  27  norm          3.3766        1.0114         .0000         .0000    
  28  Prefactor     1.0663        1.2185         .0000         .0000    
  29  Normalizat    .10000E-01    .20590       -.46381E-05** at limit **
  30  Prefactor     .47512        .33287       -.15081E-04   -.63172E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.39566
  Prefactor  = 0.0001
  Prefactor  = 0.000100032
  Prefactor  = 0.000100018
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 803.218
  Prefactor  = 0.000100018
  Prefactor  = 0.00272625
  Prefactor  = 8714.94
  Prefactor  = 0.114242
  Prefactor  = 0.000304398
  norm       = 9994.72
  norm       = 9997.65
  Prefactor  = 9999.69
  Prefactor  = 0.0001304
  Prefactor  = 0.0786824
  Prefactor  = 1.9002
  Prefactor  = 5.95967
  Prefactor  = 9997.19
  Prefactor  = 7.21531
  norm       = 9999.53
  Prefactor  = 9986.43
  norm       = 3.37659
  Prefactor  = 1.06631
  Normalizat = 0.01
  Prefactor  = 0.475118
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   152.1124     FROM HESSE     STATUS=FAILED        93 CALLS     1263 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.814        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.417        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .39566        29.035        .24985E-01   -1.5582    
   4  Prefactor     .10000E-03    30.789        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10003E-03    232.75        .12098E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    50.983        .10666E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    14.328        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.6442        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    12.393        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     803.22        1469.1        .26265E-02   -.99610    
  11  Prefactor     .10002E-03    474.46        .11588E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .27262E-02    428.39        .68628E-03   -1.5718    
  13  Prefactor     8714.9        8781.3        .31590E-02    .83752    
  14  Prefactor     .11424        9298.0        .45798E-02   -1.5640    
  15  Prefactor     .30440E-03    6917.0        .53036E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9994.7        9768.7        .37049E-02    1.6168    
  17  norm          9997.7        8520.6        .34601E-02    1.5402    
  18  Prefactor     9999.7        7825.0        .39396E-02    1.5819    
  19  Prefactor     .13040E-03    7418.1        .96212E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .78682E-01    6234.5        .49386E-02   -1.5652    
  21  Prefactor     570.65        568.61         .0000       -1.5432    
  22  Prefactor     5.9597        1.0036         .0000       -1.5220    
  23  Prefactor     9997.2        1.4322        .10123E-02    1.6043    
  24  Prefactor     7.2153        1.0024         .0000       -1.5171    
  25  norm          9999.5        .45692       -.29668E-03    1.5844    
  26  Prefactor     9986.4        3.4161       -.74973E-03    1.4971    
  27  norm          3.3766        1.0114         .0000       -1.5340    
  28  Prefactor     1.0663        1.2185         .0000       -1.5501    
  29  Normalizat    .10000E-01    .25505       -.46381E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .47512        .89090       -.15081E-04   -1.1313    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.97204e-09
Minuit parameter uncertainties:
  1  0.00017882
  2  0.000119806
  3  6.78136
  4  8.89235e-05
  5  0.00544219
  6  0.00191263
  7  0.000169971
  8  6.85803e-05
  9  0.000319124
  10  1552.06
  11  0.00591068
  12  2.13682
  13  10377.7
  14  80.4151
  15  1.90964
  16  831.212
  17  300.385
  18  95.131
  19  0.848063
  20  205.445
  21  1.03966
  22  1.00356
  23  1.43221
  24  1.00242
  25  0.456922
  26  3.41611
  27  1.01141
  28  1.21855
  29  3.01486e-06
  30  0.919245
Done.

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

Extracting fit parameters...

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  8.715e+03  1.038e+04  1.000e-04  1.000e+04 ( 1.000e-13)
336        Index:  2.434e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
337        Scale:  8.609e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  4.751e-01  9.192e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  1.000e-02  3.015e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 128.476 42.399
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 1.15e-05 +/- 1.37e-05
Energy Flux (Fixed Index): 3.60e-03 +/- 4.29e-03
calc_int error: parameter max 10000.0 is not large enough
delta logLike = -0.0070243191638

TS (Fixed Index): 1.51
Ra Dec: 128.476 42.399
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.74e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/566556/likelihoodResults_571363201_571622401_4FGL_J0833.9+4223_daily_bin1281.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) = 152.04459756
delta logL = 0.0678222632826

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 152.04459639
delta logL = 0.0678234333515

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.7366       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   152.0446     FROM MIGRAD    STATUS=CONVERGED     13 CALLS       53 TOTAL
                     EDM=   .18E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.7366        .72850        .45154E-01    .25893E-05
                               ERR DEF=  .500    
Final values: 
  Index      = 2.73661
 **********
 **   18 **HESSE 
 **********

 FCN=   152.0446     FROM HESSE     STATUS=OK             7 CALLS       60 TOTAL
                     EDM=   .11E-16    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       2.7366        .73626        .19797E-03   -.46977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07251e-17
Minuit parameter uncertainties:
  1  0.73965
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/566556': 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) = 152.04459639
delta logL = 0.0678234333517

Extracting fit parameters...

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  8.715e+03  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13) fixed
336        Index:  2.737e+00  7.396e-01  0.000e+00  1.000e+01 (-1.000e+00)
337        Scale:  8.609e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  4.749e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  1.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 1.64
Ra Dec: 128.476 42.399
Photon Index (Free Index): 2.74 +/- 0.74
Photon Flux (Free Index): 1.82e-05 +/- 2.12e-05
Energy Flux (Free Index): 4.26e-03 +/- 2.64e-03

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/566556/cmap_HighResolution_571363201_571622401_4FGL_J0833.9+4223_daily_bin1281.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.74e+04', comment='SUCCESS', photon_flux='1.15e-05', energy_flux2='4.26e-03', photon_flux_error='1.37e-05', dlogl='6.78e-02', energy_flux='3.60e-03', photon_flux2='1.82e-05', job_status='DONE', time_completed='2021-08-30 01:14:13.808621', photon_index_error2='0.74', photon_index2='2.74', ts='1.31', fit_tolerance='1e-08', GAL='0.48', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='2.64e-03', EG='0.01', time_epoch_completed='1630311253.81', return_code='101', job_id='566556', GAL2='0.47', EG2='0.01', return_code2='0', energy_flux_error='4.29e-03', photon_flux_error2='2.12e-05', ts2='1.64', photon_index='2.43' WHERE bin_id='1281' AND source_name='4FGL J0833.9+4223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 01:14:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 566556: <4FGL_J0833.9+4223_daily_bin1281> in cluster <slac> Done

Job <4FGL_J0833.9+4223_daily_bin1281> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Aug 30 01:05:51 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 01:05:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 01:05:53 2021
Terminated at Mon Aug 30 01:14:14 2021
Results reported at Mon Aug 30 01:14:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0833.9+4223_daily_bin1281 128.476 42.3989 571363201 571622401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0833.9+4223 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   358.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             243.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   501 sec.
    Turnaround time :                            503 sec.

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

