/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 149 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 = 7399
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1139.0+4033_daily_bin58
RA = 174.764, Dec = 40.5617
tmin = 254361601, tmax = 254620801
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='978776', job_status='RUN', time_executed='2021-09-04 06:44:01.875074', time_epoch_executed='1630763041.88' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='58'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/978776

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/978776/ft1_4FGL_J1139.0+4033_daily_bin58.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/978776/ft2_4FGL_J1139.0+4033_daily_bin58.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/978776/ft1_4FGL_J1139.0+4033_daily_bin58.fits outfile=/scratch/kocevski/978776/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin58.fits ra=174.764 dec=40.5617 rad=12.0 tmin=254361601.0 tmax=254620801.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 1.44
user 1.26
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/978776/ft1_filtered_4FGL_J1139.0+4033_daily_bin58.fits evtable="EVENTS" scfile=/scratch/kocevski/978776/ft2_4FGL_J1139.0+4033_daily_bin58.fits sctable="SC_DATA" expcube=/scratch/kocevski/978776/ltcube_254361601_254620801_4FGL_J1139.0+4033_daily_bin58.fits outfile=/scratch/kocevski/978776/expmap_254361601_254620801_4FGL_J1139.0+4033_daily_bin58.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/978776/ltcube_254361601_254620801_4FGL_J1139.0+4033_daily_bin58.fits
.....................!
real 191.29
user 186.11
sys 4.75

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/978776/ft1_filtered_4FGL_J1139.0+4033_daily_bin58.fits scfile=/scratch/kocevski/978776/ft2_4FGL_J1139.0+4033_daily_bin58.fits outfile=/scratch/kocevski/978776/cmap_254361601_254620801_4FGL_J1139.0+4033_daily_bin58.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/978776/ft1_filtered_4FGL_J1139.0+4033_daily_bin58.fits scfile=/scratch/kocevski/978776/ft2_4FGL_J1139.0+4033_daily_bin58.fits outfile=/scratch/kocevski/978776/cmap_HighResolution_254361601_254620801_4FGL_J1139.0+4033_daily_bin58.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.59
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.894       1.0000         .10000E-03   10000.    
     3 'norm      '    1.9902       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    57.584       1.0000         .10000E-03   10000.    
     7 'norm      '    19.024       1.0000         .10000E-03   10000.    
     8 'norm      '    .10629E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15360E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10651E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .63033       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10537E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.7803       1.0000         .10000E-03   10000.    
    17 'norm      '    17.903       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.6477       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .49304       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.556       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2310       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .54055       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=   4852.342     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     2903 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.206       -.14620E-05** at limit **
   2  Prefactor     10.696        132.92       -.31130E-04    .11421E-05
   3  norm          1.9903        .40139       -.17172E-07    .83047E-03
   4  Prefactor     .10000E-03    5.5741        .23359E-07** at limit **
   5  Prefactor     .10000E-03    4.3956       -.40860E-07** at limit **
   6  Prefactor     57.605        71.841       -.17658E-05   -.26224E-05
   7  norm          19.026        14.077       -.65868E-06    .45052E-04
   8  norm          .10000E-03    51.702       -.21948E-05** at limit **
   9  Prefactor     .10000E-03    1.5022        .23138E-06** at limit **
  10  Prefactor     .10000E-03    22.566       -.18708E-04** at limit **
  11  Prefactor     .10000E-03    16.686        .30977E-05** at limit **
  12  norm          .63813        2.3897       -.10907E-05   -.31569E-03
  13  Prefactor     .10000E-03    6.0441       -.84552E-07** at limit **
  14  Prefactor     .10000E-03    4.1076        .27225E-06** at limit **
  15  Prefactor     .10000E-03    39.008       -.97429E-06** at limit **
  16  norm          1.7805        1.0949       -.33069E-07    .26201E-03
  17  norm          17.901        11.755        .31320E-07   -.51697E-04
  18  Prefactor     9.6469        27.378       -.19330E-04    .38451E-05
  19  Prefactor     .48346        3.5475        .36608E-05   -.73082E-03
  20  Prefactor     .10000E-03    23.584        .17851E-04** at limit **
  21  Prefactor     14.565        20.421       -.20339E-04   -.37399E-03
  22  Prefactor     .10000E-03    9.6748        .50933E-07** at limit **
  23  Prefactor     .10000E-03    2.1041       -.50761E-07** at limit **
  24  Normalizat    1.2308        .18561        .43502E-05   -.43703E-03
  25  Prefactor     .54076        .20267        .23070E-06   -.47996E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.6963
  norm       = 1.99026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.6051
  norm       = 19.0261
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.638126
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.78051
  norm       = 17.9008
  Prefactor  = 9.6469
  Prefactor  = 0.483457
  Prefactor  = 0.0001
  Prefactor  = 14.5654
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.23081
  Prefactor  = 0.540765
 **********
 **   18 **HESSE 
 **********

 FCN=   4852.342     FROM HESSE     STATUS=OK           423 CALLS     3326 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.696        132.88        .12139E-03   -1.5054    
   3  norm          1.9903        .40191        .19192E-04   -1.5426    
   4  Prefactor     .10000E-03    5.5832        .16060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.3971        .14263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     57.605        71.838        .52866E-04   -1.4189    
   7  norm          19.026        14.065        .91828E-04   -1.4835    
   8  norm          .10000E-03    51.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.8968        .16008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .63813        3.2552        .18259E-02   -1.5548    
  13  Prefactor     .10000E-03    6.0590        .16725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.1891        .13769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    39.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7805        1.0874        .31367E-04   -1.5441    
  17  norm          17.901        11.753        .94658E-04   -1.4862    
  18  Prefactor     9.6469        27.388        .12902E-03   -1.5087    
  19  Prefactor     .48346        6.1895        .22559E-02   -1.5569    
  20  Prefactor     .10000E-03    23.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.565        20.176        .10498E-03   -1.4944    
  22  Prefactor     .10000E-03    9.6812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.1067        .98680E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2308        .20647        .20113E-03   -.85656    
  25  Prefactor     .54076        .22582        .33670E-03   -1.1014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38933e-09
