/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 56 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 = 7496
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0833.9+4223_daily_bin5
RA = 128.476, Dec = 42.3989
tmin = 240624001, tmax = 240883201
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='554386', job_status='RUN', time_executed='2021-08-30 00:27:26.759313', time_epoch_executed='1630308446.76' WHERE source_name='4FGL J0833.9+4223' and cadence='daily' and bin_id='5'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/554386

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/554386/ft1_4FGL_J0833.9+4223_daily_bin5.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/554386/ft2_4FGL_J0833.9+4223_daily_bin5.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/554386/ft1_4FGL_J0833.9+4223_daily_bin5.fits outfile=/scratch/kocevski/554386/ft1_filteredMKT_4FGL_J0833.9+4223_daily_bin5.fits ra=128.476 dec=42.3989 rad=12.0 tmin=240624001.0 tmax=240883201.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 4.55
user 1.19
sys 3.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/554386/ft1_filtered_4FGL_J0833.9+4223_daily_bin5.fits" evtable="EVENTS" scfile=/scratch/kocevski/554386/ft2_4FGL_J0833.9+4223_daily_bin5.fits sctable="SC_DATA" outfile=/scratch/kocevski/554386/ltcube_240624001_240883201_4FGL_J0833.9+4223_daily_bin5.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/554386/ft2_4FGL_J0833.9+4223_daily_bin5.fits
.....................!
real 16.24
user 12.37
sys 3.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/554386/ft1_filtered_4FGL_J0833.9+4223_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/554386/ft2_4FGL_J0833.9+4223_daily_bin5.fits sctable="SC_DATA" expcube=/scratch/kocevski/554386/ltcube_240624001_240883201_4FGL_J0833.9+4223_daily_bin5.fits outfile=/scratch/kocevski/554386/expmap_240624001_240883201_4FGL_J0833.9+4223_daily_bin5.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/554386/ltcube_240624001_240883201_4FGL_J0833.9+4223_daily_bin5.fits
.....................!
real 194.46
user 185.14
sys 8.55

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/554386/ft1_filtered_4FGL_J0833.9+4223_daily_bin5.fits scfile=/scratch/kocevski/554386/ft2_4FGL_J0833.9+4223_daily_bin5.fits outfile=/scratch/kocevski/554386/cmap_240624001_240883201_4FGL_J0833.9+4223_daily_bin5.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 3.59
user 0.36
sys 3.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/554386/ft1_filtered_4FGL_J0833.9+4223_daily_bin5.fits scfile=/scratch/kocevski/554386/ft2_4FGL_J0833.9+4223_daily_bin5.fits outfile=/scratch/kocevski/554386/cmap_HighResolution_240624001_240883201_4FGL_J0833.9+4223_daily_bin5.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 3.53
user 0.37
sys 3.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2653       1.0000         .10000E-03   10000.    
     7 'norm      '    .95591E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10214E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.3140       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.237       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.985       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.4429       1.0000         .10000E-03   10000.    
    17 'norm      '    1.3104       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7846       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .35128       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18809E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .29750E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    53.696       1.0000         .10000E-03   10000.    
    25 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.1996       1.0000         .10000E-03   10000.    
    27 'norm      '    .13668E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.3657       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .80564       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .86740       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=   4536.409     FROM MIGRAD    STATUS=CONVERGED   1403 CALLS     4712 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.096        .18142E-02** at limit **
   2  Prefactor     .10000E-03    7.5233        .18026E-02** at limit **
   3  norm          .10000E-03    2.6008        .16209E-02** at limit **
   4  Prefactor     .10000E-03    3.9689        .13065E-02** at limit **
   5  Prefactor     .10000E-03    22.220        .18142E-02** at limit **
   6  Prefactor     2.2654        4.2882        .18157E-03    .35313E-04
   7  norm          .10006E-03    73.370        .34376E-02** at limit **
   8  norm          .10000E-03    1.4620        .12474E-02** at limit **
   9  norm          3.3139        .95347        .33040E-04    .13264E-02
  10  Prefactor     29.266        39.651        .74096E-04    .13530E-03
  11  Prefactor     14.983        12.363        .10347E-03    .16658E-03
  12  Prefactor     .10000E-03    1.6129        .82507E-03** at limit **
  13  Prefactor     .10000E-03    68.841        .36285E-03** at limit **
  14  Prefactor     .10006E-03    19.253        .34019E-02** at limit **
  15  Prefactor     .10000E-03    3.0823        .11546E-02** at limit **
  16  norm          3.4446        8.2809        .21798E-03    .66498E-04
  17  norm          1.3092        6.1869        .31724E-03   -.11360E-04
  18  Prefactor     1.7831        3.6225        .83316E-03   -.69282E-03
  19  Prefactor     .31558        31.860        .96792E-01    .17675E-03
  20  Prefactor     .10000E-03    32.902        .18142E-02** at limit **
  21  Prefactor     .10001E-03    19.837        .20621E-02** at limit **
  22  Prefactor     .10000E-03    55.179        .21393E-02** at limit **
  23  Prefactor     .10000E-03    1.5169        .80549E-03** at limit **
  24  Prefactor     53.726        28.628        .54737E-04   -.36347E-04
  25  norm          .10000E-03    .42916        .67421E-03** at limit **
  26  Prefactor     3.1970        3.2442        .11238E-03   -.72220E-03
  27  norm          .10000E-03    6.9162        .17241E-02** at limit **
  28  Prefactor     1.3638        2.7425        .14873E-03   -.87904E-05
  29  Normalizat    .80584        .23135        .25944E-03    .31992E-03
  30  Prefactor     .86720        .18470        .21262E-03    .41124E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.26543
  norm       = 0.000100063
  norm       = 0.0001
  norm       = 3.31392
  Prefactor  = 29.2661
  Prefactor  = 14.9831
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100059
  Prefactor  = 0.0001
  norm       = 3.44464
  norm       = 1.30924
  Prefactor  = 1.78307
  Prefactor  = 0.315582
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 53.7255
  norm       = 0.0001
  Prefactor  = 3.19697
  norm       = 0.000100001
  Prefactor  = 1.36381
  Normalizat = 0.805838
  Prefactor  = 0.867205
 **********
 **   18 **HESSE 
 **********

 FCN=   4536.409     FROM HESSE     STATUS=OK           566 CALLS     5278 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.098        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.5238        .36052E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.6069        .32418E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9694        .26131E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.221        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2654        4.2875        .72629E-05   -1.5407    
   7  norm          .10006E-03    76.593        .13751E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.4639        .24949E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.3139        .95340        .66080E-05   -1.5344    
  10  Prefactor     29.266        39.647        .14819E-04   -1.4625    
  11  Prefactor     14.983        12.362        .41386E-05   -1.4934    
  12  Prefactor     .10000E-03    1.6132        .16501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    68.845        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10006E-03    19.396        .68038E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.0823        .23091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.4446        8.2753        .87191E-05   -1.5337    
  17  norm          1.3092        6.1775        .12690E-04   -1.5479    
  18  Prefactor     1.7831        3.6169        .33327E-04   -1.5441    
  19  Prefactor     .31558        28.053        .10600       -1.5596    
  20  Prefactor     .10000E-03    32.902        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    20.192        .41241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    55.184        .42787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.5170        .16110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     53.726        28.631        .21895E-05   -1.4241    
  25  norm          .10000E-03    .42933        .13484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.1970        3.2418        .44952E-05   -1.5350    
  27  norm          .10000E-03    6.9171        .34483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.3638        2.7419        .59492E-05   -1.5474    
  29  Normalizat    .80584        .23121        .51887E-04   -.99853    
  30  Prefactor     .86720        .18480        .42524E-04   -.97297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30374e-09
