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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1491
RA = 129.051, Dec = 21.6971
tmin = 625795201, tmax = 626054401
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='589594', job_status='RUN', time_executed='2021-08-30 02:23:25.861722', time_epoch_executed='1630315405.86' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1491'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589594

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589594/ft1_4FGL_J0836.2+2141_daily_bin1491.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589594/ft2_4FGL_J0836.2+2141_daily_bin1491.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589594/ft1_4FGL_J0836.2+2141_daily_bin1491.fits outfile=/scratch/kocevski/589594/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1491.fits ra=129.051 dec=21.6971 rad=12.0 tmin=625795201.0 tmax=626054401.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.59
user 3.30
sys 1.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/589594/ft2_4FGL_J0836.2+2141_daily_bin1491.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/589594/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1491.fits evtable="EVENTS" outfile="/scratch/kocevski/589594/ft1_filtered_4FGL_J0836.2+2141_daily_bin1491.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 1.53
user 0.32
sys 1.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/589594/ft1_filtered_4FGL_J0836.2+2141_daily_bin1491.fits" evtable="EVENTS" scfile=/scratch/kocevski/589594/ft2_4FGL_J0836.2+2141_daily_bin1491.fits sctable="SC_DATA" outfile=/scratch/kocevski/589594/ltcube_625795201_626054401_4FGL_J0836.2+2141_daily_bin1491.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/589594/ft2_4FGL_J0836.2+2141_daily_bin1491.fits
.....................!
real 13.66
user 12.11
sys 1.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589594/ft1_filtered_4FGL_J0836.2+2141_daily_bin1491.fits evtable="EVENTS" scfile=/scratch/kocevski/589594/ft2_4FGL_J0836.2+2141_daily_bin1491.fits sctable="SC_DATA" expcube=/scratch/kocevski/589594/ltcube_625795201_626054401_4FGL_J0836.2+2141_daily_bin1491.fits outfile=/scratch/kocevski/589594/expmap_625795201_626054401_4FGL_J0836.2+2141_daily_bin1491.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/589594/ltcube_625795201_626054401_4FGL_J0836.2+2141_daily_bin1491.fits
.....................!
real 193.72
user 186.69
sys 6.59

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/589594/ft1_filtered_4FGL_J0836.2+2141_daily_bin1491.fits scfile=/scratch/kocevski/589594/ft2_4FGL_J0836.2+2141_daily_bin1491.fits outfile=/scratch/kocevski/589594/cmap_625795201_626054401_4FGL_J0836.2+2141_daily_bin1491.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.60
user 0.37
sys 1.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/589594/ft1_filtered_4FGL_J0836.2+2141_daily_bin1491.fits scfile=/scratch/kocevski/589594/ft2_4FGL_J0836.2+2141_daily_bin1491.fits outfile=/scratch/kocevski/589594/cmap_HighResolution_625795201_626054401_4FGL_J0836.2+2141_daily_bin1491.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.55
user 0.38
sys 1.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.681       1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.122       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-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 '    18.621       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3743       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21639E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    75.592       1.0000         .10000E-03   10000.    
    13 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.052       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.462       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.6442       1.0000         .10000E-03   10000.    
    18 'norm      '    .35588       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2792       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .78034       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=   6158.409     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     2200 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.679        18.731       -.20475E-08   -.27652E-04
   2  Prefactor     26.118        36.853       -.49325E-06   -.47390E-04
   3  Prefactor     .10000E-03    31.961        .21354E-05** at limit **
   4  norm          .10000E-03    42.595       -.15865E-05** at limit **
   5  Prefactor     .10000E-03    8.5792        .11983E-06** at limit **
   6  Prefactor     18.621        19.243       -.10718E-07   -.11899E-05
   7  Prefactor     .10000E-03    15.454        .76554E-06** at limit **
   8  Prefactor     6.3753        9.9738        .14782E-05   -.11871E-03
   9  norm          .10000E-03    .42356       -.26047E-07** at limit **
  10  Prefactor     .10000E-03    9.6703       -.18818E-06** at limit **
  11  Prefactor     .10000E-03    7.2871       -.23351E-07** at limit **
  12  Prefactor     75.585        43.048       -.63628E-06   -.12667E-03
  13  norm          .10000E-03    .35238        .28677E-07** at limit **
  14  Prefactor     12.051        10.771       -.19751E-07   -.14670E-04
  15  Prefactor     12.461        12.161        .37096E-06   -.67983E-04
  16  norm          .10000E-03    3.1788        .10148E-07** at limit **
  17  norm          9.6438        21.070       -.11822E-07   -.58638E-05
  18  norm          .35589        1.7469        .11640E-05   -.15121E-03
  19  Prefactor     .10000E-03    19.511       -.12607E-05** at limit **
  20  Normalizat    1.2794        .17548        .20353E-08   -.36221E-04
  21  Prefactor     .78025        .14615       -.22172E-06   -.18597E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.6791
  Prefactor  = 26.118
  Prefactor  = 0.000100002
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 18.6213
  Prefactor  = 0.0001
  Prefactor  = 6.37526
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 75.5851
  norm       = 0.0001
  Prefactor  = 12.0513
  Prefactor  = 12.461
  norm       = 0.0001
  norm       = 9.6438
  norm       = 0.355885
  Prefactor  = 0.000100001
  Normalizat = 1.2794
  Prefactor  = 0.780245
 **********
 **   18 **HESSE 
 **********

 FCN=   6158.409     FROM HESSE     STATUS=OK           317 CALLS     2517 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.679        18.740        .84106E-04   -1.4755    
   2  Prefactor     26.118        37.000        .78380E-04   -1.4685    
   3  Prefactor     .10000E-03    33.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    43.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.5851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.621        19.248        .92815E-04   -1.4845    
   7  Prefactor     .10000E-03    15.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.3753        10.044        .79488E-03   -1.5203    
   9  norm          .10000E-03    .44255        .99570E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.098        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.5097        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     75.585        43.707        .46183E-04   -1.3967    
  13  norm          .10000E-03    .58705        .88888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.051        10.652        .11539E-03   -1.5014    
  15  Prefactor     12.461        12.172        .56736E-03   -1.5002    
  16  norm          .10000E-03    3.1879        .13664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.6438        21.067        .12904E-03   -1.5087    
  18  norm          .35589        1.7533        .20592E-03   -1.5589    
  19  Prefactor     .10000E-03    19.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2794        .20549        .22831E-03   -.84183    
  21  Prefactor     .78025        .17081        .23984E-03   -1.0046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49898e-10
