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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin97
RA = 129.051, Dec = 21.6971
tmin = 264470401, tmax = 264729601
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='581669', job_status='RUN', time_executed='2021-08-30 02:00:13.791479', time_epoch_executed='1630314013.79' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='97'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/581669

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/581669/ft1_4FGL_J0836.2+2141_daily_bin97.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/581669/ft2_4FGL_J0836.2+2141_daily_bin97.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/581669/ft1_4FGL_J0836.2+2141_daily_bin97.fits outfile=/scratch/kocevski/581669/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin97.fits ra=129.051 dec=21.6971 rad=12.0 tmin=264470401.0 tmax=264729601.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 8.31
user 1.37
sys 6.90

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/581669/ft2_4FGL_J0836.2+2141_daily_bin97.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/581669/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin97.fits evtable="EVENTS" outfile="/scratch/kocevski/581669/ft1_filtered_4FGL_J0836.2+2141_daily_bin97.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 7.21
user 0.36
sys 6.80

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/581669/ft1_filtered_4FGL_J0836.2+2141_daily_bin97.fits" evtable="EVENTS" scfile=/scratch/kocevski/581669/ft2_4FGL_J0836.2+2141_daily_bin97.fits sctable="SC_DATA" outfile=/scratch/kocevski/581669/ltcube_264470401_264729601_4FGL_J0836.2+2141_daily_bin97.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/581669/ft2_4FGL_J0836.2+2141_daily_bin97.fits
.....................!
real 20.40
user 12.31
sys 7.93

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/581669/ft1_filtered_4FGL_J0836.2+2141_daily_bin97.fits evtable="EVENTS" scfile=/scratch/kocevski/581669/ft2_4FGL_J0836.2+2141_daily_bin97.fits sctable="SC_DATA" expcube=/scratch/kocevski/581669/ltcube_264470401_264729601_4FGL_J0836.2+2141_daily_bin97.fits outfile=/scratch/kocevski/581669/expmap_264470401_264729601_4FGL_J0836.2+2141_daily_bin97.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/581669/ltcube_264470401_264729601_4FGL_J0836.2+2141_daily_bin97.fits
.....................!
real 199.19
user 185.47
sys 13.31

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/581669/ft1_filtered_4FGL_J0836.2+2141_daily_bin97.fits scfile=/scratch/kocevski/581669/ft2_4FGL_J0836.2+2141_daily_bin97.fits outfile=/scratch/kocevski/581669/cmap_264470401_264729601_4FGL_J0836.2+2141_daily_bin97.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 7.21
user 0.37
sys 6.70

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/581669/ft1_filtered_4FGL_J0836.2+2141_daily_bin97.fits scfile=/scratch/kocevski/581669/ft2_4FGL_J0836.2+2141_daily_bin97.fits outfile=/scratch/kocevski/581669/cmap_HighResolution_264470401_264729601_4FGL_J0836.2+2141_daily_bin97.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 7.42
user 0.38
sys 6.73

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    119.09       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.522       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.010       1.0000         .10000E-03   10000.    
     9 'norm      '    .59711       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .28462       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3755       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7506       1.0000         .10000E-03   10000.    
    13 'norm      '    .82264       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.3605       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .86115       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1065       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.

 FCN=   6138.312     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2183 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    17.784        .90712E-02** at limit **
   2  Prefactor     .10003E-03    17.610        .90712E-02** at limit **
   3  Prefactor     .10000E-03    13.999        .90712E-02** at limit **
   4  norm          119.09        95.759        .92187E-03    .10514E-03
   5  Prefactor     15.521        21.843        .25415E-02    .93091E-04
   6  Prefactor     .10011E-03    19.927        .90712E-02** at limit **
   7  Prefactor     .10002E-03    28.788        .90712E-02** at limit **
   8  Prefactor     14.014        25.748        .26752E-02   -.89470E-03
   9  norm          .59714        1.4444        .11661E-01    .14198E-02
  10  Prefactor     .28386        6.2928        .58427E-01    .48557E-03
  11  Prefactor     1.3749        5.0117        .92859E-02    .96466E-03
  12  Prefactor     3.7506        72.184        .52120E-02    .11863E-03
  13  norm          .82265        .49390        .93935E-02   -.57137E-04
  14  Prefactor     .10000E-03    3.8635        .90712E-02** at limit **
  15  Prefactor     .10001E-03    8.1442        .90712E-01** at limit **
  16  norm          .10000E-03    2.1050        .90712E-02** at limit **
  17  norm          .10000E-03    8.8261        .90712E-02** at limit **
  18  norm          .10000E-03    .70802        .90712E-02** at limit **
  19  Prefactor     6.3607        52.867        .39788E-02   -.27408E-04
  20  Normalizat    .86099        .17484        .44403E-01    .23075E-04
  21  Prefactor     1.1067        .14765        .37344E-01    .21044E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Prefactor  = 0.000100029
  Prefactor  = 0.000100001
  norm       = 119.089
  Prefactor  = 15.5212
  Prefactor  = 0.000100112
  Prefactor  = 0.000100025
  Prefactor  = 14.0142
  norm       = 0.597144
  Prefactor  = 0.283855
  Prefactor  = 1.37488
  Prefactor  = 3.75057
  norm       = 0.82265
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.36067
  Normalizat = 0.860986
  Prefactor  = 1.1067
 **********
 **   18 **HESSE 
 **********

 FCN=   6138.312     FROM HESSE     STATUS=OK           317 CALLS     2500 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    17.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10003E-03    17.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          119.09        95.855        .36875E-04   -1.3521    
   5  Prefactor     15.521        21.832        .10166E-03   -1.4920    
   6  Prefactor     .10011E-03    19.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    28.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.014        23.974        .10701E-03   -1.4959    
   9  norm          .59714        1.2966        .10791E-03   -1.5553    
  10  Prefactor     .28386        32.178        .35880E-02   -1.5601    
  11  Prefactor     1.3749        4.9618        .31902E-03   -1.5473    
  12  Prefactor     3.7506        71.828        .20848E-03   -1.5321    
  13  norm          .82265        .49700        .41171E-04   -1.5527    
  14  Prefactor     .10000E-03    3.8730        .15038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    45.115        .42823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.1071        .11101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.8283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .71032        .64376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.3607        52.836        .15915E-03   -1.5204    
  20  Normalizat    .86099        .19821        .25779E-03   -.97845    
  21  Prefactor     1.1067        .17040        .20285E-03   -.89253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2703e-08
