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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin37
RA = 174.764, Dec = 40.5617
tmin = 248918401, tmax = 249177601
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='978741', job_status='RUN', time_executed='2021-09-04 06:44:08.966130', time_epoch_executed='1630763048.97' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/978741

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/978741/ft1_4FGL_J1139.0+4033_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/978741/ft2_4FGL_J1139.0+4033_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/978741/ft1_4FGL_J1139.0+4033_daily_bin37.fits outfile=/scratch/kocevski/978741/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin37.fits ra=174.764 dec=40.5617 rad=12.0 tmin=248918401.0 tmax=249177601.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.97
user 1.75
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/978741/ft2_4FGL_J1139.0+4033_daily_bin37.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/978741/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin37.fits evtable="EVENTS" outfile="/scratch/kocevski/978741/ft1_filtered_4FGL_J1139.0+4033_daily_bin37.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/978741/ft1_filtered_4FGL_J1139.0+4033_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/978741/ft2_4FGL_J1139.0+4033_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/978741/ltcube_248918401_249177601_4FGL_J1139.0+4033_daily_bin37.fits outfile=/scratch/kocevski/978741/expmap_248918401_249177601_4FGL_J1139.0+4033_daily_bin37.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/978741/ltcube_248918401_249177601_4FGL_J1139.0+4033_daily_bin37.fits
.....................!
real 190.67
user 185.10
sys 4.67

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/978741/ft1_filtered_4FGL_J1139.0+4033_daily_bin37.fits scfile=/scratch/kocevski/978741/ft2_4FGL_J1139.0+4033_daily_bin37.fits outfile=/scratch/kocevski/978741/cmap_248918401_249177601_4FGL_J1139.0+4033_daily_bin37.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.57
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/978741/ft1_filtered_4FGL_J1139.0+4033_daily_bin37.fits scfile=/scratch/kocevski/978741/ft2_4FGL_J1139.0+4033_daily_bin37.fits outfile=/scratch/kocevski/978741/cmap_HighResolution_248918401_249177601_4FGL_J1139.0+4033_daily_bin37.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.833       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10789E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .62412       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.593       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.005       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.9339       1.0000         .10000E-03   10000.    
     8 'norm      '    .10352E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2866       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2528       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6543       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.5254       1.0000         .10000E-03   10000.    
    17 'norm      '    8.9865       1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.207       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10564E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.791       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0205       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94130       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=   5304.984     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2946 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.743        40.192        .67408E-06   -.20085E-04
   2  Prefactor     .10000E-03    27.069        .22673E-07** at limit **
   3  norm          .62420        .27489        .53382E-08   -.49989E-03
   4  Prefactor     27.586        18.519       -.11668E-06   -.81385E-04
   5  Prefactor     21.992        19.640       -.89782E-07   -.16972E-04
   6  Prefactor     .10000E-03    25.391       -.15109E-06** at limit **
   7  norm          6.9359        7.8598        .30055E-08    .75156E-05
   8  norm          .10000E-03    14.993       -.17402E-06** at limit **
   9  Prefactor     1.2866        1.8162       -.16611E-06   -.70171E-03
  10  Prefactor     .10000E-03    30.215        .40143E-06** at limit **
  11  Prefactor     .10000E-03    24.825       -.23736E-06** at limit **
  12  norm          .10000E-03    .77671        .43801E-07** at limit **
  13  Prefactor     1.2474        38.111        .17489E-04   -.61332E-04
  14  Prefactor     3.6541        4.5695       -.37110E-06   -.22751E-03
  15  Prefactor     .10000E-03    14.568        .17262E-06** at limit **
  16  norm          2.5254        1.0489       -.25516E-07   -.72534E-03
  17  norm          8.9852        8.9258        .32044E-07   -.57012E-04
  18  Prefactor     27.223        25.277        .28289E-06   -.11805E-04
  19  Prefactor     .10000E-03    2.2707        .16387E-06** at limit **
  20  Prefactor     .10000E-03    19.309        .14530E-06** at limit **
  21  Prefactor     .10000E-03    10.109        .11204E-06** at limit **
  22  Prefactor     .10001E-03    35.123       -.24120E-05** at limit **
  23  Prefactor     11.792        9.6484        .63225E-07   -.54934E-05
  24  Normalizat    1.0203        .17836        .10911E-05    .10628E-03
  25  Prefactor     .94158        .21202       -.25509E-05   -.15431E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.7426
  Prefactor  = 0.0001
  norm       = 0.624203
  Prefactor  = 27.586
  Prefactor  = 21.9925
  Prefactor  = 0.0001
  norm       = 6.93586
  norm       = 0.0001
  Prefactor  = 1.28662
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.24743
  Prefactor  = 3.65406
  Prefactor  = 0.0001
  norm       = 2.5254
  norm       = 8.98517
  Prefactor  = 27.2233
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 11.7923
  Normalizat = 1.02026
  Prefactor  = 0.941583
 **********
 **   18 **HESSE 
 **********

 FCN=   5304.984     FROM HESSE     STATUS=OK           427 CALLS     3373 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.743        40.201        .94843E-04   -1.4865    
   2  Prefactor     .10000E-03    27.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .62420        .27565        .23787E-04   -1.5550    
   4  Prefactor     27.586        18.527        .76267E-04   -1.4657    
   5  Prefactor     21.992        19.643        .85387E-04   -1.4770    
   6  Prefactor     .10000E-03    25.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.9359        7.8554        .15236E-03   -1.5181    
   8  norm          .10000E-03    14.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.2866        1.7808        .11204E-03   -1.5481    
  10  Prefactor     .10000E-03    30.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .78299        .62642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.2474        38.762        .19965E-02   -1.5485    
  14  Prefactor     3.6541        4.5537        .16575E-03   -1.5326    
  15  Prefactor     .10000E-03    14.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.5254        1.0506        .25705E-04   -1.5390    
  17  norm          8.9852        8.9282        .13370E-03   -1.5108    
  18  Prefactor     27.223        25.296        .76804E-04   -1.4664    
  19  Prefactor     .10000E-03    2.3388        .21430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    35.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.792        9.6539        .11666E-03   -1.5021    
  24  Normalizat    1.0203        .21213        .23383E-03   -.92355    
  25  Prefactor     .94158        .24940        .29217E-03   -.94703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.00773e-10
