aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 211 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7681
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1139.0+4033_daily_bin1780
RA = 174.764, Dec = 40.5617
tmin = 700704001, tmax = 700963201
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='61210', job_status='RUN', time_executed='2023-03-20 00:48:56.514092', time_epoch_executed='1679298536.51' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61210

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61210/ft1_4FGL_J1139.0+4033_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61210/ft2_4FGL_J1139.0+4033_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61210/ft1_4FGL_J1139.0+4033_daily_bin1780.fits outfile=/scratch/kocevski/61210/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin1780.fits ra=174.764 dec=40.5617 rad=12.0 tmin=700704001.0 tmax=700963201.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.07
user 3.84
sys 0.21

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

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

Number of photons that the gtmktime cut: 731

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/61210/ft1_filtered_4FGL_J1139.0+4033_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/61210/ft2_4FGL_J1139.0+4033_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/61210/ltcube_700704001_700963201_4FGL_J1139.0+4033_daily_bin1780.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/61210/ft2_4FGL_J1139.0+4033_daily_bin1780.fits
.....................!
real 11.91
user 11.61
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61210/ft1_filtered_4FGL_J1139.0+4033_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/61210/ft2_4FGL_J1139.0+4033_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/61210/ltcube_700704001_700963201_4FGL_J1139.0+4033_daily_bin1780.fits outfile=/scratch/kocevski/61210/expmap_700704001_700963201_4FGL_J1139.0+4033_daily_bin1780.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/61210/ltcube_700704001_700963201_4FGL_J1139.0+4033_daily_bin1780.fits
.....................!
real 189.67
user 184.62
sys 4.74

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

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

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/61210/ft1_filtered_4FGL_J1139.0+4033_daily_bin1780.fits scfile=/scratch/kocevski/61210/ft2_4FGL_J1139.0+4033_daily_bin1780.fits outfile=/scratch/kocevski/61210/cmap_HighResolution_700704001_700963201_4FGL_J1139.0+4033_daily_bin1780.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/61210/ft1_filtered_4FGL_J1139.0+4033_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/61210/ft2_4FGL_J1139.0+4033_daily_bin1780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/61210/Model_4FGL_J1139.0+4033_daily_bin1780.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/61210/ft1_filtered_4FGL_J1139.0+4033_daily_bin1780.fits.....................!
real 65.56
user 64.26
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/61210/ft1_filtered_4FGL_J1139.0+4033_daily_bin1780.fits', '/scratch/kocevski/61210/ft2_4FGL_J1139.0+4033_daily_bin1780.fits', expMap='/scratch/kocevski/61210/expmap_700704001_700963201_4FGL_J1139.0+4033_daily_bin1780.fits', expCube='/scratch/kocevski/61210/ltcube_700704001_700963201_4FGL_J1139.0+4033_daily_bin1780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/61210/Model_4FGL_J1139.0+4033_daily_bin1780.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  0.000e+00  1.000e+06 ( 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/61210/ft1_filtered_4FGL_J1139.0+4033_daily_bin1780.fits
Spacecraft file(s): /scratch/kocevski/61210/ft2_4FGL_J1139.0+4033_daily_bin1780.fits
Exposure map: /scratch/kocevski/61210/expmap_700704001_700963201_4FGL_J1139.0+4033_daily_bin1780.fits
Exposure cube: /scratch/kocevski/61210/ltcube_700704001_700963201_4FGL_J1139.0+4033_daily_bin1780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/61210/Model_4FGL_J1139.0+4033_daily_bin1780.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) = 8204.74443346

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.017       1.0000          .0000       .10000E+07
     2 'norm      '    1.8759       1.0000          .0000       .10000E+07
     3 'Prefactor '    .11441E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .64339       1.0000          .0000       .10000E+07
     5 'Prefactor '    .24058E-04   1.0000          .0000       .10000E+07
     6 'norm      '    .50054E-05   1.0000          .0000       .10000E+07
     7 'norm      '    37.531       1.0000          .0000       .10000E+07
     8 'Prefactor '    .37282E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    17.171       1.0000          .0000       .10000E+07
    10 'Prefactor '    .17804E-01   1.0000          .0000       .10000E+07
    11 'norm      '    .54579       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.4761       1.0000          .0000       .10000E+07
    13 'Prefactor '    .74550       1.0000          .0000       .10000E+07
    14 'Prefactor '    32.832       1.0000          .0000       .10000E+07
    15 'norm      '    .47482       1.0000          .0000       .10000E+07
    16 'norm      '    3.2913       1.0000          .0000       .10000E+07
    17 'Prefactor '    .40087E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .80631E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    12.285       1.0000          .0000       .10000E+07
    20 'Prefactor '    .18239E-01   1.0000          .0000       .10000E+07
    21 'Normalizat'    .96937       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0973       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8204.734     FROM MIGRAD    STATUS=CONVERGED    153 CALLS     1788 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.371        50.357       -.10533E-05    .51771E-01
   2  norm          1.8760        .33079       -.18713E-07    .44531E-01
   3  Prefactor      .0000        5.0005        .11586E-06** at limit **
   4  Prefactor     .64728        .64254        .25329E-06   -.32343E-02
   5  Prefactor     .17153E-07    21.568       -.16303E-05** at limit **
   6  norm           .0000        3.5708       -.69591E-06** at limit **
   7  norm          37.322        6.7377        .43880E-06   -.15508    
   8  Prefactor     .22204E-09    2.0594       -.27822E-06** at limit **
   9  Prefactor     16.909        10.120        .33580E-06   -.81014E-01
  10  Prefactor     .55511E-10    30.435       -.44698E-06** at limit **
  11  norm          .55634        1.7602        .28816E-06   -.15690E-02
  12  Prefactor     1.4716        22.258       -.13051E-04   -.11581E-01
  13  Prefactor     .74815        4.7009        .11564E-05    .11644E-02
  14  Prefactor     32.956        4.6858       -.12210E-06    .61770E-01
  15  norm          .46974        .79659       -.63341E-07    .10856E-01
  16  norm          3.3108        7.1361       -.64965E-06   -.30556E-03
  17  Prefactor     .27756E-09    1.2915       -.66475E-07** at limit **
  18  Prefactor     .13833E-06    25.381       -.75767E-06** at limit **
  19  Prefactor     12.268        15.494       -.14839E-06   -.30392E-02
  20  Prefactor      .0000        18.198       -.10735E-05** at limit **
  21  Normalizat    .96958        .17665        .32017E-05    .11569E-03
  22  Prefactor     1.0973        .20778        .30429E-05    .77307E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.3707
  norm       = 1.87604
  Prefactor  = 0
  Prefactor  = 0.647279
  Prefactor  = 1.71529e-08
  norm       = 0
  norm       = 37.3223
  Prefactor  = 2.22045e-10
  Prefactor  = 16.9086
  Prefactor  = 5.55112e-11
  norm       = 0.556335
  Prefactor  = 1.4716
  Prefactor  = 0.748148
  Prefactor  = 32.9564
  norm       = 0.469737
  norm       = 3.31083
  Prefactor  = 2.77556e-10
  Prefactor  = 1.38334e-07
  Prefactor  = 12.2679
  Prefactor  = 0
  Normalizat = 0.96958
  Prefactor  = 1.09732
 **********
 **   18 **HESSE 
 **********

 FCN=   8204.734     FROM HESSE     STATUS=OK           402 CALLS     2190 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.371        53.807        .16220E-03   -1.5586    
   2  norm          1.8760        .35084        .47867E-03   -1.5681    
   3  Prefactor      .0000        5.0105        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .64728        49.110        .65428E-03   -1.5692    
   5  Prefactor     .17153E-07    21.673        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        3.5757        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          37.322        30.346        .16325E-03   -1.5586    
   8  Prefactor     .22204E-09    2.0490        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.909        40.148        .24143E-03   -1.5626    
  10  Prefactor     .55511E-10    11.727        .93205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .55634        2.2458        .74231E-03   -1.5693    
  12  Prefactor     1.4716        28.665        .88354E-03   -1.5684    
  13  Prefactor     .74815        4.7542        .57089E-03   -1.5691    
  14  Prefactor     32.956        40.077        .17454E-03   -1.5593    
  15  norm          .46974        .92915        .81284E-03   -1.5694    
  16  norm          3.3108        7.1749        .55784E-03   -1.5672    
  17  Prefactor     .27756E-09    1.2924        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .13833E-06    25.532        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.268        15.499        .28555E-03   -1.5638    
  20  Prefactor      .0000        3.8707        .98041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .96958        .15016        .45782E-01   -.94057    
  22  Prefactor     1.0973        .17536        .63327E-01   -.89552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7092e-06
