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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin1017
RA = 174.764, Dec = 40.5617
tmin = 502934401, tmax = 503193601
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='987810', job_status='RUN', time_executed='2021-09-04 07:09:18.176463', time_epoch_executed='1630764558.18' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='1017'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/987810

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/987810/ft1_4FGL_J1139.0+4033_daily_bin1017.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/987810/ft2_4FGL_J1139.0+4033_daily_bin1017.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/987810/ft1_4FGL_J1139.0+4033_daily_bin1017.fits outfile=/scratch/kocevski/987810/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin1017.fits ra=174.764 dec=40.5617 rad=12.0 tmin=502934401.0 tmax=503193601.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.73
user 3.44
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/987810/ft1_filtered_4FGL_J1139.0+4033_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/987810/ft2_4FGL_J1139.0+4033_daily_bin1017.fits sctable="SC_DATA" expcube=/scratch/kocevski/987810/ltcube_502934401_503193601_4FGL_J1139.0+4033_daily_bin1017.fits outfile=/scratch/kocevski/987810/expmap_502934401_503193601_4FGL_J1139.0+4033_daily_bin1017.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/987810/ltcube_502934401_503193601_4FGL_J1139.0+4033_daily_bin1017.fits
.....................!
real 190.60
user 185.13
sys 5.10

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/987810/ft1_filtered_4FGL_J1139.0+4033_daily_bin1017.fits scfile=/scratch/kocevski/987810/ft2_4FGL_J1139.0+4033_daily_bin1017.fits outfile=/scratch/kocevski/987810/cmap_502934401_503193601_4FGL_J1139.0+4033_daily_bin1017.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.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.3420       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .89273       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8786       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.6605       1.0000         .10000E-03   10000.    
     8 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .91298       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.395       1.0000         .10000E-03   10000.    
    12 'norm      '    2.1389       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    41.013       1.0000         .10000E-03   10000.    
    16 'norm      '    .10201E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.949       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .62838E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    180.51       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.031       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.123       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .73654       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99714       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=   5888.300     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2963 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.8903       -.56233E-06** at limit **
   2  Prefactor     .10000E-03    48.176       -.15422E-06** at limit **
   3  norm          1.3420        .32540       -.12043E-07   -.22420E-02
   4  Prefactor     .89316        10.301        .11627E-05   -.60837E-05
   5  Prefactor     1.8784        13.948       -.43832E-06   -.49985E-04
   6  Prefactor     .10000E-03    21.072        .11889E-05** at limit **
   7  norm          4.6607        11.492        .51542E-07    .13649E-03
   8  norm          .10000E-03    15.159       -.36262E-06** at limit **
   9  Prefactor     .91356        2.5850        .37066E-06    .44548E-03
  10  Prefactor     .10000E-03    25.845       -.10827E-05** at limit **
  11  Prefactor     13.399        17.080       -.16196E-06   -.83310E-04
  12  norm          2.1380        2.5794       -.37456E-06    .93276E-04
  13  Prefactor     .10000E-03    7.9972        .68312E-06** at limit **
  14  Prefactor     .10000E-03    2.3530        .52760E-07** at limit **
  15  Prefactor     41.001        41.103       -.45177E-05    .20619E-04
  16  norm          .10000E-03    .99802       -.18173E-05** at limit **
  17  norm          .10000E-03    5.4404       -.10719E-06** at limit **
  18  Prefactor     36.922        31.957        .15773E-05   -.85784E-04
  19  Prefactor     .10006E-03    2.1059        .15793E-05** at limit **
  20  Prefactor     180.41        72.032        .19261E-06   -.35003E-04
  21  Prefactor     22.049        26.490       -.85031E-06   -.69467E-03
  22  Prefactor     .10000E-03    22.090        .42939E-06** at limit **
  23  Prefactor     12.124        7.9352        .34940E-07   -.29946E-04
  24  Normalizat    .73651        .16778       -.67009E-06   -.52886E-03
  25  Prefactor     .99717        .18749       -.16578E-05   -.53855E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.342
  Prefactor  = 0.893164
  Prefactor  = 1.8784
  Prefactor  = 0.0001
  norm       = 4.66066
  norm       = 0.0001
  Prefactor  = 0.913555
  Prefactor  = 0.0001
  Prefactor  = 13.3994
  norm       = 2.13804
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.0006
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 36.9221
  Prefactor  = 0.00010006
  Prefactor  = 180.408
  Prefactor  = 22.0489
  Prefactor  = 0.0001
  Prefactor  = 12.1237
  Normalizat = 0.736511
  Prefactor  = 0.997169
 **********
 **   18 **HESSE 
 **********

 FCN=   5888.300     FROM HESSE     STATUS=OK           429 CALLS     3392 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.8846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    48.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3420        .32533        .99873E-04   -1.5476    
   4  Prefactor     .89316        25.522        .43163E-02   -1.5519    
   5  Prefactor     1.8784        13.626        .30376E-03   -1.5434    
   6  Prefactor     .10000E-03    21.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.6607        11.460        .93210E-03   -1.5276    
   8  norm          .10000E-03    15.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .91356        2.4794        .17502E-03   -1.5517    
  10  Prefactor     .10000E-03    25.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.399        17.060        .10944E-03   -1.4976    
  12  norm          2.1380        2.4763        .11551E-03   -1.5416    
  13  Prefactor     .10000E-03    8.0306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.3685        .11472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     41.001        40.635        .62593E-04   -1.4426    
  16  norm          .10000E-03    .97154        .11552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.4745        .17478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     36.922        32.009        .65933E-04   -1.4492    
  19  Prefactor     .10006E-03    15.107        .18005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     180.41        71.931        .15022E-03   -1.3014    
  21  Prefactor     22.049        23.898        .85336E-04   -1.4768    
  22  Prefactor     .10000E-03    22.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.124        7.9392        .11505E-03   -1.5011    
  24  Normalizat    .73651        .19209        .24376E-03   -1.0247    
  25  Prefactor     .99717        .21568        .25961E-03   -.92824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59013e-08
