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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin43
RA = 174.764, Dec = 40.5617
tmin = 250473601, tmax = 250732801
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='978751', job_status='RUN', time_executed='2021-09-04 06:44:07.684973', time_epoch_executed='1630763047.69' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='43'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/978751

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/978751/ft1_4FGL_J1139.0+4033_daily_bin43.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/978751/ft2_4FGL_J1139.0+4033_daily_bin43.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/978751/ft1_4FGL_J1139.0+4033_daily_bin43.fits outfile=/scratch/kocevski/978751/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin43.fits ra=174.764 dec=40.5617 rad=12.0 tmin=250473601.0 tmax=250732801.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.33
user 1.15
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/978751/ft1_filtered_4FGL_J1139.0+4033_daily_bin43.fits evtable="EVENTS" scfile=/scratch/kocevski/978751/ft2_4FGL_J1139.0+4033_daily_bin43.fits sctable="SC_DATA" expcube=/scratch/kocevski/978751/ltcube_250473601_250732801_4FGL_J1139.0+4033_daily_bin43.fits outfile=/scratch/kocevski/978751/expmap_250473601_250732801_4FGL_J1139.0+4033_daily_bin43.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/978751/ltcube_250473601_250732801_4FGL_J1139.0+4033_daily_bin43.fits
.....................!
real 192.36
user 186.16
sys 5.81

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/978751/ft1_filtered_4FGL_J1139.0+4033_daily_bin43.fits scfile=/scratch/kocevski/978751/ft2_4FGL_J1139.0+4033_daily_bin43.fits outfile=/scratch/kocevski/978751/cmap_250473601_250732801_4FGL_J1139.0+4033_daily_bin43.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=174.764 yref=40.5617 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/978751/ft1_filtered_4FGL_J1139.0+4033_daily_bin43.fits scfile=/scratch/kocevski/978751/ft2_4FGL_J1139.0+4033_daily_bin43.fits outfile=/scratch/kocevski/978751/cmap_HighResolution_250473601_250732801_4FGL_J1139.0+4033_daily_bin43.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=174.764 yref=40.5617 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .22654E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .97757       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .71654       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.641       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-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 '    .10058E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9863       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .23971       1.0000         .10000E-03   10000.    
    15 'Prefactor '    61.378       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2556       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.365       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.7096       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8864       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.9897       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1677       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .71318       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=   6017.649     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     2962 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.451       -.47846E-06** at limit **
   2  Prefactor     .10000E-03    487.43       -.29770E-04** at limit **
   3  norm          .97754        .27389       -.23330E-08    .16891E-02
   4  Prefactor     .73939        9.4562       -.30173E-05    .69249E-04
   5  Prefactor     .10000E-03    9.9547        .50672E-05** at limit **
   6  Prefactor     29.636        100.09       -.58486E-05    .40307E-05
   7  norm          .10000E-03    4.8003        .20291E-07** at limit **
   8  norm          .10000E-03    14.639        .26612E-06** at limit **
   9  Prefactor     .10000E-03    .65523        .75449E-08** at limit **
  10  Prefactor     .10000E-03    8.7389       -.10568E-05** at limit **
  11  Prefactor     .10000E-03    8.0169        .26156E-06** at limit **
  12  norm          .10000E-03    .64925       -.79384E-08** at limit **
  13  Prefactor     3.9899        11.316        .20531E-05   -.11342E-03
  14  Prefactor     .23121        2.2042        .38638E-06    .31762E-03
  15  Prefactor     61.376        35.599        .11340E-05    .25943E-04
  16  norm          1.2556        .89052       -.18535E-06   -.30278E-03
  17  norm          .10000E-03    2.8438       -.62069E-07** at limit **
  18  Prefactor     24.373        24.416       -.19122E-04   -.93725E-06
  19  Prefactor     3.7090        3.8768       -.70831E-07   -.30940E-03
  20  Prefactor     2.8844        49.721        .95690E-05   -.35325E-04
  21  Prefactor     9.9908        18.310       -.35151E-05   -.16544E-04
  22  Prefactor     .10000E-03    10.311       -.40006E-05** at limit **
  23  Prefactor     .10000E-03    3.5461        .90708E-08** at limit **
  24  Normalizat    1.1677        .16309        .32675E-05    .94109E-04
  25  Prefactor     .71330        .18803       -.75498E-06    .21186E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.977539
  Prefactor  = 0.739393
  Prefactor  = 0.0001
  Prefactor  = 29.6362
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.98985
  Prefactor  = 0.231212
  Prefactor  = 61.3764
  norm       = 1.25559
  norm       = 0.0001
  Prefactor  = 24.3726
  Prefactor  = 3.70904
  Prefactor  = 2.8844
  Prefactor  = 9.99077
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.16768
  Prefactor  = 0.713302
 **********
 **   18 **HESSE 
 **********

 FCN=   6017.649     FROM HESSE     STATUS=OK           427 CALLS     3389 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    492.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .97754        .27406        .20475E-04   -1.5510    
   4  Prefactor     .73939        37.636        .44501E-02   -1.5536    
   5  Prefactor     .10000E-03    10.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.636        100.17        .73591E-04   -1.4619    
   7  norm          .10000E-03    4.8124        .16593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    14.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .66226        .61260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.7411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.0452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.1228        .12134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.9899        11.261        .20201E-03   -1.5308    
  14  Prefactor     .23121        14.709        .21767E-02   -1.5612    
  15  Prefactor     61.376        35.498        .51216E-04   -1.4139    
  16  norm          1.2556        .87828        .56416E-04   -1.5484    
  17  norm          .10000E-03    2.8444        .12773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.373        24.493        .81152E-04   -1.4720    
  19  Prefactor     3.7090        3.8513        .14011E-03   -1.5323    
  20  Prefactor     2.8844        49.207        .23921E-03   -1.5368    
  21  Prefactor     9.9908        18.212        .12678E-03   -1.5076    
  22  Prefactor     .10000E-03    10.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.6106        .14264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1677        .18516        .21121E-03   -.87607    
  25  Prefactor     .71330        .21368        .31045E-03   -1.0301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39578e-09