Minuit parameter uncertainties:
  1  53.8075
  2  0.350844
  3  4.31053e-06
  4  11.2762
  5  0.00121864
  6  1.04391e-05
  7  30.3463
  8  4.51163e-05
  9  40.1487
  10  4.62371e-05
  11  2.23555
  12  12.9899
  13  3.77191
  14  40.0772
  15  0.929149
  16  7.17495
  17  3.75771e-05
  18  0.00375845
  19  15.4995
  20  7.65397e-06
  21  0.150221
  22  0.175447
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  3.296e+01  4.008e+01  0.000e+00  1.000e+06 ( 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.097e+00  1.754e-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.696e-01  1.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.39
Ra Dec: 174.764 40.562
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 3.50e-08 +/- 4.25e-08
Energy Flux (Fixed Index): 8.29e-06 +/- 1.01e-05

TS (Fixed Index): 1.39
Ra Dec: 174.764 40.562
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/61210/likelihoodResults_700704001_700963201_4FGL_J1139.0+4033_daily_bin1780.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) = 8204.71655067
delta logL = 0.017426073493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8204.71153138
delta logL = 0.0224453554383

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.410       1.0000          .0000       .10000E+07
     2 'Index     '    2.9086       1.0000          .0000       10.000    
     3 'Normalizat'    .96276       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1027       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=   8204.712     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      277 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.409        38.746        .73770E-05    .77055E-03
   2  Index         2.9085        .96181        .92264E-02    .30849E-04
   3  Normalizat    .96298        .17738        .24831E-03   -.20328E-03
   4  Prefactor     1.1024        .20834        .27954E-03   -.17675E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.4085
  Index      = 2.9085
  Normalizat = 0.962978
  Prefactor  = 1.1024
 **********
 **   18 **HESSE 
 **********

 FCN=   8204.712     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.409        36.332        .29508E-06   -1.5600    
   2  Index         2.9085        .90108        .36906E-03   -.43157    
   3  Normalizat    .96298        .17743        .99324E-05   -.94281    
   4  Prefactor     1.1024        .20837        .11182E-04   -.89390    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.82595e-11
