/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 4 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 = 7428
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0836.2+2141_daily_bin407
RA = 129.051, Dec = 21.6971
tmin = 344822401, tmax = 345081601
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='583280', job_status='RUN', time_executed='2021-08-30 02:00:58.013392', time_epoch_executed='1630314058.01' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='407'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/583280

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/583280/ft1_4FGL_J0836.2+2141_daily_bin407.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/583280/ft2_4FGL_J0836.2+2141_daily_bin407.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/583280/ft1_4FGL_J0836.2+2141_daily_bin407.fits outfile=/scratch/kocevski/583280/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin407.fits ra=129.051 dec=21.6971 rad=12.0 tmin=344822401.0 tmax=345081601.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.65
user 3.16
sys 0.43

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/583280/ft2_4FGL_J0836.2+2141_daily_bin407.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/583280/ft2_4FGL_J0836.2+2141_daily_bin407.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/583280/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin407.fits evtable="EVENTS" outfile="/scratch/kocevski/583280/ft1_filtered_4FGL_J0836.2+2141_daily_bin407.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 0.74
user 0.32
sys 0.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/583280/ft1_filtered_4FGL_J0836.2+2141_daily_bin407.fits" evtable="EVENTS" scfile=/scratch/kocevski/583280/ft2_4FGL_J0836.2+2141_daily_bin407.fits sctable="SC_DATA" outfile=/scratch/kocevski/583280/ltcube_344822401_345081601_4FGL_J0836.2+2141_daily_bin407.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/583280/ft2_4FGL_J0836.2+2141_daily_bin407.fits
.....................!
real 12.30
user 11.67
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/583280/ft1_filtered_4FGL_J0836.2+2141_daily_bin407.fits evtable="EVENTS" scfile=/scratch/kocevski/583280/ft2_4FGL_J0836.2+2141_daily_bin407.fits sctable="SC_DATA" expcube=/scratch/kocevski/583280/ltcube_344822401_345081601_4FGL_J0836.2+2141_daily_bin407.fits outfile=/scratch/kocevski/583280/expmap_344822401_345081601_4FGL_J0836.2+2141_daily_bin407.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/583280/ltcube_344822401_345081601_4FGL_J0836.2+2141_daily_bin407.fits
.....................!
real 190.70
user 185.91
sys 4.25

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

Setting source of interest to:
4FGL J0836.2+2141 @ 129.051 21.6971

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/583280/ft1_filtered_4FGL_J0836.2+2141_daily_bin407.fits scfile=/scratch/kocevski/583280/ft2_4FGL_J0836.2+2141_daily_bin407.fits outfile=/scratch/kocevski/583280/cmap_344822401_345081601_4FGL_J0836.2+2141_daily_bin407.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=129.051 yref=21.6971 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 0.76
user 0.37
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/583280/ft1_filtered_4FGL_J0836.2+2141_daily_bin407.fits scfile=/scratch/kocevski/583280/ft2_4FGL_J0836.2+2141_daily_bin407.fits outfile=/scratch/kocevski/583280/cmap_HighResolution_344822401_345081601_4FGL_J0836.2+2141_daily_bin407.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=129.051 yref=21.6971 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 0.79
user 0.37
sys 0.40

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/583280/ft1_filtered_4FGL_J0836.2+2141_daily_bin407.fits evtable="EVENTS" scfile=/scratch/kocevski/583280/ft2_4FGL_J0836.2+2141_daily_bin407.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/583280/Model_4FGL_J0836.2+2141_daily_bin407.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/583280/ft1_filtered_4FGL_J0836.2+2141_daily_bin407.fits.....................!
real 59.80
user 57.65
sys 1.48

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/583280/ft1_filtered_4FGL_J0836.2+2141_daily_bin407.fits', '/scratch/kocevski/583280/ft2_4FGL_J0836.2+2141_daily_bin407.fits', expMap='/scratch/kocevski/583280/expmap_344822401_345081601_4FGL_J0836.2+2141_daily_bin407.fits', expCube='/scratch/kocevski/583280/ltcube_344822401_345081601_4FGL_J0836.2+2141_daily_bin407.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/583280/Model_4FGL_J0836.2+2141_daily_bin407.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0836.2+2141'

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  2.336e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.731e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
300        Scale:  5.085e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/583280/ft1_filtered_4FGL_J0836.2+2141_daily_bin407.fits
Spacecraft file(s): /scratch/kocevski/583280/ft2_4FGL_J0836.2+2141_daily_bin407.fits
Exposure map: /scratch/kocevski/583280/expmap_344822401_345081601_4FGL_J0836.2+2141_daily_bin407.fits
Exposure cube: /scratch/kocevski/583280/ltcube_344822401_345081601_4FGL_J0836.2+2141_daily_bin407.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/583280/Model_4FGL_J0836.2+2141_daily_bin407.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) = 6199.33713856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9794       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.690       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10606E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13609E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11786E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .99547       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .66273       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.482       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.299       1.0000         .10000E-03   10000.    
    16 'norm      '    2.7367       1.0000         .10000E-03   10000.    
    17 'norm      '    .10632E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.6984       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .62602       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1467       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6199.329     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2252 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9798        16.720       -.20922E-05   -.18712E-04
   2  Prefactor     20.648        43.056       -.52015E-05   -.10047E-04
   3  Prefactor     .10000E-03    11.647        .95737E-07** at limit **
   4  norm          .10000E-03    39.433       -.15996E-05** at limit **
   5  Prefactor     .10000E-03    11.906        .24191E-06** at limit **
   6  Prefactor     .10000E-03    126.75       -.36777E-05** at limit **
   7  Prefactor     .10000E-03    5.8283        .23896E-07** at limit **
   8  Prefactor     .10000E-03    102.96        .95520E-05** at limit **
   9  norm          .10000E-03    .60977        .36654E-06** at limit **
  10  Prefactor     .10000E-03    4.6895        .44409E-07** at limit **
  11  Prefactor     .99530        5.8554       -.12009E-05   -.14163E-04
  12  Prefactor     .10000E-03    11.370       -.15182E-06** at limit **
  13  norm          .66260        .70468       -.14948E-07    .30762E-04
  14  Prefactor     18.487        13.403       -.10761E-06   -.22132E-04
  15  Prefactor     23.300        19.193       -.22080E-06   -.25154E-04
  16  norm          2.7368        4.3549       -.67850E-07   -.25703E-05
  17  norm          .10000E-03    32.091        .11558E-05** at limit **
  18  norm          2.6983        1.9100        .45582E-08    .10103E-05
  19  Prefactor     .10000E-03    14.204       -.66444E-07** at limit **
  20  Normalizat    .62595        .17735        .29956E-07   -.74843E-04
  21  Prefactor     1.1467        .14452        .15669E-06   -.13974E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.97981
  Prefactor  = 20.6477
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.995297
  Prefactor  = 0.0001
  norm       = 0.662602
  Prefactor  = 18.4867
  Prefactor  = 23.2997
  norm       = 2.73677
  norm       = 0.0001
  norm       = 2.69829
  Prefactor  = 0.0001
  Normalizat = 0.625948
  Prefactor  = 1.14675
 **********
 **   18 **HESSE 
 **********

 FCN=   6199.329     FROM HESSE     STATUS=OK           319 CALLS     2571 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9798        16.750        .82105E-03   -1.5219    
   2  Prefactor     20.648        43.008        .88055E-04   -1.4799    
   3  Prefactor     .10000E-03    11.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    39.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    130.17        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.8295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    101.40        .57642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .87014        .11151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.7173        .16639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .99530        5.8966        .36337E-03   -1.5508    
  12  Prefactor     .10000E-03    11.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .66260        .66747        .62128E-03   -1.5545    
  14  Prefactor     18.487        13.332        .93164E-04   -1.4848    
  15  Prefactor     23.300        19.329        .82985E-04   -1.4742    
  16  norm          2.7368        4.3407        .20207E-03   -1.5377    
  17  norm          .10000E-03    32.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.6983        1.9106        .89189E-04   -1.5379    
  19  Prefactor     .10000E-03    14.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .62595        .20453        .29361E-03   -1.0689    
  21  Prefactor     1.1467        .16948        .19030E-03   -.87986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.60986e-11
