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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin1157
RA = 174.764, Dec = 40.5617
tmin = 539222401, tmax = 539481601
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='989365', job_status='RUN', time_executed='2021-09-04 07:13:29.790353', time_epoch_executed='1630764809.79' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='1157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/989365

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/989365/ft1_4FGL_J1139.0+4033_daily_bin1157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/989365/ft2_4FGL_J1139.0+4033_daily_bin1157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/989365/ft1_4FGL_J1139.0+4033_daily_bin1157.fits outfile=/scratch/kocevski/989365/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin1157.fits ra=174.764 dec=40.5617 rad=12.0 tmin=539222401.0 tmax=539481601.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 5.72
user 5.44
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/989365/ft2_4FGL_J1139.0+4033_daily_bin1157.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/989365/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin1157.fits evtable="EVENTS" outfile="/scratch/kocevski/989365/ft1_filtered_4FGL_J1139.0+4033_daily_bin1157.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/989365/ft1_filtered_4FGL_J1139.0+4033_daily_bin1157.fits" evtable="EVENTS" scfile=/scratch/kocevski/989365/ft2_4FGL_J1139.0+4033_daily_bin1157.fits sctable="SC_DATA" outfile=/scratch/kocevski/989365/ltcube_539222401_539481601_4FGL_J1139.0+4033_daily_bin1157.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/989365/ft2_4FGL_J1139.0+4033_daily_bin1157.fits
.....................!
real 11.81
user 11.39
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/989365/ft1_filtered_4FGL_J1139.0+4033_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/989365/ft2_4FGL_J1139.0+4033_daily_bin1157.fits sctable="SC_DATA" expcube=/scratch/kocevski/989365/ltcube_539222401_539481601_4FGL_J1139.0+4033_daily_bin1157.fits outfile=/scratch/kocevski/989365/expmap_539222401_539481601_4FGL_J1139.0+4033_daily_bin1157.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/989365/ltcube_539222401_539481601_4FGL_J1139.0+4033_daily_bin1157.fits
.....................!
real 189.45
user 184.72
sys 4.35

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/989365/ft1_filtered_4FGL_J1139.0+4033_daily_bin1157.fits scfile=/scratch/kocevski/989365/ft2_4FGL_J1139.0+4033_daily_bin1157.fits outfile=/scratch/kocevski/989365/cmap_539222401_539481601_4FGL_J1139.0+4033_daily_bin1157.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/989365/ft1_filtered_4FGL_J1139.0+4033_daily_bin1157.fits scfile=/scratch/kocevski/989365/ft2_4FGL_J1139.0+4033_daily_bin1157.fits outfile=/scratch/kocevski/989365/cmap_HighResolution_539222401_539481601_4FGL_J1139.0+4033_daily_bin1157.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    125.80       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.4311       1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.545       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    27.028       1.0000         .10000E-03   10000.    
     8 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10461E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14602E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    45.189       1.0000         .10000E-03   10000.    
    12 'norm      '    .11111E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.912       1.0000         .10000E-03   10000.    
    15 'Prefactor '    81.847       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    348.35       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.451       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15619E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10405E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.424       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2247       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .61620       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=   1074.916     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     3459 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     125.95        159.20       -.13384E-05   -.53334E-04
   2  Prefactor     .10000E-03    155.08       -.25505E-05** at limit **
   3  norm          5.4295        1.7890        .12525E-06   -.85890E-03
   4  Prefactor     31.722        63.688       -.15994E-05   -.12178E-03
   5  Prefactor     .10000E-03    38.366        .76319E-06** at limit **
   6  Prefactor     .10000E-03    160.77       -.33451E-05** at limit **
   7  norm          27.021        35.038        .89934E-06    .46365E-05
   8  norm          .10001E-03    113.09        .50195E-05** at limit **
   9  Prefactor     .10000E-03    8.9217        .33510E-06** at limit **
  10  Prefactor     .10000E-03    345.58        .70668E-06** at limit **
  11  Prefactor     45.190        46.579        .24822E-06   -.13608E-05
  12  norm          .10013E-03    22.818        .75223E-05** at limit **
  13  Prefactor     .10000E-03    19.078       -.18545E-07** at limit **
  14  Prefactor     14.914        16.583        .34193E-06   -.34891E-04
  15  Prefactor     81.978        203.25        .23527E-04   -.91364E-04
  16  norm          .10000E-03    2.7731       -.37915E-06** at limit **
  17  norm          .10000E-03    23.632       -.11975E-06** at limit **
  18  Prefactor     348.40        163.11        .10085E-05   -.33050E-04
  19  Prefactor     10.449        11.016       -.40839E-06   -.46332E-03
  20  Prefactor     .10001E-03    250.71       -.70643E-05** at limit **
  21  Prefactor     .10000E-03    465.15        .53111E-05** at limit **
  22  Prefactor     .10000E-03    57.566       -.82446E-06** at limit **
  23  Prefactor     25.424        26.574        .55565E-06    .21499E-04
  24  Normalizat    1.2250        .64003       -.23525E-04   -.17489E-03
  25  Prefactor     .61570        .66758        .35490E-04    .23653E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 125.945
  Prefactor  = 0.000100001
  norm       = 5.42953
  Prefactor  = 31.7217
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 27.0209
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 45.1903
  norm       = 0.000100126
  Prefactor  = 0.0001
  Prefactor  = 14.9139
  Prefactor  = 81.9784
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 348.404
  Prefactor  = 10.4494
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.424
  Normalizat = 1.22498
  Prefactor  = 0.6157
 **********
 **   18 **HESSE 
 **********

 FCN=   1074.916     FROM HESSE     STATUS=OK           411 CALLS     3870 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     125.95        159.34        .17945E-03   -1.3459    
   2  Prefactor     .10000E-03    155.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.4295        1.7925        .23216E-04   -1.5242    
   4  Prefactor     31.722        63.802        .71341E-04   -1.4581    
   5  Prefactor     .10000E-03    38.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    160.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          27.021        35.029        .38529E-03   -1.4668    
   8  norm          .10001E-03    113.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.0397        .95461E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    346.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     45.190        46.579        .59642E-04   -1.4362    
  12  norm          .10013E-03    37.226        .22134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.079        .13992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.914        16.576        .10372E-03   -1.4935    
  15  Prefactor     81.978        203.43        .22198E-03   -1.3895    
  16  norm          .10000E-03    2.8231        .53497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    23.636        .15574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     348.40        163.18        .10907E-03   -1.1953    
  19  Prefactor     10.449        11.084        .10633E-03   -1.5061    
  20  Prefactor     .10001E-03    251.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    467.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    57.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     25.424        26.593        .79446E-04   -1.4699    
  24  Normalizat    1.2250        .69823        .27229E-03   -.85834    
  25  Prefactor     .61570        .72570        .42128E-03   -1.0693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.35519e-09
