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


Performing analysis on: 4FGL_J0833.9+4223_daily_bin1332
RA = 128.476, Dec = 42.3989
tmin = 584582401, tmax = 584841601
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='567709', job_status='RUN', time_executed='2021-08-30 01:12:41.477650', time_epoch_executed='1630311161.48' WHERE source_name='4FGL J0833.9+4223' and cadence='daily' and bin_id='1332'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/567709

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/567709/ft1_4FGL_J0833.9+4223_daily_bin1332.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/567709/ft2_4FGL_J0833.9+4223_daily_bin1332.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/567709/ft1_4FGL_J0833.9+4223_daily_bin1332.fits outfile=/scratch/kocevski/567709/ft1_filteredMKT_4FGL_J0833.9+4223_daily_bin1332.fits ra=128.476 dec=42.3989 rad=12.0 tmin=584582401.0 tmax=584841601.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.87
user 2.68
sys 0.84

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/567709/ft1_filtered_4FGL_J0833.9+4223_daily_bin1332.fits" evtable="EVENTS" scfile=/scratch/kocevski/567709/ft2_4FGL_J0833.9+4223_daily_bin1332.fits sctable="SC_DATA" outfile=/scratch/kocevski/567709/ltcube_584582401_584841601_4FGL_J0833.9+4223_daily_bin1332.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/567709/ft2_4FGL_J0833.9+4223_daily_bin1332.fits
.....................!
real 13.51
user 12.32
sys 1.03

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/567709/ft1_filtered_4FGL_J0833.9+4223_daily_bin1332.fits evtable="EVENTS" scfile=/scratch/kocevski/567709/ft2_4FGL_J0833.9+4223_daily_bin1332.fits sctable="SC_DATA" expcube=/scratch/kocevski/567709/ltcube_584582401_584841601_4FGL_J0833.9+4223_daily_bin1332.fits outfile=/scratch/kocevski/567709/expmap_584582401_584841601_4FGL_J0833.9+4223_daily_bin1332.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/567709/ltcube_584582401_584841601_4FGL_J0833.9+4223_daily_bin1332.fits
.....................!
real 192.99
user 186.63
sys 5.72

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/567709/ft1_filtered_4FGL_J0833.9+4223_daily_bin1332.fits scfile=/scratch/kocevski/567709/ft2_4FGL_J0833.9+4223_daily_bin1332.fits outfile=/scratch/kocevski/567709/cmap_584582401_584841601_4FGL_J0833.9+4223_daily_bin1332.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.21
user 0.37
sys 0.79

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/567709/ft1_filtered_4FGL_J0833.9+4223_daily_bin1332.fits scfile=/scratch/kocevski/567709/ft2_4FGL_J0833.9+4223_daily_bin1332.fits outfile=/scratch/kocevski/567709/cmap_HighResolution_584582401_584841601_4FGL_J0833.9+4223_daily_bin1332.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.19
user 0.38
sys 0.80

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .21557E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10453E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12513E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20841E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     7 'norm      '    .12263E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10000.       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .66480E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11359E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14737E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12599E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10000.       1.0000         .10000E-03   10000.    
    17 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10470E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11134E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.3991       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .17118E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10834E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .12342E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .29484E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .51795E-07   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.

 FCN=   175.2916     FROM MIGRAD    STATUS=CONVERGED    766 CALLS     5357 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.660        .77077E-09** at limit **
   2  Prefactor     .10000E-03    87.148       -.77055E-06** at limit **
   3  norm          .10000E-03    5.2967       -.77651E-09** at limit **
   4  Prefactor     .10000E-03    246.00        .26663E-06** at limit **
   5  Prefactor     .10001E-03    7039.2        .16975E-04** at limit **
   6  Prefactor    10000.0        6920.8       -.54466E-05** at limit **
   7  norm          .10000E-03    10.648        .41412E-07** at limit **
   8  norm          .10000E-03    4.5983        .31767E-07** at limit **
   9  norm         10000.0        464.34        .19765E-05** at limit **
  10  Prefactor     .10000E-03    729.43        .22007E-06** at limit **
  11  Prefactor    10000.0        8097.9       -.14960E-04** at limit **
  12  Prefactor     .10002E-03    1814.7        .31166E-04** at limit **
  13  Prefactor     .10004E-03    6863.3        .38490E-04** at limit **
  14  Prefactor    10000.0        8418.5       -.12514E-03** at limit **
  15  Prefactor     .10000E-03    155.91        .45186E-05** at limit **
  16  norm         10000.0        1969.6       -.29262E-04** at limit **
  17  norm         10000.0        6233.4       -.40613E-04** at limit **
  18  Prefactor     .10000E-03    20.340        .22891E-07** at limit **
  19  Prefactor    10000.0        7916.9       -.99104E-05** at limit **
  20  Prefactor     .10004E-03    7252.1        .40431E-04** at limit **
  21  Prefactor     4.3900        8.7888       -.55464E-05   -.11610E-02
  22  Prefactor     .10000E-03    58.590        .24640E-06** at limit **
  23  Prefactor     .10000E-03    4.7089        .28753E-07** at limit **
  24  Prefactor     .10000E-03    19.085        .21580E-07** at limit **
  25  norm          .10000E-03    2.1989        .20070E-05** at limit **
  26  Prefactor     .10019E-03    345.80        .95770E-04** at limit **
  27  norm          .10000E-03    6.4310        .86192E-08** at limit **
  28  Prefactor     .10000E-03    8.1706        .15436E-06** at limit **
  29  Normalizat    .10000E-01    .74603E-01    .14280E-04** at limit **
  30  Prefactor     .11368E-09    .12304        .71075E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 10000
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.000100023
  Prefactor  = 0.000100035
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 10000
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.000100039
  Prefactor  = 4.38999
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100185
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.13677e-10
 **********
 **   18 **HESSE 
 **********

 FCN=   175.2916     FROM HESSE     STATUS=OK           560 CALLS     5917 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.659        .51251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    87.147        .12105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.2970        .29802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    246.00        .20392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    7039.2        .20192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        6921.3        .21462E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    10.656        .42257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.6033        .27767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm         10000.0        464.39        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    729.43        .21008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor    10000.0        8097.8        .20608E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10002E-03    1814.4        .18159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10004E-03    6863.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor    10000.0        8417.0        .18831E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    155.90        .16209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm         10000.0        1969.2        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm         10000.0        6233.2        .18222E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.340        .58414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor    10000.0        7916.9        .21035E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10004E-03    7251.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.3900        9.0108        .55798E-04   -1.5289    
  22  Prefactor     .10000E-03    58.590        .99205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.7114        .28099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    19.085        .56583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.4058        .36996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10019E-03    341.51        .91989E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    6.4311        .32839E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    8.5059        .74022E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .74656E-01    .11200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .11368E-09    .12453        .14351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.53849e-09
