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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin533
RA = 174.764, Dec = 40.5617
tmin = 377481601, tmax = 377740801
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='986102', job_status='RUN', time_executed='2021-09-04 07:02:09.235904', time_epoch_executed='1630764129.24' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='533'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/986102

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/986102/ft1_4FGL_J1139.0+4033_daily_bin533.fits


Retrieving the FT1 file...

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

Retrieving 40 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/986102/ft2_4FGL_J1139.0+4033_daily_bin533.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/986102/ft1_4FGL_J1139.0+4033_daily_bin533.fits outfile=/scratch/kocevski/986102/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin533.fits ra=174.764 dec=40.5617 rad=12.0 tmin=377481601.0 tmax=377740801.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.14
user 2.93
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/986102/ft2_4FGL_J1139.0+4033_daily_bin533.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/986102/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin533.fits evtable="EVENTS" outfile="/scratch/kocevski/986102/ft1_filtered_4FGL_J1139.0+4033_daily_bin533.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.50
user 0.30
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/986102/ft1_filtered_4FGL_J1139.0+4033_daily_bin533.fits" evtable="EVENTS" scfile=/scratch/kocevski/986102/ft2_4FGL_J1139.0+4033_daily_bin533.fits sctable="SC_DATA" outfile=/scratch/kocevski/986102/ltcube_377481601_377740801_4FGL_J1139.0+4033_daily_bin533.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/986102/ft2_4FGL_J1139.0+4033_daily_bin533.fits
.....................!
real 10.42
user 9.99
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/986102/ft1_filtered_4FGL_J1139.0+4033_daily_bin533.fits evtable="EVENTS" scfile=/scratch/kocevski/986102/ft2_4FGL_J1139.0+4033_daily_bin533.fits sctable="SC_DATA" expcube=/scratch/kocevski/986102/ltcube_377481601_377740801_4FGL_J1139.0+4033_daily_bin533.fits outfile=/scratch/kocevski/986102/expmap_377481601_377740801_4FGL_J1139.0+4033_daily_bin533.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/986102/ltcube_377481601_377740801_4FGL_J1139.0+4033_daily_bin533.fits
.....................!
real 190.99
user 185.90
sys 4.63

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/986102/ft1_filtered_4FGL_J1139.0+4033_daily_bin533.fits scfile=/scratch/kocevski/986102/ft2_4FGL_J1139.0+4033_daily_bin533.fits outfile=/scratch/kocevski/986102/cmap_377481601_377740801_4FGL_J1139.0+4033_daily_bin533.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/986102/ft1_filtered_4FGL_J1139.0+4033_daily_bin533.fits scfile=/scratch/kocevski/986102/ft2_4FGL_J1139.0+4033_daily_bin533.fits outfile=/scratch/kocevski/986102/cmap_HighResolution_377481601_377740801_4FGL_J1139.0+4033_daily_bin533.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.55
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.617       1.0000         .10000E-03   10000.    
     3 'norm      '    2.1721       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9686       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    29.451       1.0000         .10000E-03   10000.    
     8 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5610       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7399       1.0000         .10000E-03   10000.    
    12 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.9905       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4209       1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.322       1.0000         .10000E-03   10000.    
    16 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.1606       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10806E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.9924       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89190       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .71928       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=   4726.565     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2854 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.929        .22882E-06** at limit **
   2  Prefactor     45.561        85.688       -.19507E-05   -.98424E-04
   3  norm          2.1721        .45838       -.28597E-08    .15434E-04
   4  Prefactor     6.9624        21.454        .99640E-07   -.31004E-05
   5  Prefactor     .10000E-03    20.280       -.30638E-07** at limit **
   6  Prefactor     .10000E-03    25.539       -.36402E-06** at limit **
   7  norm          29.448        20.525       -.14667E-06    .91912E-05
   8  norm          .10000E-03    55.549       -.34276E-06** at limit **
   9  Prefactor     3.5609        2.9860        .27761E-08   -.13678E-04
  10  Prefactor     .10000E-03    18.710        .15964E-06** at limit **
  11  Prefactor     4.7403        10.141        .44166E-05   -.35391E-05
  12  norm          .10000E-03    1.3344       -.13579E-06** at limit **
  13  Prefactor     9.9907        11.461       -.64777E-06   -.10488E-04
  14  Prefactor     3.4204        6.0892        .30477E-06    .33755E-04
  15  Prefactor     35.310        37.813       -.25160E-06   -.43263E-04
  16  norm          .10000E-03    .28128       -.72522E-07** at limit **
  17  norm          9.1611        8.3612       -.59135E-06    .12567E-04
  18  Prefactor     .10000E-03    40.140        .97793E-06** at limit **
  19  Prefactor     .10000E-03    .91570        .54188E-07** at limit **
  20  Prefactor     .10000E-03    15.801       -.58654E-07** at limit **
  21  Prefactor     .10000E-03    5.6258        .57320E-07** at limit **
  22  Prefactor     6.9930        18.955        .20493E-06   -.62472E-06
  23  Prefactor     .10000E-03    3.0550        .65850E-07** at limit **
  24  Normalizat    .89227        .16739        .14681E-05   -.76312E-04
  25  Prefactor     .71883        .19269       -.19519E-05    .57956E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 45.5605
  norm       = 2.17212
  Prefactor  = 6.96244
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 29.4485
  norm       = 0.0001
  Prefactor  = 3.56091
  Prefactor  = 0.0001
  Prefactor  = 4.74026
  norm       = 0.0001
  Prefactor  = 9.99067
  Prefactor  = 3.42044
  Prefactor  = 35.3103
  norm       = 0.0001
  norm       = 9.16114
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.99304
  Prefactor  = 0.0001
  Normalizat = 0.892274
  Prefactor  = 0.718834
 **********
 **   18 **HESSE 
 **********

 FCN=   4726.565     FROM HESSE     STATUS=OK           425 CALLS     3279 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     45.561        86.084        .59363E-04   -1.4357    
   3  norm          2.1721        .45943        .19779E-04   -1.5413    
   4  Prefactor     6.9624        21.384        .15197E-03   -1.5180    
   5  Prefactor     .10000E-03    20.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          29.448        20.390        .73827E-04   -1.4622    
   8  norm          .10000E-03    55.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.5609        2.9572        .98047E-04   -1.5331    
  10  Prefactor     .10000E-03    18.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.7403        10.204        .92408E-03   -1.5272    
  12  norm          .10000E-03    1.3563        .77361E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.9907        11.461        .12677E-03   -1.5076    
  14  Prefactor     3.4204        6.0444        .20429E-03   -1.5338    
  15  Prefactor     35.310        37.831        .67429E-04   -1.4519    
  16  norm          .10000E-03    .28610        .35484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.1611        8.3620        .66209E-03   -1.5103    
  18  Prefactor     .10000E-03    41.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .92384        .64228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.6336        .15926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.9930        18.947        .15171E-03   -1.5179    
  23  Prefactor     .10000E-03    3.0678        .11735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .89227        .19357        .21452E-03   -.96732    
  25  Prefactor     .71883        .22121        .28202E-03   -1.0279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79813e-10
