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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin222
RA = 129.051, Dec = 21.6971
tmin = 296870401, tmax = 297129601
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='581833', job_status='RUN', time_executed='2021-08-30 01:57:06.302106', time_epoch_executed='1630313826.3' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='222'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/581833

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/581833/ft1_4FGL_J0836.2+2141_daily_bin222.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/581833/ft2_4FGL_J0836.2+2141_daily_bin222.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/581833/ft1_4FGL_J0836.2+2141_daily_bin222.fits outfile=/scratch/kocevski/581833/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin222.fits ra=129.051 dec=21.6971 rad=12.0 tmin=296870401.0 tmax=297129601.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.46
user 3.38
sys 3.02

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/581833/ft1_filtered_4FGL_J0836.2+2141_daily_bin222.fits" evtable="EVENTS" scfile=/scratch/kocevski/581833/ft2_4FGL_J0836.2+2141_daily_bin222.fits sctable="SC_DATA" outfile=/scratch/kocevski/581833/ltcube_296870401_297129601_4FGL_J0836.2+2141_daily_bin222.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/581833/ft2_4FGL_J0836.2+2141_daily_bin222.fits
.....................!
real 15.08
user 11.50
sys 3.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/581833/ft1_filtered_4FGL_J0836.2+2141_daily_bin222.fits evtable="EVENTS" scfile=/scratch/kocevski/581833/ft2_4FGL_J0836.2+2141_daily_bin222.fits sctable="SC_DATA" expcube=/scratch/kocevski/581833/ltcube_296870401_297129601_4FGL_J0836.2+2141_daily_bin222.fits outfile=/scratch/kocevski/581833/expmap_296870401_297129601_4FGL_J0836.2+2141_daily_bin222.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/581833/ltcube_296870401_297129601_4FGL_J0836.2+2141_daily_bin222.fits
.....................!
real 194.64
user 185.89
sys 7.84

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/581833/ft1_filtered_4FGL_J0836.2+2141_daily_bin222.fits scfile=/scratch/kocevski/581833/ft2_4FGL_J0836.2+2141_daily_bin222.fits outfile=/scratch/kocevski/581833/cmap_296870401_297129601_4FGL_J0836.2+2141_daily_bin222.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 3.33
user 0.37
sys 2.93

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/581833/ft1_filtered_4FGL_J0836.2+2141_daily_bin222.fits scfile=/scratch/kocevski/581833/ft2_4FGL_J0836.2+2141_daily_bin222.fits outfile=/scratch/kocevski/581833/cmap_HighResolution_296870401_297129601_4FGL_J0836.2+2141_daily_bin222.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 3.31
user 0.38
sys 2.91

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.986       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    32.733       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11304E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.0946       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.164       1.0000         .10000E-03   10000.    
     9 'norm      '    1.0242       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.918       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8800       1.0000         .10000E-03   10000.    
    12 'Prefactor '    36.015       1.0000         .10000E-03   10000.    
    13 'norm      '    1.3034       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11218       1.0000         .10000E-03   10000.    
    16 'norm      '    12.349       1.0000         .10000E-03   10000.    
    17 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .58330       1.0000         .10000E-03   10000.    
    19 'Prefactor '    83.982       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .86530       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1017       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=   6482.343     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2220 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.588       -.11996E-06** at limit **
   2  Prefactor     19.943        44.500       -.31670E-04   -.88506E-04
   3  Prefactor     .10000E-03    13.571        .34784E-06** at limit **
   4  norm          32.735        39.951        .11852E-06    .20850E-05
   5  Prefactor     .10000E-03    15.024       -.38390E-06** at limit **
   6  Prefactor     .10000E-03    100.45       -.27325E-05** at limit **
   7  Prefactor     7.0747        27.783       -.22831E-05    .38145E-06
   8  Prefactor     23.150        22.146        .28568E-06    .35691E-04
   9  norm          1.0240        1.0762        .33631E-07    .16649E-03
  10  Prefactor     15.918        9.4793       -.24622E-05   -.84491E-04
  11  Prefactor     1.8770        2.2988        .11687E-05   -.33841E-02
  12  Prefactor     36.006        33.217       -.70983E-05   -.50884E-04
  13  norm          1.3034        .64708       -.55995E-07    .17114E-03
  14  Prefactor     .10000E-03    2.8535       -.11143E-07** at limit **
  15  Prefactor     .10014E-03    9.7099       -.86435E-06** at limit **
  16  norm          12.349        9.1283       -.74018E-06   -.22028E-04
  17  norm          .10000E-03    27.829       -.24144E-07** at limit **
  18  norm          .58383        2.2443       -.35173E-06   -.26000E-03
  19  Prefactor     83.977        57.124       -.24216E-05    .95360E-05
  20  Normalizat    .86562        .18161        .32139E-05    .11004E-03
  21  Prefactor     1.1015        .15195        .71580E-06    .19438E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.9431
  Prefactor  = 0.0001
  norm       = 32.7349
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.07472
  Prefactor  = 23.15
  norm       = 1.02397
  Prefactor  = 15.9181
  Prefactor  = 1.87703
  Prefactor  = 36.0061
  norm       = 1.30343
  Prefactor  = 0.0001
  Prefactor  = 0.000100139
  norm       = 12.3488
  norm       = 0.0001
  norm       = 0.583832
  Prefactor  = 83.9768
  Normalizat = 0.86562
  Prefactor  = 1.10153
 **********
 **   18 **HESSE 
 **********

 FCN=   6482.343     FROM HESSE     STATUS=OK           327 CALLS     2547 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.943        44.724        .89593E-04   -1.4815    
   3  Prefactor     .10000E-03    13.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          32.735        39.955        .70037E-04   -1.4563    
   5  Prefactor     .10000E-03    15.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    102.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.0747        27.796        .15060E-03   -1.5176    
   8  Prefactor     23.150        21.981        .83226E-04   -1.4745    
   9  norm          1.0240        1.0256        .76847E-03   -1.5506    
  10  Prefactor     15.918        9.4627        .10039E-03   -1.4910    
  11  Prefactor     1.8770        5.6018        .15181E-02   -1.5434    
  12  Prefactor     36.006        33.270        .66780E-04   -1.4507    
  13  norm          1.3034        .64262        .43926E-04   -1.5480    
  14  Prefactor     .10000E-03    2.8551        .13282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10014E-03    14.555        .72756E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.349        9.1345        .11399E-03   -1.5005    
  17  norm          .10000E-03    28.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .58383        2.2330        .22706E-03   -1.5555    
  19  Prefactor     83.977        57.152        .43834E-04   -1.3873    
  20  Normalizat    .86562        .20747        .27277E-03   -.97679    
  21  Prefactor     1.1015        .17373        .21411E-03   -.89418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93528e-08
