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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin1493
RA = 174.764, Dec = 40.5617
tmin = 626313601, tmax = 626572801
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='991241', job_status='RUN', time_executed='2021-09-04 07:17:16.564031', time_epoch_executed='1630765036.56' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='1493'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991241

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991241/ft1_4FGL_J1139.0+4033_daily_bin1493.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991241/ft2_4FGL_J1139.0+4033_daily_bin1493.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991241/ft1_4FGL_J1139.0+4033_daily_bin1493.fits outfile=/scratch/kocevski/991241/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin1493.fits ra=174.764 dec=40.5617 rad=12.0 tmin=626313601.0 tmax=626572801.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 4.60
user 4.27
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/991241/ft1_filtered_4FGL_J1139.0+4033_daily_bin1493.fits" evtable="EVENTS" scfile=/scratch/kocevski/991241/ft2_4FGL_J1139.0+4033_daily_bin1493.fits sctable="SC_DATA" outfile=/scratch/kocevski/991241/ltcube_626313601_626572801_4FGL_J1139.0+4033_daily_bin1493.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/991241/ft2_4FGL_J1139.0+4033_daily_bin1493.fits
.....................!
real 13.48
user 11.66
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991241/ft1_filtered_4FGL_J1139.0+4033_daily_bin1493.fits evtable="EVENTS" scfile=/scratch/kocevski/991241/ft2_4FGL_J1139.0+4033_daily_bin1493.fits sctable="SC_DATA" expcube=/scratch/kocevski/991241/ltcube_626313601_626572801_4FGL_J1139.0+4033_daily_bin1493.fits outfile=/scratch/kocevski/991241/expmap_626313601_626572801_4FGL_J1139.0+4033_daily_bin1493.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/991241/ltcube_626313601_626572801_4FGL_J1139.0+4033_daily_bin1493.fits
.....................!
real 192.31
user 185.94
sys 5.93

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/991241/ft1_filtered_4FGL_J1139.0+4033_daily_bin1493.fits scfile=/scratch/kocevski/991241/ft2_4FGL_J1139.0+4033_daily_bin1493.fits outfile=/scratch/kocevski/991241/cmap_626313601_626572801_4FGL_J1139.0+4033_daily_bin1493.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.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/991241/ft1_filtered_4FGL_J1139.0+4033_daily_bin1493.fits scfile=/scratch/kocevski/991241/ft2_4FGL_J1139.0+4033_daily_bin1493.fits outfile=/scratch/kocevski/991241/cmap_HighResolution_626313601_626572801_4FGL_J1139.0+4033_daily_bin1493.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.360       1.0000         .10000E-03   10000.    
     2 'Prefactor '    102.23       1.0000         .10000E-03   10000.    
     3 'norm      '    1.9710       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0686       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.656       1.0000         .10000E-03   10000.    
     7 'norm      '    .33160       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 '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.0297       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.792       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.158       1.0000         .10000E-03   10000.    
    15 'Prefactor '    56.366       1.0000         .10000E-03   10000.    
    16 'norm      '    3.4124       1.0000         .10000E-03   10000.    
    17 'norm      '    3.5881       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.4309       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .90550       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12761       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.464       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.9474       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90542       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0291       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=   8350.420     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     3033 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.361        31.780        .56578E-06    .40346E-04
   2  Prefactor     102.26        74.501        .41697E-05    .30392E-03
   3  norm          1.9711        .35479       -.10067E-08   -.30080E-03
   4  Prefactor     5.0243        16.580        .47351E-06   -.50503E-04
   5  Prefactor     .10000E-03    7.5792       -.44172E-07** at limit **
   6  Prefactor     21.703        64.462        .98034E-05    .20635E-03
   7  norm          .42661        9.5347        .28987E-06   -.89247E-04
   8  norm          .10000E-03    11.587        .28648E-07** at limit **
   9  Prefactor     .10000E-03    .76324       -.11383E-07** at limit **
  10  Prefactor     .10000E-03    17.138       -.78530E-07** at limit **
  11  Prefactor     .10000E-03    4.4070       -.33942E-07** at limit **
  12  norm          7.0299        2.6101        .43312E-07   -.58069E-04
  13  Prefactor     11.794        8.5375       -.16066E-06   -.16791E-03
  14  Prefactor     17.157        5.8644        .77000E-07   -.39681E-04
  15  Prefactor     56.373        35.907        .61007E-07   -.20808E-04
  16  norm          3.4127        1.0827        .45157E-07    .86754E-04
  17  norm          3.5883        3.6247       -.19865E-05    .13103E-02
  18  Prefactor     6.4387        22.208        .96321E-06    .12690E-04
  19  Prefactor     .88912        3.1278        .21944E-05    .34227E-03
  20  Prefactor     .10000E-03    33.204        .25104E-07** at limit **
  21  Prefactor     .27345        11.738       -.22166E-05    .62457E-04
  22  Prefactor     11.473        24.003        .40115E-06    .37611E-05
  23  Prefactor     2.9481        3.7756        .11651E-06   -.24721E-04
  24  Normalizat    .90516        .15474       -.13932E-05    .14079E-03
  25  Prefactor     1.0291        .17322        .42949E-06   -.99276E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.3606
  Prefactor  = 102.264
  norm       = 1.97115
  Prefactor  = 5.02431
  Prefactor  = 0.0001
  Prefactor  = 21.7031
  norm       = 0.426614
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.02987
  Prefactor  = 11.7937
  Prefactor  = 17.1574
  Prefactor  = 56.3726
  norm       = 3.41266
  norm       = 3.58826
  Prefactor  = 6.43873
  Prefactor  = 0.889115
  Prefactor  = 0.0001
  Prefactor  = 0.273447
  Prefactor  = 11.4733
  Prefactor  = 2.94814
  Normalizat = 0.905155
  Prefactor  = 1.02914
 **********
 **   18 **HESSE 
 **********

 FCN=   8350.420     FROM HESSE     STATUS=OK           437 CALLS     3470 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.361        31.794        .84707E-04   -1.4762    
   2  Prefactor     102.26        76.439        .19883E-03   -1.3682    
   3  norm          1.9711        .35612        .21422E-04   -1.5427    
   4  Prefactor     5.0243        17.185        .17860E-03   -1.5260    
   5  Prefactor     .10000E-03    7.5937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.703        67.234        .86071E-04   -1.4776    
   7  norm          .42661        116.73        .47204E-02   -1.5577    
   8  norm          .10000E-03    11.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .77591        .77819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.4124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.0299        2.6043        .84944E-04   -1.5178    
  13  Prefactor     11.794        8.5425        .11666E-03   -1.5021    
  14  Prefactor     17.157        5.8551        .96691E-04   -1.4879    
  15  Prefactor     56.373        35.944        .53431E-04   -1.4205    
  16  norm          3.4127        1.0828        .21899E-04   -1.5338    
  17  norm          3.5883        3.7122        .87260E-03   -1.5329    
  18  Prefactor     6.4387        22.152        .15827E-03   -1.5200    
  19  Prefactor     .88912        4.6626        .23983E-03   -1.5519    
  20  Prefactor     .10000E-03    33.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .27345        441.79        .48108E-02   -1.5603    
  22  Prefactor     11.473        23.917        .11832E-03   -1.5030    
  23  Prefactor     2.9481        3.7695        .19500E-03   -1.5365    
  24  Normalizat    .90516        .17983        .25279E-03   -.96279    
  25  Prefactor     1.0291        .20288        .28972E-03   -.91764    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96071e-09
