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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin731
RA = 129.051, Dec = 21.6971
tmin = 428803201, tmax = 429062401
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='585022', job_status='RUN', time_executed='2021-08-30 02:06:34.005087', time_epoch_executed='1630314394.01' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/585022

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/585022/ft1_4FGL_J0836.2+2141_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/585022/ft2_4FGL_J0836.2+2141_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/585022/ft1_4FGL_J0836.2+2141_daily_bin731.fits outfile=/scratch/kocevski/585022/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin731.fits ra=129.051 dec=21.6971 rad=12.0 tmin=428803201.0 tmax=429062401.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 6.77
user 6.25
sys 0.49

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/585022/ft2_4FGL_J0836.2+2141_daily_bin731.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/585022/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin731.fits evtable="EVENTS" outfile="/scratch/kocevski/585022/ft1_filtered_4FGL_J0836.2+2141_daily_bin731.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.76
user 0.33
sys 0.41

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/585022/ft1_filtered_4FGL_J0836.2+2141_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/585022/ft2_4FGL_J0836.2+2141_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/585022/ltcube_428803201_429062401_4FGL_J0836.2+2141_daily_bin731.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/585022/ft2_4FGL_J0836.2+2141_daily_bin731.fits
.....................!
real 12.36
user 11.68
sys 0.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/585022/ft1_filtered_4FGL_J0836.2+2141_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/585022/ft2_4FGL_J0836.2+2141_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/585022/ltcube_428803201_429062401_4FGL_J0836.2+2141_daily_bin731.fits outfile=/scratch/kocevski/585022/expmap_428803201_429062401_4FGL_J0836.2+2141_daily_bin731.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/585022/ltcube_428803201_429062401_4FGL_J0836.2+2141_daily_bin731.fits
.....................!
real 190.29
user 185.12
sys 4.52

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/585022/ft1_filtered_4FGL_J0836.2+2141_daily_bin731.fits scfile=/scratch/kocevski/585022/ft2_4FGL_J0836.2+2141_daily_bin731.fits outfile=/scratch/kocevski/585022/cmap_428803201_429062401_4FGL_J0836.2+2141_daily_bin731.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.82
user 0.36
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/585022/ft1_filtered_4FGL_J0836.2+2141_daily_bin731.fits scfile=/scratch/kocevski/585022/ft2_4FGL_J0836.2+2141_daily_bin731.fits outfile=/scratch/kocevski/585022/cmap_HighResolution_428803201_429062401_4FGL_J0836.2+2141_daily_bin731.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.83
user 0.39
sys 0.40

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/585022/ft1_filtered_4FGL_J0836.2+2141_daily_bin731.fits', '/scratch/kocevski/585022/ft2_4FGL_J0836.2+2141_daily_bin731.fits', expMap='/scratch/kocevski/585022/expmap_428803201_429062401_4FGL_J0836.2+2141_daily_bin731.fits', expCube='/scratch/kocevski/585022/ltcube_428803201_429062401_4FGL_J0836.2+2141_daily_bin731.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/585022/Model_4FGL_J0836.2+2141_daily_bin731.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/585022/ft1_filtered_4FGL_J0836.2+2141_daily_bin731.fits
Spacecraft file(s): /scratch/kocevski/585022/ft2_4FGL_J0836.2+2141_daily_bin731.fits
Exposure map: /scratch/kocevski/585022/expmap_428803201_429062401_4FGL_J0836.2+2141_daily_bin731.fits
Exposure cube: /scratch/kocevski/585022/ltcube_428803201_429062401_4FGL_J0836.2+2141_daily_bin731.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/585022/Model_4FGL_J0836.2+2141_daily_bin731.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) = 6134.1054066

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.214       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.199       1.0000         .10000E-03   10000.    
     4 'norm      '    37.102       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5325       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .48336       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1302       1.0000         .10000E-03   10000.    
    13 'norm      '    2.5269       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.893       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.893       1.0000         .10000E-03   10000.    
    16 'norm      '    .87166       1.0000         .10000E-03   10000.    
    17 'norm      '    .10169E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.0221       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.823       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0959       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2704       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=   6134.092     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     2185 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.897       -.48778E-04** at limit **
   2  Prefactor     24.212        41.893       -.28727E-05    .33021E-04
   3  Prefactor     14.199        27.077        .12835E-06    .42003E-04
   4  norm          37.099        51.104       -.42160E-05    .11569E-04
   5  Prefactor     .10000E-03    9.5879        .38471E-05** at limit **
   6  Prefactor     .10000E-03    9.8617       -.11314E-05** at limit **
   7  Prefactor     2.5266        50.211       -.17867E-04   -.45167E-04
   8  Prefactor     .10000E-03    13.374       -.40076E-05** at limit **
   9  norm          .48337        .95272       -.49180E-06   -.21918E-02
  10  Prefactor     .10000E-03    8.2806       -.13082E-05** at limit **
  11  Prefactor     .10000E-03    2.5208       -.67794E-07** at limit **
  12  Prefactor     7.1319        30.196        .25933E-05   -.63467E-05
  13  norm          2.5269        1.1131       -.11148E-06   -.51051E-04
  14  Prefactor     11.893        15.099        .25324E-06   -.59949E-04
  15  Prefactor     23.895        18.214        .91106E-06   -.26025E-05
  16  norm          .89004        8.7903       -.23816E-05   -.16327E-03
  17  norm          .10000E-03    34.783        .46265E-04** at limit **
  18  norm          2.0223        1.9686       -.16317E-08    .92014E-04
  19  Prefactor     22.776        46.067       -.83159E-04   -.23371E-04
  20  Normalizat    1.0955        .20891        .13970E-05    .42356E-03
  21  Prefactor     1.2708        .17801        .31291E-05    .38802E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 24.2123
  Prefactor  = 14.1989
  norm       = 37.0993
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.52659
  Prefactor  = 0.0001
  norm       = 0.483373
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.13189
  norm       = 2.52687
  Prefactor  = 11.8933
  Prefactor  = 23.8948
  norm       = 0.890044
  norm       = 0.000100001
  norm       = 2.02227
  Prefactor  = 22.7763
  Normalizat = 1.09547
  Prefactor  = 1.27079
 **********
 **   18 **HESSE 
 **********

 FCN=   6134.092     FROM HESSE     STATUS=OK           321 CALLS     2506 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.703        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     24.212        41.901        .81404E-04   -1.4723    
   3  Prefactor     14.199        27.080        .10630E-03   -1.4954    
   4  norm          37.099        51.111        .65797E-04   -1.4489    
   5  Prefactor     .10000E-03    9.5920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.8665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5266        50.521        .25666E-03   -1.5390    
   8  Prefactor     .10000E-03    13.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .48337        .81886        .10201E-02   -1.5569    
  10  Prefactor     .10000E-03    8.4154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.5276        .12143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.1319        30.201        .15022E-03   -1.5174    
  13  norm          2.5269        1.1113        .50455E-04   -1.5390    
  14  Prefactor     11.893        15.091        .11616E-03   -1.5018    
  15  Prefactor     23.895        18.298        .81948E-04   -1.4730    
  16  norm          .89004        25.799        .44858E-02   -1.5519    
  17  norm          .10000E-03    34.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.0223        1.9708        .10565E-03   -1.5424    
  19  Prefactor     22.776        46.178        .83844E-04   -1.4753    
  20  Normalizat    1.0955        .25233        .28196E-03   -.89898    
  21  Prefactor     1.2708        .21636        .23109E-03   -.84180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30453e-09