Minuit parameter uncertainties:
  1  0.000188306
  2  86.32
  3  0.459431
  4  21.4072
  5  1.00352e-05
  6  0.000187119
  7  20.3949
  8  0.000317242
  9  2.95729
  10  8.37418e-05
  11  10.2076
  12  4.93492e-07
  13  11.4632
  14  6.04548
  15  37.8563
  16  3.88868e-07
  17  8.36303
  18  0.000106967
  19  2.48171e-07
  20  2.18794e-05
  21  1.26255e-06
  22  18.9634
  23  1.14732e-06
  24  0.193724
  25  0.221486
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  3.531e+01  3.786e+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:  7.188e-01  2.215e-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.923e-01  1.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.35
Ra Dec: 174.764 40.562
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 3.75e-08 +/- 4.01e-08
Energy Flux (Fixed Index): 8.88e-06 +/- 9.52e-06

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

Saving results to:
/scratch/kocevski/986102/likelihoodResults_377481601_377740801_4FGL_J1139.0+4033_daily_bin533.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) = 4725.63920824
delta logL = 0.925759203596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4725.57441663
delta logL = 0.990550819442

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.828       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1449       1.0000          .0000       10.000    
     3 'Normalizat'    .91853       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70579       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=   4725.574     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      223 TOTAL
                     EDM=   .60E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 16.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.837        34.342        .96823E-05   -.79245E-05
   2  Index         1.1451        .67053        .36566E-04    .16283E-05
   3  Normalizat    .91854        .15710       -.43151E-07   -.54291E-04
   4  Prefactor     .70577        .18812       -.20800E-06    .45057E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.8367
  Index      = 1.14507
  Normalizat = 0.918539
  Prefactor  = 0.705774
 **********
 **   18 **HESSE 
 **********

 FCN=   4725.574     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.837        31.456        .87763E-04   -1.4795    
   2  Index         1.1451        .61253        .70415E-02   -.88039    
   3  Normalizat    .91854        .18403        .21167E-03   -.95812    
   4  Prefactor     .70577        .22009        .28429E-03   -1.0330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5284e-09
Minuit parameter uncertainties:
  1  31.4812
  2  0.616371
  3  0.184158
  4  0.220361
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/986102': 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) = 4725.57441659
delta logL = 0.990550859952

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  2.084e+01  3.148e+01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  1.145e+00  6.164e-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:  7.058e-01  2.204e-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:  9.185e-01  1.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.27
Ra Dec: 174.764 40.562
Photon Index (Free Index): 1.15 +/- 0.62
Photon Flux (Free Index): 8.13e-09 +/- 8.97e-09
Energy Flux (Free Index): 7.99e-05 +/- 1.20e-04

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/986102/cmap_HighResolution_377481601_377740801_4FGL_J1139.0+4033_daily_bin533.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.95e-03', comment='SUCCESS', photon_flux='3.75e-08', energy_flux2='7.99e-05', photon_flux_error='4.01e-08', dlogl='9.91e-01', energy_flux='8.88e-06', photon_flux2='8.13e-09', job_status='DONE', time_completed='2021-09-04 07:13:25.832053', photon_index_error2='0.62', photon_index2='1.15', ts='1.35', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='1.20e-04', EG='0.89', time_epoch_completed='1630764805.83', return_code='0', job_id='986102', GAL2='0.71', EG2='0.92', return_code2='0', energy_flux_error='9.52e-06', photon_flux_error2='8.97e-09', ts2='3.27', photon_index='2.72' WHERE bin_id='533' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:13:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 986102: <4FGL_J1139.0+4033_daily_bin533> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin533> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 07:01:45 2021
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:01:46 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:01:46 2021
Terminated at Sat Sep  4 07:13:26 2021
Results reported at Sat Sep  4 07:13:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin533 174.764 40.5617 377481601 377740801 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 :                                   674.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            701 sec.

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