Minuit parameter uncertainties:
  1  18.7453
  2  37.0321
  3  0.000525651
  4  0.000463714
  5  1.35496e-05
  6  19.2543
  7  0.000125407
  8  10.0465
  9  1.44286e-06
  10  2.75469e-05
  11  3.88867e-06
  12  43.726
  13  4.98898e-07
  14  10.6536
  15  12.1748
  16  2.77866e-07
  17  21.0833
  18  1.57968
  19  0.000252204
  20  0.20562
  21  0.170921
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  2.755e-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:  7.802e-01  1.709e-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.279e+00  2.056e-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: 7.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/589594/likelihoodResults_625795201_626054401_4FGL_J0836.2+2141_daily_bin1491.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) = 6158.40933251
delta logL = -0.000472882849863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6158.40886032
delta logL = -6.95733433531e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11771E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7614       1.0000          .0000       10.000    
     3 'Normalizat'    1.2795       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78022       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=   6158.409     FROM MIGRAD    STATUS=FAILED       101 CALLS      260 TOTAL
                     EDM=   .37E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12943E-03    107.72        .31266E-02** at limit **
   2  Index         3.2379        6.6082        .50000       -.15186E-04
   3  Normalizat    1.2794        .10669E-01    .22831E-03   -.26833E-03
   4  Prefactor     .78025        .90342E-02    .23984E-03   -.10774E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6158.409     FROM SIMPLEX   STATUS=PROGRESS     105 CALLS      365 TOTAL
                     EDM=   .55E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10089E-03    107.72        .58281E-03** at limit **
   2  Index         3.2366        6.6082        .40589E-03   -.15186E-04
   3  Normalizat    1.2794        .10669E-01    .18040E-05   -.26833E-03
   4  Prefactor     .78024        .90342E-02    .24459E-05   -.10774E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6158.409     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      400 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10110E-03    242.00        .12506E-02** at limit **
   2  Index         3.2940        5.3796        .50000       -.90725E-05
   3  Normalizat    1.2794        .15538E-01    .45662E-04   -.33397E-02
   4  Prefactor     .78024        .13157E-01    .95936E-05   -.30718E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101097
  Index      = 3.29397
  Normalizat = 1.27939
  Prefactor  = 0.780242
 **********
 **   18 **HESSE 
 **********

 FCN=   6158.409     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      429 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10110E-03    1245.2        .25013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2940        6.5536        .50000       -.34820    
   3  Normalizat    1.2794        .38132E-01    .91324E-05   -.84184    
   4  Prefactor     .78024        .32293E-01    .19187E-05   -1.0046    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.50357e-08
Minuit parameter uncertainties:
  1  0.0755473
  2  1089.66
  3  0.0381329
  4  0.0322941
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589594': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6158.40885716
delta logL = 2.4677692636e-06

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.011e-04  7.555e-02  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  3.294e+00  1.090e+03  0.000e+00  1.000e+01 (-1.000e+00)
300        Scale:  5.085e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  7.802e-01  3.229e-02  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.279e+00  3.813e-02  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/589594/cmap_HighResolution_625795201_626054401_4FGL_J0836.2+2141_daily_bin1491.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.87e-03', job_status='DONE', photon_flux_upper_limit='7.45e-08', time_completed='2021-08-30 02:33:47.742300', job_id='589594', GAL2='0.78', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1630316027.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='2.47e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1491' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:33:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 589594: <4FGL_J0836.2+2141_daily_bin1491> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1491 129.051 21.6971 625795201 626054401 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 :                                   633.36 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             226.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            805 sec.

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