Minuit parameter uncertainties:
  1  3.7719e-06
  2  44.7992
  3  5.38969e-06
  4  39.9881
  5  2.93042e-05
  6  0.000567709
  7  27.8469
  8  21.9889
  9  1.02565
  10  9.46361
  11  5.60333
  12  33.2868
  13  0.642625
  14  2.90167e-06
  15  0.00284445
  16  9.13558
  17  4.76262e-05
  18  2.23332
  19  57.1894
  20  0.207665
  21  0.173817
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.592e+01  9.464e+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.102e+00  1.738e-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.656e-01  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.70
Ra Dec: 129.051 21.697
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 7.81e-08 +/- 4.64e-08
Energy Flux (Fixed Index): 1.84e-05 +/- 1.09e-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) = 6482.34216229
delta logL = 0.000839445639031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6482.34181627
delta logL = 0.00118546999056

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.175       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7030       1.0000          .0000       10.000    
     3 'Normalizat'    .86719       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1005       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=   6482.342     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      228 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.179        209.41        .24897E-02    .11482E-03
   2  Index         2.7029        6.3436        .19406        .67690E-04
   3  Normalizat    .86697        .83607E-01    .44481E-01    .79061E-04
   4  Prefactor     1.1007        .71653E-01    .37569E-01    .92060E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.179
  Index      = 2.70288
  Normalizat = 0.86697
  Prefactor  = 1.10067
 **********
 **   18 **HESSE 
 **********

 FCN=   6482.342     FROM HESSE     STATUS=OK            31 CALLS      259 TOTAL
                     EDM=   .81E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.179        11.055        .99586E-04   -1.4903    
   2  Index         2.7029        .58301        .72290E-02   -.47735    
   3  Normalizat    .86697        .19953        .27258E-03   -.97631    
   4  Prefactor     1.1007        .17275        .21418E-03   -.89445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.12439e-12
Minuit parameter uncertainties:
  1  11.0567
  2  0.584693
  3  0.199701
  4  0.17284
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/581833': 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) = 6482.34181542
delta logL = 0.00118631879104

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.101e+00  1.728e-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.670e-01  1.997e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.72
Ra Dec: 129.051 21.697
Photon Index (Free Index): 2.70 +/- 0.58
Photon Flux (Free Index): 7.71e-08 +/- 4.90e-08
Energy Flux (Free Index): 1.85e-05 +/- 1.15e-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/581833/cmap_HighResolution_296870401_297129601_4FGL_J0836.2+2141_daily_bin222.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.81e-08', energy_flux2='1.85e-05', photon_flux_error='4.64e-08', dlogl='1.19e-03', energy_flux='1.84e-05', photon_flux2='7.71e-08', job_status='DONE', time_completed='2021-08-30 02:07:06.413918', photon_index_error2='0.58', photon_index2='2.70', ts='4.70', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.15e-05', EG='0.87', time_epoch_completed='1630314426.41', return_code='0', job_id='581833', GAL2='1.10', EG2='0.87', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='4.90e-08', ts2='4.72', photon_index='2.73' WHERE bin_id='222' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:07:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0131>
Subject: Job 581833: <4FGL_J0836.2+2141_daily_bin222> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin222 129.051 21.6971 296870401 297129601 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 :                                   642.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   666 sec.
    Turnaround time :                            667 sec.

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

