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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin1367
RA = 174.764, Dec = 40.5617
tmin = 593654401, tmax = 593913601
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='991038', job_status='RUN', time_executed='2021-09-04 07:17:03.406410', time_epoch_executed='1630765023.41' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='1367'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991038

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991038/ft1_4FGL_J1139.0+4033_daily_bin1367.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991038/ft2_4FGL_J1139.0+4033_daily_bin1367.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991038/ft1_4FGL_J1139.0+4033_daily_bin1367.fits outfile=/scratch/kocevski/991038/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin1367.fits ra=174.764 dec=40.5617 rad=12.0 tmin=593654401.0 tmax=593913601.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.55
user 3.32
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/991038/ft2_4FGL_J1139.0+4033_daily_bin1367.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/991038/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin1367.fits evtable="EVENTS" outfile="/scratch/kocevski/991038/ft1_filtered_4FGL_J1139.0+4033_daily_bin1367.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/991038/ft1_filtered_4FGL_J1139.0+4033_daily_bin1367.fits" evtable="EVENTS" scfile=/scratch/kocevski/991038/ft2_4FGL_J1139.0+4033_daily_bin1367.fits sctable="SC_DATA" outfile=/scratch/kocevski/991038/ltcube_593654401_593913601_4FGL_J1139.0+4033_daily_bin1367.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/991038/ft2_4FGL_J1139.0+4033_daily_bin1367.fits
.....................!
real 11.91
user 11.57
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991038/ft1_filtered_4FGL_J1139.0+4033_daily_bin1367.fits evtable="EVENTS" scfile=/scratch/kocevski/991038/ft2_4FGL_J1139.0+4033_daily_bin1367.fits sctable="SC_DATA" expcube=/scratch/kocevski/991038/ltcube_593654401_593913601_4FGL_J1139.0+4033_daily_bin1367.fits outfile=/scratch/kocevski/991038/expmap_593654401_593913601_4FGL_J1139.0+4033_daily_bin1367.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/991038/ltcube_593654401_593913601_4FGL_J1139.0+4033_daily_bin1367.fits
.....................!
real 190.37
user 185.20
sys 4.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 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/991038/ft1_filtered_4FGL_J1139.0+4033_daily_bin1367.fits scfile=/scratch/kocevski/991038/ft2_4FGL_J1139.0+4033_daily_bin1367.fits outfile=/scratch/kocevski/991038/cmap_593654401_593913601_4FGL_J1139.0+4033_daily_bin1367.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/991038/ft1_filtered_4FGL_J1139.0+4033_daily_bin1367.fits scfile=/scratch/kocevski/991038/ft2_4FGL_J1139.0+4033_daily_bin1367.fits outfile=/scratch/kocevski/991038/cmap_HighResolution_593654401_593913601_4FGL_J1139.0+4033_daily_bin1367.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.53
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/991038/ft1_filtered_4FGL_J1139.0+4033_daily_bin1367.fits', '/scratch/kocevski/991038/ft2_4FGL_J1139.0+4033_daily_bin1367.fits', expMap='/scratch/kocevski/991038/expmap_593654401_593913601_4FGL_J1139.0+4033_daily_bin1367.fits', expCube='/scratch/kocevski/991038/ltcube_593654401_593913601_4FGL_J1139.0+4033_daily_bin1367.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/991038/Model_4FGL_J1139.0+4033_daily_bin1367.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/991038/ft1_filtered_4FGL_J1139.0+4033_daily_bin1367.fits
Spacecraft file(s): /scratch/kocevski/991038/ft2_4FGL_J1139.0+4033_daily_bin1367.fits
Exposure map: /scratch/kocevski/991038/expmap_593654401_593913601_4FGL_J1139.0+4033_daily_bin1367.fits
Exposure cube: /scratch/kocevski/991038/ltcube_593654401_593913601_4FGL_J1139.0+4033_daily_bin1367.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/991038/Model_4FGL_J1139.0+4033_daily_bin1367.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) = 5030.72270021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.5666       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.080       1.0000         .10000E-03   10000.    
     6 'Prefactor '    157.88       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10200E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.020       1.0000         .10000E-03   10000.    
    12 'norm      '    10.857       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    48.637       1.0000         .10000E-03   10000.    
    16 'norm      '    2.2236       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.599       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.000       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87551       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91910       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5030.717     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2882 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.832       -.63674E-05** at limit **
   2  Prefactor     .10000E-03    42.766       -.58526E-05** at limit **
   3  norm          1.5666        .40551       -.27681E-08    .96360E-04
   4  Prefactor     .10000E-03    9.5845       -.20550E-06** at limit **
   5  Prefactor     15.080        16.339       -.61660E-06   -.29659E-03
   6  Prefactor     157.84        121.45       -.27243E-04   -.47578E-05
   7  norm          .10000E-03    3.2649       -.84426E-08** at limit **
   8  norm          .10000E-03    32.408        .11059E-04** at limit **
   9  Prefactor     .10000E-03    .71585        .18519E-07** at limit **
  10  Prefactor     .10000E-03    13.035        .83650E-06** at limit **
  11  Prefactor     14.018        17.107       -.46588E-06    .48650E-05
  12  norm          10.856        3.7347       -.33736E-06   -.14850E-05
  13  Prefactor     .10000E-03    8.5107       -.14557E-05** at limit **
  14  Prefactor     .10000E-03    2.1061        .10759E-07** at limit **
  15  Prefactor     48.646        54.390        .10129E-04   -.92367E-05
  16  norm          2.2233        1.4440       -.71304E-06   -.14531E-03
  17  norm          .10000E-03    6.6861       -.38044E-06** at limit **
  18  Prefactor     .10000E-03    7.6854        .10062E-05** at limit **
  19  Prefactor     .10000E-03    2.9598       -.25580E-07** at limit **
  20  Prefactor     31.602        35.120        .25672E-05   -.71330E-05
  21  Prefactor     15.002        13.919       -.94507E-07    .39882E-05
  22  Prefactor     .10000E-03    7.8576        .37303E-06** at limit **
  23  Prefactor     .10000E-03    3.9145        .37783E-07** at limit **
  24  Normalizat    .87534        .17554       -.92937E-08    .45340E-04
  25  Prefactor     .91931        .20988        .13566E-05   -.13946E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.56658
  Prefactor  = 0.0001
  Prefactor  = 15.0795
  Prefactor  = 157.84
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0177
  norm       = 10.8564
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.646
  norm       = 2.22333
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.6015
  Prefactor  = 15.002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.875341
  Prefactor  = 0.91931
 **********
 **   18 **HESSE 
 **********

 FCN=   5030.717     FROM HESSE     STATUS=OK           419 CALLS     3301 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    42.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5666        .40765        .21429E-04   -1.5458    
   4  Prefactor     .10000E-03    9.6379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.080        16.442        .51570E-03   -1.4931    
   6  Prefactor     157.84        121.48        .16045E-03   -1.3189    
   7  norm          .10000E-03    3.2669        .12516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    32.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .71914        .58567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.018        17.095        .10697E-03   -1.4959    
  12  norm          10.856        3.7321        .74895E-04   -1.5049    
  13  Prefactor     .10000E-03    8.5460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.1224        .10048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     48.646        54.723        .57499E-04   -1.4312    
  16  norm          2.2233        1.4444        .57125E-04   -1.5410    
  17  norm          .10000E-03    6.7153        .17911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.6961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.0613        .23781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     31.602        35.143        .71280E-04   -1.4583    
  21  Prefactor     15.002        13.914        .10341E-03   -1.4933    
  22  Prefactor     .10000E-03    7.8623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.9387        .13704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .87534        .20289        .23452E-03   -.97332    
  25  Prefactor     .91931        .24203        .27838E-03   -.95470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83861e-10
