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


Performing analysis on: 4FGL_J0833.9+4223_daily_bin1456
RA = 128.476, Dec = 42.3989
tmin = 616723201, tmax = 616982401
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='567893', job_status='RUN', time_executed='2021-08-30 01:14:48.045305', time_epoch_executed='1630311288.05' WHERE source_name='4FGL J0833.9+4223' and cadence='daily' and bin_id='1456'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/567893

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/567893/ft1_4FGL_J0833.9+4223_daily_bin1456.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/567893/ft2_4FGL_J0833.9+4223_daily_bin1456.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/567893/ft1_4FGL_J0833.9+4223_daily_bin1456.fits outfile=/scratch/kocevski/567893/ft1_filteredMKT_4FGL_J0833.9+4223_daily_bin1456.fits ra=128.476 dec=42.3989 rad=12.0 tmin=616723201.0 tmax=616982401.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.81
user 2.84
sys 0.91

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/567893/ft2_4FGL_J0833.9+4223_daily_bin1456.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/567893/ft1_filteredMKT_4FGL_J0833.9+4223_daily_bin1456.fits evtable="EVENTS" outfile="/scratch/kocevski/567893/ft1_filtered_4FGL_J0833.9+4223_daily_bin1456.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.19
user 0.33
sys 0.84

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/567893/ft1_filtered_4FGL_J0833.9+4223_daily_bin1456.fits" evtable="EVENTS" scfile=/scratch/kocevski/567893/ft2_4FGL_J0833.9+4223_daily_bin1456.fits sctable="SC_DATA" outfile=/scratch/kocevski/567893/ltcube_616723201_616982401_4FGL_J0833.9+4223_daily_bin1456.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/567893/ft2_4FGL_J0833.9+4223_daily_bin1456.fits
.....................!
real 13.16
user 11.97
sys 1.13

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/567893/ft1_filtered_4FGL_J0833.9+4223_daily_bin1456.fits evtable="EVENTS" scfile=/scratch/kocevski/567893/ft2_4FGL_J0833.9+4223_daily_bin1456.fits sctable="SC_DATA" expcube=/scratch/kocevski/567893/ltcube_616723201_616982401_4FGL_J0833.9+4223_daily_bin1456.fits outfile=/scratch/kocevski/567893/expmap_616723201_616982401_4FGL_J0833.9+4223_daily_bin1456.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/567893/ltcube_616723201_616982401_4FGL_J0833.9+4223_daily_bin1456.fits
.....................!
real 190.47
user 185.11
sys 4.98

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/567893/ft1_filtered_4FGL_J0833.9+4223_daily_bin1456.fits scfile=/scratch/kocevski/567893/ft2_4FGL_J0833.9+4223_daily_bin1456.fits outfile=/scratch/kocevski/567893/cmap_616723201_616982401_4FGL_J0833.9+4223_daily_bin1456.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 1.27
user 0.37
sys 0.85

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/567893/ft1_filtered_4FGL_J0833.9+4223_daily_bin1456.fits scfile=/scratch/kocevski/567893/ft2_4FGL_J0833.9+4223_daily_bin1456.fits outfile=/scratch/kocevski/567893/cmap_HighResolution_616723201_616982401_4FGL_J0833.9+4223_daily_bin1456.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.26
user 0.37
sys 0.84

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/567893/ft1_filtered_4FGL_J0833.9+4223_daily_bin1456.fits', '/scratch/kocevski/567893/ft2_4FGL_J0833.9+4223_daily_bin1456.fits', expMap='/scratch/kocevski/567893/expmap_616723201_616982401_4FGL_J0833.9+4223_daily_bin1456.fits', expCube='/scratch/kocevski/567893/ltcube_616723201_616982401_4FGL_J0833.9+4223_daily_bin1456.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/567893/Model_4FGL_J0833.9+4223_daily_bin1456.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/567893/ft1_filtered_4FGL_J0833.9+4223_daily_bin1456.fits
Spacecraft file(s): /scratch/kocevski/567893/ft2_4FGL_J0833.9+4223_daily_bin1456.fits
Exposure map: /scratch/kocevski/567893/expmap_616723201_616982401_4FGL_J0833.9+4223_daily_bin1456.fits
Exposure cube: /scratch/kocevski/567893/ltcube_616723201_616982401_4FGL_J0833.9+4223_daily_bin1456.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/567893/Model_4FGL_J0833.9+4223_daily_bin1456.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) = 609.842662782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.920       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.7854       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5084       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10531E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    13.095       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7357.5       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .34148E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .24494E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26969E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .12119E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1023.3       1.0000         .10000E-03   10000.    
    20 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12376E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .17329E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .80876       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=   606.5460     FROM MIGRAD    STATUS=CONVERGED    227 CALLS     4058 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.915        1.2233       -.57124E-07    .28198E-03
   2  Prefactor     .10001E-03    18.953       -.22211E-05** at limit **
   3  norm          2.7886        4.7786       -.76608E-07    .93205E-04
   4  Prefactor     7.4809        2.5945       -.33328E-06    .71319E-03
   5  Prefactor     .10034E-03    24.554        .11172E-05** at limit **
   6  Prefactor     .10000E-03    9.7813        .68488E-07** at limit **
   7  norm          13.095        1.0017        .35606E-08    .29721E-04
   8  norm          .10000E-03    1.4611        .62760E-07** at limit **
   9  norm          .10000E-03    1.2873        .45764E-07** at limit **
  10  Prefactor     7357.5        1.0065       -.53897E-09    .59577E-03
  11  Prefactor     .10014E-03    1.2903       -.40144E-06** at limit **
  12  Prefactor     .10107E-03    37.174       -.98231E-06** at limit **
  13  Prefactor     .17726E-03    1.1448       -.33006E-06** at limit **
  14  Prefactor     .10146E-03    40.899        .10113E-05** at limit **
  15  Prefactor     .10000E-03    11.226       -.49537E-07** at limit **
  16  norm          .10010E-03    18.378       -.11423E-05** at limit **
  17  norm          .10002E-03    20.107        .15576E-05** at limit **
  18  Prefactor    10000.0        179.95       -.22599E-05** at limit **
  19  Prefactor     1023.3        1.3050        .57961E-08   -.30224E-02
  20  Prefactor    10000.0        .35998        .10919E-06** at limit **
  21  Prefactor     .10018E-03    22.761       -.22967E-05** at limit **
  22  Prefactor     .32096E-03    199.08       -.21028E-05** at limit **
  23  Prefactor     .10000E-03    29.846       -.90836E-06** at limit **
  24  Prefactor     .10150E-03    37.270       -.11863E-05** at limit **
  25  norm          .10000E-03    2.5184       -.10896E-07** at limit **
  26  Prefactor     .10000E-03    16.134        .49663E-06** at limit **
  27  norm          .10012E-03    20.333        .38269E-05** at limit **
  28  Prefactor     .10000E-03    9.1660       -.47367E-07** at limit **
  29  Normalizat    .10000E-01    .15294       -.30616E-06** at limit **
  30  Prefactor     .80833        .20361        .27471E-06   -.23846E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9146
  Prefactor  = 0.000100009
  norm       = 2.78862
  Prefactor  = 7.48094
  Prefactor  = 0.000100336
  Prefactor  = 0.0001
  norm       = 13.0946
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7357.46
  Prefactor  = 0.00010014
  Prefactor  = 0.000101067
  Prefactor  = 0.000177257
  Prefactor  = 0.000101457
  Prefactor  = 0.0001
  norm       = 0.000100102
  norm       = 0.000100018
  Prefactor  = 10000
  Prefactor  = 1023.27
  Prefactor  = 10000
  Prefactor  = 0.000100184
  Prefactor  = 0.00032096
  Prefactor  = 0.000100003
  Prefactor  = 0.000101505
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100117
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.808332
 **********
 **   18 **HESSE 
 **********

 FCN=   606.5460     FROM HESSE     STATUS=OK           626 CALLS     4684 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.915        18.245        .25095E-02   -1.4910    
   2  Prefactor     .10001E-03    19.179        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.7886        5.1175        .60952E-02   -1.5374    
   4  Prefactor     7.4809        18.877        .36590E-02   -1.5161    
   5  Prefactor     .10034E-03    51.665        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.7778        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.095        9.3538        .27673E-02   -1.4984    
   8  norm          .10000E-03    1.4559        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.2878        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7357.5        8400.8        .22679E-03    .49098    
  11  Prefactor     .10014E-03    140.80        .10667E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10107E-03    109.93        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .17726E-03    6248.0        .10717E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10146E-03    122.03        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.223        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10010E-03    34.541        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10002E-03    36.960        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        286.11        .90712E-02    1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1023.3        5265.9        .32995E-03   -.91958    
  20  Prefactor    10000.0        8780.3        .10715E-01    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10018E-03    25.041        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .32096E-03    531.11        .90712E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    55.296        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10150E-03    108.91        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.5181        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    16.156        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10012E-03    21.812        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.1620        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .14918        .13480       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .80833        .21982        .43831E-01   -.99422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26134e-05