Minuit parameter uncertainties:
  1  1.40338e-05
  2  0.000147523
  3  0.325326
  4  9.5529
  5  10.1214
  6  1.84745e-05
  7  11.465
  8  1.49247e-05
  9  2.47965
  10  0.000168271
  11  17.0658
  12  2.47646
  13  8.83867e-07
  14  2.62443e-06
  15  40.6623
  16  9.74202e-06
  17  1.14948e-05
  18  32.0243
  19  0.00190491
  20  71.9658
  21  23.9088
  22  8.16409e-05
  23  7.93988
  24  0.192262
  25  0.215867
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  4.100e+01  4.066e+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:  9.972e-01  2.159e-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:  7.365e-01  1.923e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.50
Ra Dec: 174.764 40.562
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 4.35e-08 +/- 4.31e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 1.02e-05

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

Saving results to:
/scratch/kocevski/987810/likelihoodResults_502934401_503193601_4FGL_J1139.0+4033_daily_bin1017.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) = 5888.22669099
delta logL = 0.0734077388479

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5888.22444875
delta logL = 0.0756499762119

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.112       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0665       1.0000          .0000       10.000    
     3 'Normalizat'    .72536       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0069       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=   5888.224     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      284 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.106        48.316        .73014E-04    .18675E-03
   2  Index         3.0663        1.0852        .78860E-02    .80148E-04
   3  Normalizat    .72539        .17876        .24542E-03   -.55900E-03
   4  Prefactor     1.0069        .21538        .25848E-03   -.55504E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.1065
  Index      = 3.06633
  Normalizat = 0.725393
  Prefactor  = 1.00692
 **********
 **   18 **HESSE 
 **********

 FCN=   5888.224     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.106        42.297        .14603E-04   -1.4610    
   2  Index         3.0663        .95016        .31544E-03   -.39709    
   3  Normalizat    .72539        .17866        .49083E-04   -1.0290    
   4  Prefactor     1.0069        .21514        .51696E-04   -.92499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8914e-10
Minuit parameter uncertainties:
  1  42.3389
  2  0.957011
  3  0.178802
  4  0.215323
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/987810': 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) = 5888.22444845
delta logL = 0.0756502783843

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  3.011e+01  4.234e+01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  3.066e+00  9.570e-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.007e+00  2.153e-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:  7.254e-01  1.788e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.68
Ra Dec: 174.764 40.562
Photon Index (Free Index): 3.07 +/- 0.96
Photon Flux (Free Index): 5.16e-08 +/- 4.87e-08
Energy Flux (Free Index): 9.98e-06 +/- 9.10e-06

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/987810/cmap_HighResolution_502934401_503193601_4FGL_J1139.0+4033_daily_bin1017.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', photon_flux='4.35e-08', energy_flux2='9.98e-06', photon_flux_error='4.31e-08', dlogl='7.57e-02', energy_flux='1.03e-05', photon_flux2='5.16e-08', job_status='DONE', time_completed='2021-09-04 07:22:34.812551', photon_index_error2='0.96', photon_index2='3.07', ts='1.50', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='9.10e-06', EG='0.74', time_epoch_completed='1630765354.81', return_code='0', job_id='987810', GAL2='1.01', EG2='0.73', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='4.87e-08', ts2='1.68', photon_index='2.72' WHERE bin_id='1017' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:22:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 987810: <4FGL_J1139.0+4033_daily_bin1017> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin1017> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 07:06:57 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:06:59 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:06:59 2021
Terminated at Sat Sep  4 07:22:35 2021
Results reported at Sat Sep  4 07:22:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin1017 174.764 40.5617 502934401 503193601 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 :                                   791.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            938 sec.

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

