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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin60
RA = 129.051, Dec = 21.6971
tmin = 254880001, tmax = 255139201
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='581614', job_status='RUN', time_executed='2021-08-30 02:00:07.239562', time_epoch_executed='1630314007.24' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='60'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/581614

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/581614/ft1_4FGL_J0836.2+2141_daily_bin60.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/581614/ft2_4FGL_J0836.2+2141_daily_bin60.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/581614/ft1_4FGL_J0836.2+2141_daily_bin60.fits outfile=/scratch/kocevski/581614/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin60.fits ra=129.051 dec=21.6971 rad=12.0 tmin=254880001.0 tmax=255139201.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 9.27
user 1.24
sys 7.98

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/581614/ft1_filtered_4FGL_J0836.2+2141_daily_bin60.fits" evtable="EVENTS" scfile=/scratch/kocevski/581614/ft2_4FGL_J0836.2+2141_daily_bin60.fits sctable="SC_DATA" outfile=/scratch/kocevski/581614/ltcube_254880001_255139201_4FGL_J0836.2+2141_daily_bin60.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/581614/ft2_4FGL_J0836.2+2141_daily_bin60.fits
.....................!
real 22.25
user 12.47
sys 9.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/581614/ft1_filtered_4FGL_J0836.2+2141_daily_bin60.fits evtable="EVENTS" scfile=/scratch/kocevski/581614/ft2_4FGL_J0836.2+2141_daily_bin60.fits sctable="SC_DATA" expcube=/scratch/kocevski/581614/ltcube_254880001_255139201_4FGL_J0836.2+2141_daily_bin60.fits outfile=/scratch/kocevski/581614/expmap_254880001_255139201_4FGL_J0836.2+2141_daily_bin60.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/581614/ltcube_254880001_255139201_4FGL_J0836.2+2141_daily_bin60.fits
.....................!
real 202.49
user 185.86
sys 15.89

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/581614/ft1_filtered_4FGL_J0836.2+2141_daily_bin60.fits scfile=/scratch/kocevski/581614/ft2_4FGL_J0836.2+2141_daily_bin60.fits outfile=/scratch/kocevski/581614/cmap_254880001_255139201_4FGL_J0836.2+2141_daily_bin60.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 8.52
user 0.37
sys 8.09

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/581614/ft1_filtered_4FGL_J0836.2+2141_daily_bin60.fits scfile=/scratch/kocevski/581614/ft2_4FGL_J0836.2+2141_daily_bin60.fits outfile=/scratch/kocevski/581614/cmap_HighResolution_254880001_255139201_4FGL_J0836.2+2141_daily_bin60.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 8.51
user 0.37
sys 8.11

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.493       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    25.321       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .74016       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.628       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.801       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2871       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.111       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.474       1.0000         .10000E-03   10000.    
    13 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.3861       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .30284       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0020       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93796       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=   5199.205     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2217 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.491        19.840        .31720E-07    .18485E-05
   2  Prefactor     .10000E-03    19.755        .46776E-07** at limit **
   3  Prefactor     .10000E-03    66.478       -.15577E-05** at limit **
   4  norm          25.310        87.140       -.64104E-06   -.32074E-04
   5  Prefactor     .54506        41.331       -.55969E-05    .37457E-03
   6  Prefactor     10.655        22.370        .22692E-06    .15563E-03
   7  Prefactor     .10000E-03    11.504        .86217E-07** at limit **
   8  Prefactor     14.795        19.687       -.17262E-06    .54572E-05
   9  norm          1.2880        1.4044        .12882E-06    .29228E-03
  10  Prefactor     20.107        11.133       -.13510E-07   -.46240E-04
  11  Prefactor     .10000E-03    3.5689        .74383E-08** at limit **
  12  Prefactor     25.468        33.033       -.59252E-07   -.70627E-04
  13  norm          .10000E-03    .53099        .65284E-07** at limit **
  14  Prefactor     8.3858        8.4086       -.12231E-07   -.49461E-04
  15  Prefactor     .10000E-03    7.5509       -.18838E-07** at limit **
  16  norm          .10000E-03    12.849        .41203E-07** at limit **
  17  norm          .10000E-03    10.584        .12085E-07** at limit **
  18  norm          .30253        3.0251        .29654E-05    .56331E-03
  19  Prefactor     .10002E-03    81.727        .28824E-05** at limit **
  20  Normalizat    1.0019        .18493       -.31204E-06   -.44158E-04
  21  Prefactor     .93799        .15619       -.28101E-06   -.32545E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.491
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 25.3104
  Prefactor  = 0.545065
  Prefactor  = 10.6549
  Prefactor  = 0.0001
  Prefactor  = 14.7951
  norm       = 1.28803
  Prefactor  = 20.107
  Prefactor  = 0.0001
  Prefactor  = 25.4677
  norm       = 0.0001
  Prefactor  = 8.38579
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.302532
  Prefactor  = 0.000100018
  Normalizat = 1.00193
  Prefactor  = 0.937993
 **********
 **   18 **HESSE 
 **********

 FCN=   5199.205     FROM HESSE     STATUS=OK           323 CALLS     2540 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.491        19.846        .88478E-04   -1.4802    
   2  Prefactor     .10000E-03    19.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    67.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          25.310        87.401        .79607E-04   -1.4701    
   5  Prefactor     .54506        236.78        .66116E-02   -1.5560    
   6  Prefactor     10.655        22.536        .12290E-03   -1.5055    
   7  Prefactor     .10000E-03    11.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.795        19.563        .10411E-03   -1.4938    
   9  norm          1.2880        1.3682        .77646E-04   -1.5481    
  10  Prefactor     20.107        11.099        .89314E-04   -1.4811    
  11  Prefactor     .10000E-03    3.5937        .13300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.468        33.081        .79368E-04   -1.4698    
  13  norm          .10000E-03    1.3459        .99959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.3858        8.3280        .13843E-03   -1.5129    
  15  Prefactor     .10000E-03    7.5757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    13.377        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .30253        3.1449        .24387E-03   -1.5598    
  19  Prefactor     .10002E-03    82.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0019        .21534        .24390E-03   -.92966    
  21  Prefactor     .93799        .18315        .21612E-03   -.94826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55822e-08
