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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1029
RA = 129.051, Dec = 21.6971
tmin = 506044801, tmax = 506304001
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='586595', job_status='RUN', time_executed='2021-08-30 02:13:08.768707', time_epoch_executed='1630314788.77' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/586595

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/586595/ft1_4FGL_J0836.2+2141_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/586595/ft2_4FGL_J0836.2+2141_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/586595/ft1_4FGL_J0836.2+2141_daily_bin1029.fits outfile=/scratch/kocevski/586595/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1029.fits ra=129.051 dec=21.6971 rad=12.0 tmin=506044801.0 tmax=506304001.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.60
user 4.09
sys 0.49

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/586595/ft2_4FGL_J0836.2+2141_daily_bin1029.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/586595/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1029.fits evtable="EVENTS" outfile="/scratch/kocevski/586595/ft1_filtered_4FGL_J0836.2+2141_daily_bin1029.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.80
user 0.34
sys 0.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/586595/ft1_filtered_4FGL_J0836.2+2141_daily_bin1029.fits" evtable="EVENTS" scfile=/scratch/kocevski/586595/ft2_4FGL_J0836.2+2141_daily_bin1029.fits sctable="SC_DATA" outfile=/scratch/kocevski/586595/ltcube_506044801_506304001_4FGL_J0836.2+2141_daily_bin1029.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/586595/ft2_4FGL_J0836.2+2141_daily_bin1029.fits
.....................!
real 14.31
user 13.64
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/586595/ft1_filtered_4FGL_J0836.2+2141_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/586595/ft2_4FGL_J0836.2+2141_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/586595/ltcube_506044801_506304001_4FGL_J0836.2+2141_daily_bin1029.fits outfile=/scratch/kocevski/586595/expmap_506044801_506304001_4FGL_J0836.2+2141_daily_bin1029.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/586595/ltcube_506044801_506304001_4FGL_J0836.2+2141_daily_bin1029.fits
.....................!
real 190.29
user 185.29
sys 4.49

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/586595/ft1_filtered_4FGL_J0836.2+2141_daily_bin1029.fits scfile=/scratch/kocevski/586595/ft2_4FGL_J0836.2+2141_daily_bin1029.fits outfile=/scratch/kocevski/586595/cmap_506044801_506304001_4FGL_J0836.2+2141_daily_bin1029.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 1.53
user 0.38
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/586595/ft1_filtered_4FGL_J0836.2+2141_daily_bin1029.fits scfile=/scratch/kocevski/586595/ft2_4FGL_J0836.2+2141_daily_bin1029.fits outfile=/scratch/kocevski/586595/cmap_HighResolution_506044801_506304001_4FGL_J0836.2+2141_daily_bin1029.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 1.66
user 0.38
sys 0.44

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.852       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.854       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.405       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9091       1.0000         .10000E-03   10000.    
     9 'norm      '    .10355E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6652       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.514       1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.616       1.0000         .10000E-03   10000.    
    16 'norm      '    8.3171       1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2093       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .98314       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=   5929.576     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     2175 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.854        23.987        .24752E-05    .62733E-04
   2  Prefactor     12.787        66.678       -.15669E-03    .22638E-04
   3  Prefactor     .10000E-03    13.407       -.14977E-05** at limit **
   4  norm          .10000E-03    50.700       -.13427E-04** at limit **
   5  Prefactor     .10000E-03    19.866        .89329E-06** at limit **
   6  Prefactor     38.414        34.550        .75443E-05    .12966E-04
   7  Prefactor     .10000E-03    18.571        .11821E-04** at limit **
   8  Prefactor     3.8973        31.820       -.14571E-04   -.82638E-04
   9  norm          .10000E-03    .68780        .21404E-06** at limit **
  10  Prefactor     .10000E-03    9.1527       -.35137E-06** at limit **
  11  Prefactor     .10000E-03    2.4188       -.43005E-07** at limit **
  12  Prefactor     .10000E-03    23.193       -.11520E-04** at limit **
  13  norm          1.6652        .80757       -.14125E-06   -.61928E-04
  14  Prefactor     12.514        13.472       -.11955E-05   -.60891E-04
  15  Prefactor     26.617        19.685       -.15156E-05    .13594E-04
  16  norm          8.3170        7.1010       -.31622E-06    .43309E-04
  17  norm          .10000E-03    36.094        .25474E-04** at limit **
  18  norm          .10000E-03    1.4706       -.80954E-07** at limit **
  19  Prefactor     .10000E-03    22.723       -.10992E-04** at limit **
  20  Normalizat    1.2092        .20379        .49628E-05   -.24682E-04
  21  Prefactor     .98329        .16416        .28735E-05    .15116E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.8538
  Prefactor  = 12.7872
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.4136
  Prefactor  = 0.0001
  Prefactor  = 3.89727
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.66516
  Prefactor  = 12.5141
  Prefactor  = 26.6168
  norm       = 8.31696
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.20917
  Prefactor  = 0.983295
 **********
 **   18 **HESSE 
 **********

 FCN=   5929.576     FROM HESSE     STATUS=OK           317 CALLS     2492 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.854        24.000        .78788E-04   -1.4691    
   2  Prefactor     12.787        66.836        .11172E-03   -1.4993    
   3  Prefactor     .10000E-03    13.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    50.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     38.414        34.556        .64675E-04   -1.4468    
   7  Prefactor     .10000E-03    18.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.8973        29.693        .20406E-03   -1.5313    
   9  norm          .10000E-03    1.1392        .11849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.2502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.4255        .11695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6652        .80785        .45692E-04   -1.5450    
  14  Prefactor     12.514        13.455        .11324E-03   -1.5000    
  15  Prefactor     26.617        19.819        .77651E-04   -1.4676    
  16  norm          8.3170        7.1033        .13901E-03   -1.5131    
  17  norm          .10000E-03    36.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.5018        .91166E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2092        .24455        .25990E-03   -.86320    
  21  Prefactor     .98329        .19675        .23620E-03   -.93288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9971e-10