Minuit parameter uncertainties:
  1  31.8176
  2  76.5129
  3  0.356121
  4  17.2021
  5  4.23192e-06
  6  67.4705
  7  14.1397
  8  2.62147e-07
  9  4.85015e-07
  10  1.11905e-05
  11  2.62627e-06
  12  2.60434
  13  8.5434
  14  5.85534
  15  35.9582
  16  1.08283
  17  3.71244
  18  22.1804
  19  4.0724
  20  2.68706e-05
  21  22.1437
  22  23.9366
  23  3.76983
  24  0.179948
  25  0.203029
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  5.637e+01  3.596e+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:  1.029e+00  2.030e-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.052e-01  1.799e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.88
Ra Dec: 174.764 40.562
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 5.98e-08 +/- 3.81e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 9.04e-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) = 8350.30006734
delta logL = 0.120368006965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8350.29420657
delta logL = 0.126228771802

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    66.658       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4359       1.0000          .0000       10.000    
     3 'Normalizat'    .91642       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0204       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=   8350.294     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      266 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     66.792        1084.2        .12290E-02   -.17634E-03
   2  Index         2.4381        6.1054        .17057       -.98956E-04
   3  Normalizat    .91628        .96837E-01    .45111E-01   -.16851E-03
   4  Prefactor     1.0203        .90939E-01    .65751E-01   -.26964E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 66.7917
  Index      = 2.43805
  Normalizat = 0.916279
  Prefactor  = 1.02035
 **********
 **   18 **HESSE 
 **********

 FCN=   8350.294     FROM HESSE     STATUS=OK            31 CALLS      297 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     66.792        44.225        .49158E-04   -1.4072    
   2  Index         2.4381        .55684        .88538E-02   -.53796    
   3  Normalizat    .91628        .16719        .25153E-03   -.95890    
   4  Prefactor     1.0203        .20150        .29082E-03   -.92054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19418e-10
Minuit parameter uncertainties:
  1  44.2471
  2  0.558413
  3  0.167282
  4  0.201649
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991241': 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) = 8350.2941895
delta logL = 0.126245844476

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  6.679e+01  4.425e+01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  2.438e+00  5.584e-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:  1.020e+00  2.016e-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.163e-01  1.673e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.19
Ra Dec: 174.764 40.562
Photon Index (Free Index): 2.44 +/- 0.56
Photon Flux (Free Index): 4.94e-08 +/- 3.83e-08
Energy Flux (Free Index): 1.54e-05 +/- 1.03e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/991241/cmap_HighResolution_626313601_626572801_4FGL_J1139.0+4033_daily_bin1493.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.98e-08', energy_flux2='1.54e-05', photon_flux_error='3.81e-08', dlogl='1.26e-01', energy_flux='1.42e-05', photon_flux2='4.94e-08', job_status='DONE', time_completed='2021-09-04 07:32:26.605068', photon_index_error2='0.56', photon_index2='2.44', ts='4.88', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.03e-05', EG='0.91', time_epoch_completed='1630765946.61', return_code='0', job_id='991241', GAL2='1.02', EG2='0.92', return_code2='0', energy_flux_error='9.04e-06', photon_flux_error2='3.83e-08', ts2='5.19', photon_index='2.72' WHERE bin_id='1493' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:32:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 991241: <4FGL_J1139.0+4033_daily_bin1493> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin1493> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Sep  4 07:16:58 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:17:00 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:17:00 2021
Terminated at Sat Sep  4 07:32:27 2021
Results reported at Sat Sep  4 07:32:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin1493 174.764 40.5617 626313601 626572801 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 :                                   889.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            929 sec.

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