Minuit parameter uncertainties:
  1  40.262
  2  2.57892e-06
  3  0.27565
  4  18.5304
  5  19.6486
  6  3.19946e-05
  7  7.85653
  8  1.79958e-05
  9  1.78092
  10  2.03719e-05
  11  2.78392e-05
  12  3.13203e-06
  13  13.9166
  14  4.55411
  15  2.2586e-06
  16  1.05057
  17  8.92953
  18  25.3064
  19  1.8911e-05
  20  1.32812e-05
  21  2.79252e-05
  22  0.00109134
  23  9.65521
  24  0.212306
  25  0.249708
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.000e-04  2.259e-06  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.416e-01  2.497e-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.020e+00  2.123e-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: 6.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/978741/likelihoodResults_248918401_249177601_4FGL_J1139.0+4033_daily_bin37.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): 102
logL (Free Index) = 5304.98385698
delta logL = -0.000326653391312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5304.98353325
delta logL = -2.92844561045e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2856       1.0000          .0000       10.000    
     3 'Normalizat'    1.0203       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94159       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=   5304.984     FROM MIGRAD    STATUS=CONVERGED    114 CALLS      300 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    70.615        .18142E-01** at limit **
   2  Index         2.0830        8.9479        .50000       -.25511E-07
   3  Normalizat    1.0203        .83538E-02    .23383E-03    .27547E-03
   4  Prefactor     .94159        .10112E-01    .29217E-03    .22732E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.08295
  Normalizat = 1.02026
  Prefactor  = 0.941588
 **********
 **   18 **HESSE 
 **********

 FCN=   5304.984     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      329 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    400.10        .31789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0830        6.0218        .50000       -.62292    
   3  Normalizat    1.0203        .20333E-01    .46767E-04   -.92355    
   4  Prefactor     .94159        .24611E-01    .11687E-04   -.94703    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.58871e-10
Minuit parameter uncertainties:
  1  0.000223253
  2  1076
  3  0.0203331
  4  0.0246117
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/978741': 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): 102
logL (Free Index) = 5304.98352939
delta logL = 9.30304850044e-07

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.000e-04  2.233e-04  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  2.083e+00  1.076e+03  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:  9.416e-01  2.461e-02  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.020e+00  2.033e-02  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/978741/cmap_HighResolution_248918401_249177601_4FGL_J1139.0+4033_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.42e-03', job_status='DONE', photon_flux_upper_limit='6.88e-08', time_completed='2021-09-04 06:56:33.286040', job_id='978741', GAL2='0.94', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630763793.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='9.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='37' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 06:56:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 978741: <4FGL_J1139.0+4033_daily_bin37> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin37 174.764 40.5617 248918401 249177601 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 :                                   740.00 sec.
    Max Memory :                                 1225 MB
    Average Memory :                             277.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            916 sec.

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