Minuit parameter uncertainties:
  1  5.0559e-05
  2  9.65949e-06
  3  4.17599e-06
  4  1.65552e-05
  5  0.000220868
  6  4.28807
  7  0.00438883
  8  7.13437e-06
  9  0.953403
  10  39.6829
  11  12.3642
  12  6.71659e-06
  13  0.000765845
  14  0.00214456
  15  3.00571e-06
  16  8.27805
  17  5.68857
  18  3.61734
  19  5.95274
  20  4.57314e-05
  21  0.00106687
  22  0.00101856
  23  1.51161e-05
  24  28.6382
  25  1.49737e-05
  26  3.24202
  27  0.000139952
  28  2.74217
  29  0.231494
  30  0.184935
Done.

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

Extracting fit parameters...

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  1.000e-04  7.658e-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:  8.672e-01  1.849e-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:  8.058e-01  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 128.476 42.399
Photon Flux Upper Limit: 7.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/554386/likelihoodResults_240624001_240883201_4FGL_J0833.9+4223_daily_bin5.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) = 4536.40889836
delta logL = -6.91974610163e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4536.40889835
delta logL = -6.91911054673e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96357E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4345       1.0000          .0000       10.000    
     3 'Normalizat'    .80584       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86720       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4536.363     FROM MIGRAD    STATUS=CONVERGED    163 CALLS      308 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2883        26.215        .18143E-02   -.86054E-04
   2  Index         1.6359        1.3349        .17647E-01   -.24261E-05
   3  Normalizat    .80812        .21080        .25908E-03    .16455E-04
   4  Prefactor     .86221        .18028        .21313E-03    .70463E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.28828
  Index      = 1.63593
  Normalizat = 0.80812
  Prefactor  = 0.862211
 **********
 **   18 **HESSE 
 **********

 FCN=   4536.363     FROM HESSE     STATUS=OK            27 CALLS      335 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2883        26.312        .36285E-03   -1.6248    
   2  Index         1.6359        1.3411        .70588E-03   -.73801    
   3  Normalizat    .80812        .21095        .10363E-04   -.99768    
   4  Prefactor     .86221        .18041        .85253E-05   -.97474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23063e-11
Minuit parameter uncertainties:
  1  26.3538
  2  1.37242
  3  0.211168
  4  0.180531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/554386': 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) = 4536.36264407
delta logL = 0.0461850897864

Extracting fit parameters...

4FGL J0833.9+4223
   Spectrum: PowerLaw
335    Prefactor:  7.288e+00  2.635e+01  1.000e-04  1.000e+04 ( 1.000e-13)
336        Index:  1.636e+00  1.372e+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.622e-01  1.805e-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:  8.081e-01  2.112e-01  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/554386/cmap_HighResolution_240624001_240883201_4FGL_J0833.9+4223_daily_bin5.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.02e-03', job_status='DONE', photon_flux_upper_limit='7.78e-08', time_completed='2021-08-30 00:41:46.486670', job_id='554386', GAL2='0.86', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630309306.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='4.62e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='5' AND source_name='4FGL J0833.9+4223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 00:41:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 554386: <4FGL_J0833.9+4223_daily_bin5> in cluster <slac> Done

Job <4FGL_J0833.9+4223_daily_bin5> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Aug 30 00:25:26 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 00:25:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 00:25:27 2021
Terminated at Mon Aug 30 00:41:47 2021
Results reported at Mon Aug 30 00:41:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0833.9+4223_daily_bin5 128.476 42.3989 240624001 240883201 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 :                                   906.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             262.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            981 sec.

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