Minuit parameter uncertainties:
  1  18.2515
  2  0.00082281
  3  5.11835
  4  18.8918
  5  0.00833487
  6  2.21429e-05
  7  9.35485
  8  8.42081e-06
  9  5.77459e-06
  10  6992.05
  11  0.0088871
  12  0.0217047
  13  0.919772
  14  0.0267229
  15  1.38134e-05
  16  0.00376257
  17  0.00161692
  18  0.265206
  19  3328.73
  20  2.51953
  21  0.00429129
  22  0.691353
  23  0.000859837
  24  0.0256496
  25  1.91879e-06
  26  1.80496e-05
  27  0.00318994
  28  1.54534e-05
  29  4.16602e-07
  30  0.220061
Done.

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

Extracting fit parameters...

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  1.773e-04  9.198e-01  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:  8.083e-01  2.201e-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  4.166e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 128.476 42.399
Photon Flux Upper Limit: 8.00e-06 ph cm-2 s-1
Energy Flux Upper Limit: 6.19e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/567893/likelihoodResults_616723201_616982401_4FGL_J0833.9+4223_daily_bin1456.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) = 606.54601319
delta logL = -1.9056506062e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 606.546011288
delta logL = -3.21290372085e-09

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   606.5460     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      270 TOTAL
                     EDM=   .20E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1260.0        .18142E-02** at limit **
   2  Index         2.4124        6.2061        .50000       -.21793E-06
   3  Normalizat    .10000E-01    .14417        .57541E-02** at limit **
   4  Prefactor     .80833        .19785        .17526E-03    .34542E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.41242
  Normalizat = 0.01
  Prefactor  = 0.808332
 **********
 **   18 **HESSE 
 **********

 FCN=   606.5460     FROM HESSE     STATUS=OK            29 CALLS      299 TOTAL
                     EDM=   .21E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1217.9        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4124        6.2054        .50000       -.54394    
   3  Normalizat    .10000E-01    .14417        .11508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .80833        .19784        .70104E-05   -.99422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14118e-13