Minuit parameter uncertainties:
  1  19.8528
  2  1.78788e-05
  3  0.00111258
  4  87.8483
  5  22.8099
  6  22.5542
  7  2.23645e-05
  8  19.5714
  9  1.36819
  10  11.1001
  11  2.20008e-06
  12  33.1052
  13  9.64712e-07
  14  8.32912
  15  6.92319e-06
  16  2.29482e-06
  17  2.42183e-06
  18  1.95063
  19  0.00242276
  20  0.215529
  21  0.183271
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  2.011e+01  1.110e+01  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.380e-01  1.833e-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.002e+00  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.82
Ra Dec: 129.051 21.697
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 9.87e-08 +/- 5.44e-08
Energy Flux (Fixed Index): 2.32e-05 +/- 1.28e-05

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): 0
logL (Free Index) = 5198.59612367
delta logL = 0.608568646145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5198.58406512
delta logL = 0.620627199008

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.079       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0325       1.0000          .0000       10.000    
     3 'Normalizat'    1.0616       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90896       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=   5198.584     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      202 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.079        12.191        .23549E-02    .11253E-02
   2  Index         2.0325        .42968        .19535       -.43466E-04
   3  Normalizat    1.0616        .18220        .39839E-01   -.59706E-04
   4  Prefactor     .90898        .15539        .45119E-01    .88028E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.0789
  Index      = 2.03251
  Normalizat = 1.06157
  Prefactor  = 0.90898
 **********
 **   18 **HESSE 
 **********

 FCN=   5198.584     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.079        15.500        .94196E-04   -1.4857    
   2  Index         2.0325        .63198        .74140E-02   -.63540    
   3  Normalizat    1.0616        .21310        .23811E-03   -.90995    
   4  Prefactor     .90898        .17964        .21935E-03   -.95828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15108e-09
Minuit parameter uncertainties:
  1  15.5033
  2  0.634612
  3  0.213273
  4  0.179757
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/581614': 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) = 5198.58406511
delta logL = 0.620627213513

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.808e+01  1.550e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.033e+00  6.346e-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:  9.090e-01  1.798e-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.062e+00  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.01
Ra Dec: 129.051 21.697
Photon Index (Free Index): 2.03 +/- 0.63
Photon Flux (Free Index): 4.77e-08 +/- 5.56e-08
Energy Flux (Free Index): 3.05e-05 +/- 2.65e-05

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/581614/cmap_HighResolution_254880001_255139201_4FGL_J0836.2+2141_daily_bin60.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.87e-08', energy_flux2='3.05e-05', photon_flux_error='5.44e-08', dlogl='6.21e-01', energy_flux='2.32e-05', photon_flux2='4.77e-08', job_status='DONE', time_completed='2021-08-30 02:10:36.003115', photon_index_error2='0.63', photon_index2='2.03', ts='8.82', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='2.65e-05', EG='1.00', time_epoch_completed='1630314636.0', return_code='0', job_id='581614', GAL2='0.91', EG2='1.06', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='5.56e-08', ts2='10.01', photon_index='2.73' WHERE bin_id='60' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:10:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 581614: <4FGL_J0836.2+2141_daily_bin60> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin60> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Aug 30 01:55:41 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 01:55:43 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:43 2021
Terminated at Mon Aug 30 02:10:41 2021
Results reported at Mon Aug 30 02:10:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin60 129.051 21.6971 254880001 255139201 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 :                                   743.30 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             205.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            900 sec.

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

