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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin1458
RA = 174.764, Dec = 40.5617
tmin = 617241601, tmax = 617500801
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='991183', job_status='RUN', time_executed='2021-09-04 07:17:05.731083', time_epoch_executed='1630765025.73' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='1458'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991183

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991183/ft1_4FGL_J1139.0+4033_daily_bin1458.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991183/ft2_4FGL_J1139.0+4033_daily_bin1458.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991183/ft1_4FGL_J1139.0+4033_daily_bin1458.fits outfile=/scratch/kocevski/991183/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin1458.fits ra=174.764 dec=40.5617 rad=12.0 tmin=617241601.0 tmax=617500801.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 3.03
user 2.74
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/991183/ft2_4FGL_J1139.0+4033_daily_bin1458.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/991183/ft2_4FGL_J1139.0+4033_daily_bin1458.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/991183/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin1458.fits evtable="EVENTS" outfile="/scratch/kocevski/991183/ft1_filtered_4FGL_J1139.0+4033_daily_bin1458.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.55
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/991183/ft1_filtered_4FGL_J1139.0+4033_daily_bin1458.fits" evtable="EVENTS" scfile=/scratch/kocevski/991183/ft2_4FGL_J1139.0+4033_daily_bin1458.fits sctable="SC_DATA" outfile=/scratch/kocevski/991183/ltcube_617241601_617500801_4FGL_J1139.0+4033_daily_bin1458.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/991183/ft2_4FGL_J1139.0+4033_daily_bin1458.fits
.....................!
real 12.93
user 12.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991183/ft1_filtered_4FGL_J1139.0+4033_daily_bin1458.fits evtable="EVENTS" scfile=/scratch/kocevski/991183/ft2_4FGL_J1139.0+4033_daily_bin1458.fits sctable="SC_DATA" expcube=/scratch/kocevski/991183/ltcube_617241601_617500801_4FGL_J1139.0+4033_daily_bin1458.fits outfile=/scratch/kocevski/991183/expmap_617241601_617500801_4FGL_J1139.0+4033_daily_bin1458.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/991183/ltcube_617241601_617500801_4FGL_J1139.0+4033_daily_bin1458.fits
.....................!
real 190.65
user 185.15
sys 4.88

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 219 point sources and 0 extended sources