Minuit parameter uncertainties:
  1  159.891
  2  0.000877002
  3  1.79257
  4  63.9402
  5  0.000243941
  6  0.00121851
  7  35.0557
  8  0.00152605
  9  3.68093e-05
  10  0.000851401
  11  46.6162
  12  0.00434174
  13  1.40253e-06
  14  16.5813
  15  205.201
  16  3.00652e-05
  17  3.60721e-05
  18  163.398
  19  11.0857
  20  0.00342605
  21  0.000358853
  22  0.000146099
  23  26.6051
  24  0.70366
  25  0.737199
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  8.198e+01  2.052e+02  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:  6.157e-01  7.372e-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.225e+00  7.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/989365/likelihoodResults_539222401_539481601_4FGL_J1139.0+4033_daily_bin1157.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) = 1074.62933078
delta logL = 0.286279747825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1074.60897141
delta logL = 0.306639120158

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.398       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0940       1.0000          .0000       10.000    
     3 'Normalizat'    1.0443       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75669       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=   1074.609     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      290 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.389        129.94        .70398E-04   -.14906E-03
   2  Index         4.0949        2.4371        .41055E-02   -.73739E-04
   3  Normalizat    1.0428        .69017        .29162E-03   -.39871E-03
   4  Prefactor     .75809        .74554        .38214E-03   -.25662E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.3894
  Index      = 4.09485
  Normalizat = 1.04276
  Prefactor  = 0.758093
 **********
 **   18 **HESSE 
 **********

 FCN=   1074.609     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.389        94.567        .14080E-04   -1.4569    
   2  Index         4.0949        1.8127        .16422E-03   -.18203    
   3  Normalizat    1.0428        .69154        .58324E-04   -.91611    
   4  Prefactor     .75809        .74594        .76428E-04   -1.0129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4001e-09
Minuit parameter uncertainties:
  1  95.0092
  2  1.85649
  3  0.697641
  4  0.756186
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/989365': 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) = 1074.60896885
delta logL = 0.306641677631

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  3.239e+01  9.501e+01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  4.095e+00  1.856e+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:  7.581e-01  7.562e-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.043e+00  6.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/989365/cmap_HighResolution_539222401_539481601_4FGL_J1139.0+4033_daily_bin1157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.92e-02', job_status='DONE', photon_flux_upper_limit='6.24e-07', time_completed='2021-09-04 07:21:49.492428', job_id='989365', GAL2='0.76', fit_tolerance='1e-08', EG2='1.04', EG='1.22', time_epoch_completed='1630765309.49', return_code2='0', ts='0.23', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='3.07e-01', ts2='0.97', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='1157' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:21:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 989365: <4FGL_J1139.0+4033_daily_bin1157> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin1157> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 07:11:31 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:11:33 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:11:33 2021
Terminated at Sat Sep  4 07:21:50 2021
Results reported at Sat Sep  4 07:21:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin1157 174.764 40.5617 539222401 539481601 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 :                                   431.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   616 sec.
    Turnaround time :                            619 sec.

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