Minuit parameter uncertainties:
  1  0.000839144
  2  0.00142173
  3  0.000264409
  4  95.9799
  5  21.8436
  6  0.00298546
  7  0.00170106
  8  23.9907
  9  1.29665
  10  6.04674
  11  4.96327
  12  32.8718
  13  0.497004
  14  4.74027e-06
  15  0.000952429
  16  5.62093e-07
  17  3.0308e-07
  18  2.60262e-07
  19  36.7085
  20  0.198374
  21  0.17048
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  2.839e-01  6.047e+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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.107e+00  1.705e-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:  8.610e-01  1.984e-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: 8.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/581669/likelihoodResults_264470401_264729601_4FGL_J0836.2+2141_daily_bin97.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) = 6138.30555712
delta logL = 0.00691039645972

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6138.29296943
delta logL = 0.0194980820079

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6138.293     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      275 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3346        9.0013        .18955E-02    .35201E-04
   2  Index         2.2526        1.7301        .22027E-01   -.35305E-04
   3  Normalizat    .86078        .19106        .25781E-03   -.43656E-05
   4  Prefactor     1.1050        .16932        .20297E-03    .48729E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.33463
  Index      = 2.25258
  Normalizat = 0.860781
  Prefactor  = 1.10501
 **********
 **   18 **HESSE 
 **********

 FCN=   6138.293     FROM HESSE     STATUS=OK            27 CALLS      302 TOTAL
                     EDM=   .45E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3346        8.7968        .75820E-04   -1.5477    
   2  Index         2.2526        1.7145        .44054E-02   -.58175    
   3  Normalizat    .86078        .19123        .10312E-04   -.97852    
   4  Prefactor     1.1050        .16944        .81190E-05   -.89307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50806e-13
Minuit parameter uncertainties:
  1  6.85406
  2  1.76668
  3  0.191385
  4  0.169525
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/581669': 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) = 6138.2929692
delta logL = 0.0194983157135

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.335e+00  6.854e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.253e+00  1.767e+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.105e+00  1.695e-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:  8.608e-01  1.914e-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/581669/cmap_HighResolution_264470401_264729601_4FGL_J0836.2+2141_daily_bin97.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.53e-03', job_status='DONE', photon_flux_upper_limit='8.29e-08', time_completed='2021-08-30 02:11:34.356264', job_id='581669', GAL2='1.11', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1630314694.36', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.95e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='97' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:11:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 581669: <4FGL_J0836.2+2141_daily_bin97> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin97> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Aug 30 01:55:46 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 01:55:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 01:55:47 2021
Terminated at Mon Aug 30 02:11:36 2021
Results reported at Mon Aug 30 02:11:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin97 129.051 21.6971 264470401 264729601 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 :                                   782.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             241.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