Minuit parameter uncertainties:
  1  4.80947e-06
  2  2.85421e-06
  3  0.407648
  4  1.2884e-06
  5  16.4465
  6  121.675
  7  7.73883e-07
  8  8.26714e-05
  9  9.01623e-07
  10  3.19632e-06
  11  17.1012
  12  3.73214
  13  1.6486e-06
  14  2.08426e-06
  15  54.7797
  16  1.44442
  17  1.11989e-05
  18  4.55791e-06
  19  9.50417e-07
  20  35.1661
  21  13.9168
  22  2.9551e-06
  23  4.45873e-06
  24  0.203064
  25  0.242316
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  4.865e+01  5.478e+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.193e-01  2.423e-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:  8.753e-01  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.47
Ra Dec: 174.764 40.562
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 5.16e-08 +/- 5.81e-08
Energy Flux (Fixed Index): 1.22e-05 +/- 1.38e-05

TS (Fixed Index): 1.47
Ra Dec: 174.764 40.562
Photon Flux Upper Limit: 1.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.23e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/991038/likelihoodResults_593654401_593913601_4FGL_J1139.0+4033_daily_bin1367.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) = 5030.02418039
delta logL = 0.69320709056

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5030.00173268
delta logL = 0.715654801449

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.505       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0671       1.0000          .0000       10.000    
     3 'Normalizat'    .82261       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96340       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5030.002     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      344 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.495        265.01        .11328E-03   -.14261E-03
   2  Index         4.0680        6.9917        .48176E-02   -.80072E-04
   3  Normalizat    .82244        .20619        .24063E-03    .81628E-03
   4  Prefactor     .96341        .24865        .27259E-03    .62338E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4951
  Index      = 4.06797
  Normalizat = 0.822438
  Prefactor  = 0.963406
 **********
 **   18 **HESSE 
 **********

 FCN=   5030.002     FROM HESSE     STATUS=OK            25 CALLS      369 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.495        29.410        .45311E-05   -1.5001    
   2  Index         4.0680        1.4752        .19270E-03   -.18750    
   3  Normalizat    .82244        .20609        .48125E-04   -.99242    
   4  Prefactor     .96341        .24611        .54517E-04   -.93959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32313e-09