Setting source of interest to:
4FGL J1139.0+4033 @ 174.764 40.5617

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/991183/ft1_filtered_4FGL_J1139.0+4033_daily_bin1458.fits scfile=/scratch/kocevski/991183/ft2_4FGL_J1139.0+4033_daily_bin1458.fits outfile=/scratch/kocevski/991183/cmap_617241601_617500801_4FGL_J1139.0+4033_daily_bin1458.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=174.764 yref=40.5617 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 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/991183/ft1_filtered_4FGL_J1139.0+4033_daily_bin1458.fits scfile=/scratch/kocevski/991183/ft2_4FGL_J1139.0+4033_daily_bin1458.fits outfile=/scratch/kocevski/991183/cmap_HighResolution_617241601_617500801_4FGL_J1139.0+4033_daily_bin1458.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=174.764 yref=40.5617 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 0.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/991183/ft1_filtered_4FGL_J1139.0+4033_daily_bin1458.fits evtable="EVENTS" scfile=/scratch/kocevski/991183/ft2_4FGL_J1139.0+4033_daily_bin1458.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/991183/Model_4FGL_J1139.0+4033_daily_bin1458.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/991183/ft1_filtered_4FGL_J1139.0+4033_daily_bin1458.fits.....................!
real 55.95
user 54.54
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/991183/ft1_filtered_4FGL_J1139.0+4033_daily_bin1458.fits', '/scratch/kocevski/991183/ft2_4FGL_J1139.0+4033_daily_bin1458.fits', expMap='/scratch/kocevski/991183/expmap_617241601_617500801_4FGL_J1139.0+4033_daily_bin1458.fits', expCube='/scratch/kocevski/991183/ltcube_617241601_617500801_4FGL_J1139.0+4033_daily_bin1458.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/991183/Model_4FGL_J1139.0+4033_daily_bin1458.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1139.0+4033'

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  9.736e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  2.720e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
343        Scale:  6.779e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/991183/ft1_filtered_4FGL_J1139.0+4033_daily_bin1458.fits
Spacecraft file(s): /scratch/kocevski/991183/ft2_4FGL_J1139.0+4033_daily_bin1458.fits
Exposure map: /scratch/kocevski/991183/expmap_617241601_617500801_4FGL_J1139.0+4033_daily_bin1458.fits
Exposure cube: /scratch/kocevski/991183/ltcube_617241601_617500801_4FGL_J1139.0+4033_daily_bin1458.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/991183/Model_4FGL_J1139.0+4033_daily_bin1458.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) = 6707.59783738

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.910       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.3707       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    67.370       1.0000         .10000E-03   10000.    
     7 'norm      '    31.740       1.0000         .10000E-03   10000.    
     8 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5771       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .22586E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3102       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2475       1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.996       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2082       1.0000         .10000E-03   10000.    
    17 'norm      '    7.2145       1.0000         .10000E-03   10000.    
    18 'Prefactor '    40.655       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10649E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.0674       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0101       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95799       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6707.566     FROM MIGRAD    STATUS=CONVERGED     97 CALLS     2433 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.909        1.0246       -.16081E-06    .59063E-03
   2  Prefactor     .10105E-03    39.530        .11664E-04** at limit **
   3  norm          1.3708        .35153        .91187E-08    .53939E-03
   4  Prefactor     .10000E-03    5.2539       -.19768E-06** at limit **
   5  Prefactor     .10000E-03    7.8678        .19290E-05** at limit **
   6  Prefactor     67.384        2.6031        .15413E-05   -.72963E-02
   7  norm          31.740        1.0012       -.31798E-07    .53041E-04
   8  norm          .10022E-03    21.652       -.17180E-04** at limit **
   9  Prefactor     4.5758        2.5202        .11760E-05   -.23177E-04
  10  Prefactor     .12163E-03    48.167        .12011E-04** at limit **
  11  Prefactor     .10000E-03    6.7172       -.38564E-07** at limit **
  12  norm          .10068E-03    18.361        .46818E-04** at limit **
  13  Prefactor     3.3087        1.0229       -.39674E-06   -.22624E-04
  14  Prefactor     2.2471        4.9788       -.92826E-05   -.77141E-03
  15  Prefactor     29.978        2.8480       -.23811E-05    .45384E-02
  16  norm          1.2086        .97979        .34922E-06   -.59011E-04
  17  norm          7.2149        1.0066        .92100E-08   -.97028E-04
  18  Prefactor     40.657        1.0289        .45077E-07   -.25993E-03
  19  Prefactor     .10000E-03    1.4024        .63004E-06** at limit **
  20  Prefactor     .12386E-03    75.512       -.49831E-04** at limit **
  21  Prefactor     7.0702        1.0332        .12712E-07   -.38374E-04
  22  Prefactor     .10002E-03    13.413       -.10129E-04** at limit **
  23  Prefactor     .10000E-03    1.7415       -.99497E-07** at limit **
  24  Normalizat    1.0099        .18111        .15570E-05   -.33337E-04
  25  Prefactor     .95823        .21597        .95552E-06    .23815E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.9086
  Prefactor  = 0.00010105
  norm       = 1.37076
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.3836
  norm       = 31.7398
  norm       = 0.000100224
  Prefactor  = 4.5758
  Prefactor  = 0.000121631
  Prefactor  = 0.0001
  norm       = 0.000100682
  Prefactor  = 3.30875
  Prefactor  = 2.24708
  Prefactor  = 29.9783
  norm       = 1.20859
  norm       = 7.21491
  Prefactor  = 40.6569
  Prefactor  = 0.0001
  Prefactor  = 0.000123856
  Prefactor  = 7.07019
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  Normalizat = 1.00987
  Prefactor  = 0.958226
 **********
 **   18 **HESSE 
 **********

 FCN=   6707.566     FROM HESSE     STATUS=OK           483 CALLS     2916 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.909        54.818        .14052E-02   -1.4280    
   2  Prefactor     .10105E-03    41.491        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3708        .35267        .53913E-02   -1.5474    
   4  Prefactor     .10000E-03    5.2463        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.8405        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     67.384        64.824        .12225E-02   -1.4064    
   7  norm          31.740        17.526        .17780E-02   -1.4581    
   8  norm          .10022E-03    21.957        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.5758        2.6087        .47038E-02   -1.5280    
  10  Prefactor     .12163E-03    86.178        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.7080        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10068E-03    1.0393        .56840E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3087        10.946        .55626E-02   -1.5344    
  14  Prefactor     2.2471        5.0994        .68526E-02   -1.5408    
  15  Prefactor     29.978        41.385        .18289E-02   -1.4612    
  16  norm          1.2086        1.1244        .10299E-01   -1.5488    
  17  norm          7.2149        6.2492        .37334E-02   -1.5171    
  18  Prefactor     40.657        27.489        .15717E-02   -1.4432    
  19  Prefactor     .10000E-03    1.3748        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .12386E-03    131.92        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.0702        14.201        .37724E-02   -1.5176    
  22  Prefactor     .10002E-03    13.429        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.7384        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0099        .16129        .46021E-01   -.92701    
  25  Prefactor     .95823        .18923        .45740E-01   -.94135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38574e-06