Minuit parameter uncertainties:
  1  0.00125398
  2  4.28148
  3  6.79999e-08
  4  0.198014
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/567893': 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) = 606.546011272
delta logL = 1.29731461129e-08

Extracting fit parameters...

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  1.000e-04  1.254e-03  1.000e-04  1.000e+04 ( 1.000e-13)
336        Index:  2.412e+00  4.281e+00  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:  8.083e-01  1.980e-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  6.800e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 128.476 42.399

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/567893/cmap_HighResolution_616723201_616982401_4FGL_J0833.9+4223_daily_bin1456.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.19e-01', job_status='DONE', photon_flux_upper_limit='8.00e-06', time_completed='2021-08-30 01:23:28.993488', job_id='567893', GAL2='0.81', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630311808.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.30e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1456' AND source_name='4FGL J0833.9+4223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 01:23:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 567893: <4FGL_J0833.9+4223_daily_bin1456> in cluster <slac> Done

Job <4FGL_J0833.9+4223_daily_bin1456> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Aug 30 01:10:41 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 01:10:41 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:10:41 2021
Terminated at Mon Aug 30 01:23:29 2021
Results reported at Mon Aug 30 01:23:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0833.9+4223_daily_bin1456 128.476 42.3989 616723201 616982401 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 :                                   412.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             213.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            768 sec.

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