Minuit parameter uncertainties:
  1  16.7634
  2  43.0724
  3  3.60901e-06
  4  5.95448e-06
  5  8.86878e-06
  6  0.000598791
  7  1.05578e-06
  8  0.00014819
  9  8.26313e-06
  10  4.57275e-06
  11  4.8456
  12  5.43303e-06
  13  0.667475
  14  13.3345
  15  19.3338
  16  4.34121
  17  2.16812e-05
  18  1.9106
  19  1.84109e-06
  20  0.204781
  21  0.169558
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  4.573e-06  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.731e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
300        Scale:  5.085e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.147e+00  1.696e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  6.259e-01  2.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 129.051 21.697
Photon Flux Upper Limit: 7.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/583280/likelihoodResults_344822401_345081601_4FGL_J0836.2+2141_daily_bin407.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) = 6199.33030183
delta logL = -0.0010102249571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6199.32929253
delta logL = -9.34381205298e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10437E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7430       1.0000          .0000       10.000    
     3 'Normalizat'    .62576       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1469       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+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=   6199.255     FROM MIGRAD    STATUS=CONVERGED    166 CALLS      318 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14071E-01    .28008        .52754E-02    .16934E-01
   2  Index         6.9905        2.9431        .41632        .98047E-04
   3  Normalizat    .59774        .16276E-01    .29361E-03    .32835E-03
   4  Prefactor     1.1631        .14008E-01    .19030E-03   -.15517E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.014071
  Index      = 6.99052
  Normalizat = 0.597744
  Prefactor  = 1.16313
 **********
 **   18 **HESSE 
 **********

 FCN=   6199.255     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      349 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14071E-01    4.4468        .20809E-03   -1.5684    
   2  Index         6.9905        6.4904        .13696E-01    .40945    
   3  Normalizat    .59774        .11142        .11744E-04   -1.0808    
   4  Prefactor     1.1631        .92585E-01    .38060E-04   -.87474    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.41353e-08
Minuit parameter uncertainties:
  1  0.498541
  2  23.0001
  3  0.11146
  4  0.0925975
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/583280': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6199.25487904
delta logL = 0.0744125574347

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.407e-02  4.985e-01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  6.991e+00  2.300e+01  0.000e+00  1.000e+01 (-1.000e+00)
300        Scale:  5.085e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.163e+00  9.260e-02  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  5.977e-01  1.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 129.051 21.697

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/583280/cmap_HighResolution_344822401_345081601_4FGL_J0836.2+2141_daily_bin407.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.24e-03', job_status='DONE', photon_flux_upper_limit='7.91e-08', time_completed='2021-08-30 02:10:39.002586', job_id='583280', GAL2='1.16', fit_tolerance='1e-08', EG2='0.60', EG='0.63', time_epoch_completed='1630314639.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='7.44e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='407' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:10:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 583280: <4FGL_J0836.2+2141_daily_bin407> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin407> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 30 02:00:36 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:00:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 02:00:38 2021
Terminated at Mon Aug 30 02:10:39 2021
Results reported at Mon Aug 30 02:10:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin407 129.051 21.6971 344822401 345081601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0836.2+2141 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   581.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   601 sec.
    Turnaround time :                            603 sec.

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