Minuit parameter uncertainties:
  1  24.0087
  2  58.5715
  3  9.35826e-06
  4  0.000119595
  5  0.000127983
  6  34.5739
  7  9.6365e-05
  8  21.5292
  9  2.60561e-05
  10  4.77802e-05
  11  9.94585e-06
  12  9.22233e-05
  13  0.807858
  14  13.4581
  15  19.8238
  16  7.10403
  17  0.000175206
  18  8.65864e-06
  19  3.86953e-05
  20  0.244779
  21  0.196894
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  4.778e-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:  9.833e-01  1.969e-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.209e+00  2.448e-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: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/586595/likelihoodResults_506044801_506304001_4FGL_J0836.2+2141_daily_bin1029.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) = 5929.57691167
delta logL = -0.000515241153153

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5929.57639771
delta logL = -1.27491512103e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13275E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7709       1.0000          .0000       10.000    
     3 'Normalizat'    1.2092       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98329       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5929.434     FROM MIGRAD    STATUS=FAILED       171 CALLS      316 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72185        84.897        .18142E-01   -.29920E-02
   2  Index         4.6970        7.3458        .31554        .87101E-04
   3  Normalizat    1.1577        .15418        .25990E-03   -.57871E-04
   4  Prefactor     1.0100        .72863E-01    .23620E-03   -.42943E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5929.434     FROM SIMPLEX   STATUS=UNCHANGED     81 CALLS      397 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72185        84.897        .26600E-03   -.29920E-02
   2  Index         4.6970        7.3458        .32053E-02    .87101E-04
   3  Normalizat    1.1577        .15418        .15182E-03   -.57871E-04
   4  Prefactor     1.0100        .72863E-01    .56326E-04   -.42943E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5929.434     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      431 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72178        5.7993        .11138E-03    .18689E-03
   2  Index         4.6970        3.4122        .92777E-02   -.28277E-04
   3  Normalizat    1.1577        .25172        .10396E-04   -.46301E-03
   4  Prefactor     1.0100        .20085        .47239E-04   -.74696E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.721783
  Index      = 4.69703
  Normalizat = 1.15768
  Prefactor  = 1.00998
 **********
 **   18 **HESSE 
 **********

 FCN=   5929.434     FROM HESSE     STATUS=OK            25 CALLS      456 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .72178        2.7601        .44551E-05   -1.5878    
   2  Index         4.6970        2.4190        .37111E-03   -.60632E-01
   3  Normalizat    1.1577        .25162        .20792E-05   -.87921    
   4  Prefactor     1.0100        .20083        .94479E-05   -.92398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.86611e-10
Minuit parameter uncertainties:
  1  2.76059
  2  2.52536
  3  0.251882
  4  0.20098
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/586595': 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) = 5929.43411808
delta logL = 0.14227835612

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  7.218e-01  2.761e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  4.697e+00  2.525e+00  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.010e+00  2.010e-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.158e+00  2.519e-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/586595/cmap_HighResolution_506044801_506304001_4FGL_J0836.2+2141_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.39e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-08-30 02:23:10.637856', job_id='586595', GAL2='1.01', fit_tolerance='1e-08', EG2='1.16', EG='1.21', time_epoch_completed='1630315390.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.42e-01', ts2='0.32', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1029' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:23:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 586595: <4FGL_J0836.2+2141_daily_bin1029> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin1029> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 02:10:48 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:10:51 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:10:51 2021
Terminated at Mon Aug 30 02:23:11 2021
Results reported at Mon Aug 30 02:23:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1029 129.051 21.6971 506044801 506304001 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 :                                   599.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            743 sec.

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