Minuit parameter uncertainties:
  1  0.000562834
  2  41.9514
  3  27.103
  4  51.1715
  5  4.54474e-06
  6  4.0549e-06
  7  22.6176
  8  1.0666e-05
  9  0.818874
  10  2.47289e-05
  11  6.88082e-06
  12  29.3775
  13  1.11131
  14  15.0961
  15  18.3022
  16  9.58789
  17  0.000292405
  18  1.9709
  19  46.2509
  20  0.252607
  21  0.216517
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  2.473e-05  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.271e+00  2.165e-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:  1.095e+00  2.526e-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: 9.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/585022/likelihoodResults_428803201_429062401_4FGL_J0836.2+2141_daily_bin731.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) = 6134.09290171
delta logL = -0.000566462953429

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6134.09233564
delta logL = -3.9834958443e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7339       1.0000          .0000       10.000    
     3 'Normalizat'    1.0953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2709       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=   6134.092     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      247 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10010E-03    560.67        .18142E-02** at limit **
   2  Index         2.7603        5.3486        .50000       -.22960E-05
   3  Normalizat    1.0955        .45677E-01    .28196E-03    .19958E-04
   4  Prefactor     1.2708        .40134E-01    .23109E-03    .21056E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001001
  Index      = 2.76027
  Normalizat = 1.09546
  Prefactor  = 1.27079
 **********
 **   18 **HESSE 
 **********

 FCN=   6134.092     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10010E-03    1858.8        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7603        5.9978        .50000       -.46447    
   3  Normalizat    1.0955        .17237        .11279E-04   -.89898    
   4  Prefactor     1.2708        .15128        .92435E-05   -.84180    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.0676e-08
Minuit parameter uncertainties:
  1  0.0281346
  2  3265.63
  3  0.172461
  4  0.151329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/585022': 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) = 6134.09233523
delta logL = 1.30203261506e-08

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.001e-04  2.813e-02  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.760e+00  3.266e+03  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.271e+00  1.513e-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:  1.095e+00  1.725e-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/585022/cmap_HighResolution_428803201_429062401_4FGL_J0836.2+2141_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.10e-03', job_status='DONE', photon_flux_upper_limit='9.00e-08', time_completed='2021-08-30 02:16:47.412031', job_id='585022', GAL2='1.27', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630315007.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='1.30e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='731' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:16:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 585022: <4FGL_J0836.2+2141_daily_bin731> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin731> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 30 02:06:08 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:06:09 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:06:09 2021
Terminated at Mon Aug 30 02:16:48 2021
Results reported at Mon Aug 30 02:16:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin731 129.051 21.6971 428803201 429062401 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 :                                   614.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             326.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   638 sec.
    Turnaround time :                            640 sec.

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