Minuit parameter uncertainties:
  1  7.34194e-06
  2  75.6104
  3  0.401907
  4  5.3962e-06
  5  1.00866e-06
  6  71.9465
  7  14.0672
  8  4.58251e-05
  9  4.61743e-05
  10  3.18135e-05
  11  4.03513e-05
  12  2.88256
  13  1.0388e-06
  14  5.5019e-05
  15  2.30285e-05
  16  1.08737
  17  11.7547
  18  27.4238
  19  3.45977
  20  2.09155e-05
  21  20.1857
  22  3.51242e-05
  23  1.79583e-06
  24  0.206607
  25  0.226199
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.000e-04  2.303e-05  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:  5.408e-01  2.262e-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.231e+00  2.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/978776/likelihoodResults_254361601_254620801_4FGL_J1139.0+4033_daily_bin58.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) = 4852.3419887
delta logL = -0.000121880971165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4852.3418669
delta logL = -7.66240191297e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10358E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6682       1.0000          .0000       10.000    
     3 'Normalizat'    1.2309       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54075       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=   4852.342     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      201 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.299        .90712E-02** at limit **
   2  Index         2.6506        6.3002        .50000        .39494E-05
   3  Normalizat    1.2308        .17384        .34175E-01    .14785E-04
   4  Prefactor     .54076        .20083        .76034E-01    .32487E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.65057
  Normalizat = 1.23081
  Prefactor  = 0.540761
 **********
 **   18 **HESSE 
 **********

 FCN=   4852.342     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6506        6.3196        .50000       -.48916    
   3  Normalizat    1.2308        .19355        .20112E-03   -.85656    
   4  Prefactor     .54076        .22301        .33670E-03   -1.1014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05318e-11
Minuit parameter uncertainties:
  1  0.000124271
  2  4.47613
  3  0.193668
  4  0.223373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/978776': 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) = 4852.34186676
delta logL = 6.25605025562e-08

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.000e-04  1.243e-04  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  2.651e+00  4.476e+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:  5.408e-01  2.234e-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.231e+00  1.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/978776/cmap_HighResolution_254361601_254620801_4FGL_J1139.0+4033_daily_bin58.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.84e-03', job_status='DONE', photon_flux_upper_limit='9.95e-08', time_completed='2021-09-04 06:55:36.940823', job_id='978776', GAL2='0.54', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630763736.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='6.26e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='58' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 06:55:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 978776: <4FGL_J1139.0+4033_daily_bin58> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin58> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 06:41:21 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 06:41:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 06:41:23 2021
Terminated at Sat Sep  4 06:55:37 2021
Results reported at Sat Sep  4 06:55:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin58 174.764 40.5617 254361601 254620801 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 :                                   694.37 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             280.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            856 sec.

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