Minuit parameter uncertainties:
  1  36.3324
  2  0.907098
  3  0.177537
  4  0.208522
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61210': 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) = 8204.71153059
delta logL = 0.022446151168

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  2.941e+01  3.633e+01  0.000e+00  1.000e+06 ( 1.000e-13)
342        Index:  2.908e+00  9.071e-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.102e+00  2.085e-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.630e-01  1.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.46
Ra Dec: 174.764 40.562
Photon Index (Free Index): 2.91 +/- 0.91
Photon Flux (Free Index): 4.03e-08 +/- 4.61e-08
Energy Flux (Free Index): 8.45e-06 +/- 8.50e-06

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/61210/cmap_HighResolution_700704001_700963201_4FGL_J1139.0+4033_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.91e-03', comment='SUCCESS', photon_flux='3.50e-08', energy_flux2='8.45e-06', photon_flux_error='4.25e-08', dlogl='2.24e-02', energy_flux='8.29e-06', photon_flux2='4.03e-08', job_status='DONE', time_completed='2023-03-20 01:01:15.653691', photon_index_error2='0.91', photon_index2='2.91', ts='1.39', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='8.50e-06', EG='0.97', time_epoch_completed='1679299275.65', return_code='0', job_id='61210', GAL2='1.10', EG2='0.96', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='4.61e-08', ts2='1.46', photon_index='2.72' WHERE bin_id='1780' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 01:01:15 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 61210: <4FGL_J1139.0+4033_daily_bin1780> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin1780> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Mar 20 00:45:14 2023
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 00:45:15 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 00:45:15 2023
Terminated at Mon Mar 20 01:01:16 2023
Results reported at Mon Mar 20 01:01:16 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin1780 174.764 40.5617 700704001 700963201 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 :                                   741.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            962 sec.

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