Minuit parameter uncertainties:
  1  2.62695e-07
  2  6.80548e-05
  3  1.98471e-07
  4  4.38085e-05
  5  0.0114987
  6  0.0037757
  7  3.75634e-06
  8  1.9073e-06
  9  0.000400595
  10  5.64826e-05
  11  0.0133086
  12  0.0134089
  13  0.0246951
  14  0.118515
  15  0.00055235
  16  0.0132401
  17  0.0200721
  18  3.78723e-06
  19  0.0086439
  20  0.0291877
  21  9.01357
  22  2.05531e-05
  23  3.57413e-06
  24  2.54667e-06
  25  0.000102196
  26  0.015991
  27  1.94237e-06
  28  6.08e-05
  29  1.2142e-06
  30  7.54068e-06
Done.

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

Extracting fit parameters...

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  1.000e-04  2.470e-02  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:  1.137e-10  7.541e-06  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  1.214e-06  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -1.17862323846

TS (Fixed Index): -0.00
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/567709/likelihoodResults_584582401_584841601_4FGL_J0833.9+4223_daily_bin1332.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) = 175.291630059
delta logL = -1.07855449301e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 175.291630059
delta logL = -1.07855449301e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    1.8681       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=   175.2916     FROM MIGRAD    STATUS=CONVERGED     24 CALLS       91 TOTAL
                     EDM=   .46E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       1.8681        9.0616         .0000        .74607E-10
                               ERR DEF=  .500    
Final values: 
  Index      = 1.86805
 **********
 **   18 **HESSE 
 **********

 FCN=   175.2916     FROM HESSE     STATUS=OK            11 CALLS      102 TOTAL
                     EDM=   .92E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       1.8681        9.0616        .50000       -.67691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.20342e-15
Minuit parameter uncertainties:
  1  5011.72
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/567709': 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) = 175.291630059
delta logL = -1.07855449301e-05

Extracting fit parameters...

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  1.000e-04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13) fixed
336        Index:  1.868e+00  5.012e+03  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:  3.823e-11  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): -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/567709/cmap_HighResolution_584582401_584841601_4FGL_J0833.9+4223_daily_bin1332.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.74e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-08-30 01:19:07.138333', job_id='567709', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630311547.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='-1.08e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1332' AND source_name='4FGL J0833.9+4223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 01:19:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 567709: <4FGL_J0833.9+4223_daily_bin1332> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0833.9+4223_daily_bin1332 128.476 42.3989 584582401 584841601 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 :                                   381.49 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             252.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   517 sec.
    Turnaround time :                            519 sec.

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