Minuit parameter uncertainties:
  1  29.4444
  2  1.49836
  3  0.206288
  4  0.246399
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991038': 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) = 5030.00173099
delta logL = 0.715656496652

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.250e+01  2.944e+01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  4.068e+00  1.498e+00  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.634e-01  2.464e-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:  8.224e-01  2.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.04
Ra Dec: 174.764 40.562
Photon Index (Free Index): 4.07 +/- 1.50
Photon Flux (Free Index): 9.83e-08 +/- 6.72e-08
Energy Flux (Free Index): 1.46e-05 +/- 9.95e-06

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/991038/cmap_HighResolution_593654401_593913601_4FGL_J1139.0+4033_daily_bin1367.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', comment='SUCCESS', photon_flux='5.16e-08', energy_flux2='1.46e-05', photon_flux_error='5.81e-08', dlogl='7.16e-01', energy_flux='1.22e-05', photon_flux2='9.83e-08', job_status='DONE', time_completed='2021-09-04 07:29:18.286692', photon_index_error2='1.50', photon_index2='4.07', ts='1.47', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.56e-07', energy_flux_error2='9.95e-06', EG='0.88', time_epoch_completed='1630765758.29', return_code='0', job_id='991038', GAL2='0.96', EG2='0.82', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='6.72e-08', ts2='3.04', photon_index='2.72' WHERE bin_id='1367' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:29:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 991038: <4FGL_J1139.0+4033_daily_bin1367> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin1367> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Sep  4 07:16:42 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:16:44 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:44 2021
Terminated at Sat Sep  4 07:29:19 2021
Results reported at Sat Sep  4 07:29:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin1367 174.764 40.5617 593654401 593913601 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 :                                   721.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            757 sec.

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