Minuit parameter uncertainties:
  1  4.33489e-05
  2  0.00179086
  3  0.274063
  4  10.5567
  5  7.92989e-08
  6  100.747
  7  4.37086e-06
  8  3.53752e-07
  9  1.09528e-06
  10  2.01822e-06
  11  1.08137e-05
  12  1.70098e-06
  13  11.267
  14  3.68843
  15  35.5103
  16  0.878293
  17  1.05183e-05
  18  24.5034
  19  3.85159
  20  23.8497
  21  18.2218
  22  9.22743e-05
  23  2.80852e-06
  24  0.185259
  25  0.213926
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  6.138e+01  3.551e+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.133e-01  2.139e-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.168e+00  1.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.80
Ra Dec: 174.764 40.562
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 6.51e-08 +/- 3.76e-08
Energy Flux (Fixed Index): 1.54e-05 +/- 8.93e-06

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) = 6017.26321349
delta logL = 0.386088023286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6017.2630382
delta logL = 0.386263307057

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    88.820       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3223       1.0000          .0000       10.000    
     3 'Normalizat'    1.1778       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70321       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=   6017.263     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      300 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     88.724        53.702        .21317E-03    .10240E-04
   2  Index         2.3213        .42421        .61646E-02    .20072E-03
   3  Normalizat    1.1776        .17930        .21039E-03    .62682E-05
   4  Prefactor     .70342        .21067        .31225E-03   -.17112E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 88.7241
  Index      = 2.32131
  Normalizat = 1.17764
  Prefactor  = 0.703421
 **********
 **   18 **HESSE 
 **********

 FCN=   6017.263     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .83E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     88.724        53.091        .85267E-05   -1.3821    
   2  Index         2.3213        .41937        .12329E-02   -.56538    
   3  Normalizat    1.1776        .17945        .84157E-05   -.87297    
   4  Prefactor     .70342        .21085        .12490E-04   -1.0339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.25435e-13
Minuit parameter uncertainties:
  1  53.1196
  2  0.42006
  3  0.179542
  4  0.21109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/978751': 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) = 6017.26302956
delta logL = 0.386271948491

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  8.872e+01  5.312e+01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  2.321e+00  4.201e-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.034e-01  2.111e-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.178e+00  1.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.60
Ra Dec: 174.764 40.562
Photon Index (Free Index): 2.32 +/- 0.42
Photon Flux (Free Index): 5.71e-08 +/- 3.36e-08
Energy Flux (Free Index): 2.09e-05 +/- 1.41e-05

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/978751/cmap_HighResolution_250473601_250732801_4FGL_J1139.0+4033_daily_bin43.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.51e-08', energy_flux2='2.09e-05', photon_flux_error='3.76e-08', dlogl='3.86e-01', energy_flux='1.54e-05', photon_flux2='5.71e-08', job_status='DONE', time_completed='2021-09-04 06:55:52.931810', photon_index_error2='0.42', photon_index2='2.32', ts='5.80', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='1.41e-05', EG='1.17', time_epoch_completed='1630763752.93', return_code='0', job_id='978751', GAL2='0.70', EG2='1.18', return_code2='0', energy_flux_error='8.93e-06', photon_flux_error2='3.36e-08', ts2='6.60', photon_index='2.72' WHERE bin_id='43' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 06:55:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 978751: <4FGL_J1139.0+4033_daily_bin43> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin43> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 06:41:19 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 06:41:20 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:20 2021
Terminated at Sat Sep  4 06:55:53 2021
Results reported at Sat Sep  4 06:55:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin43 174.764 40.5617 250473601 250732801 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 :                                   704.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            874 sec.

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