Minuit parameter uncertainties:
  1  54.8722
  2  0.0132111
  3  0.352666
  4  5.61744e-05
  5  5.90999e-05
  6  64.8918
  7  17.5286
  8  0.00443647
  9  2.60881
  10  0.0864749
  11  8.03478e-05
  12  0.00168323
  13  10.9531
  14  5.10042
  15  41.4251
  16  1.12439
  17  6.24972
  18  27.4973
  19  3.6863e-05
  20  0.112445
  21  14.2079
  22  0.00112547
  23  2.85605e-06
  24  0.16137
  25  0.189357
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  2.998e+01  4.143e+01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  2.720e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
343        Scale:  6.779e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  9.582e-01  1.894e-01  0.000e+00  1.000e+01 ( 1.000e+00)
694        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
695        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
692   Normalization:  1.010e+00  1.614e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.86
Ra Dec: 174.764 40.562
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/991183/likelihoodResults_617241601_617500801_4FGL_J1139.0+4033_daily_bin1458.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): 0
logL (Free Index) = 6707.52080183
delta logL = 0.0448483684422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6707.51897483
delta logL = 0.0466753714127

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.832       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4553       1.0000          .0000       10.000    
     3 'Normalizat'    1.0157       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95284       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6707.519     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      260 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.958        1577.5        .16509E-02    .22669E-04
   2  Index         2.4582        5.9157        .23696        .37561E-04
   3  Normalizat    1.0156        .63454E-01    .44063E-01    .68851E-05
   4  Prefactor     .95277        .71124E-01    .65368E-01    .13532E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.9581
  Index      = 2.45817
  Normalizat = 1.01559
  Prefactor  = 0.952766
 **********
 **   18 **HESSE 
 **********

 FCN=   6707.519     FROM HESSE     STATUS=OK            33 CALLS      293 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.958        46.928        .66037E-04   -1.4491    
   2  Index         2.4582        .82173        .10624E-01   -.53329    
   3  Normalizat    1.0156        .18103        .23493E-03   -.92510    
   4  Prefactor     .95277        .21574        .28911E-03   -.94321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96357e-12
Minuit parameter uncertainties:
  1  46.975
  2  0.826798
  3  0.181136
  4  0.215933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991183': 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) = 6707.51895942
delta logL = 0.0466907832051

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  3.696e+01  4.698e+01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  2.458e+00  8.268e-01  0.000e+00  1.000e+01 (-1.000e+00)
343        Scale:  6.779e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  9.528e-01  2.159e-01  0.000e+00  1.000e+01 ( 1.000e+00)
694        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
695        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
692   Normalization:  1.016e+00  1.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.86
Ra Dec: 174.764 40.562

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/991183/cmap_HighResolution_617241601_617500801_4FGL_J1139.0+4033_daily_bin1458.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.04e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-09-04 07:30:32.414703', job_id='991183', GAL2='0.95', fit_tolerance='1e-08', EG2='1.02', EG='1.01', time_epoch_completed='1630765832.41', return_code2='0', ts='0.86', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='4.67e-02', ts2='0.95', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='1458' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:30:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 991183: <4FGL_J1139.0+4033_daily_bin1458> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin1458> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Sep  4 07:16:54 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:16:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 07:16:56 2021
Terminated at Sat Sep  4 07:30:33 2021
Results reported at Sat Sep  4 07:30:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin1458 174.764 40.5617 617241601 617500801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1139.0+4033 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   794.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            819 sec.

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

