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


Performing analysis on: 4FGL_J1139.0+4033_weekly_bin760
RA = 174.764, Dec = 40.5617
tmin = 698630401, tmax = 699235201
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='20086', job_status='RUN', time_executed='2023-02-28 01:00:52.467177', time_epoch_executed='1677574852.47' WHERE source_name='4FGL J1139.0+4033' and cadence='weekly' and bin_id='760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/20086

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/20086/ft1_4FGL_J1139.0+4033_weekly_bin760.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/20086/ft2_4FGL_J1139.0+4033_weekly_bin760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/20086/ft1_4FGL_J1139.0+4033_weekly_bin760.fits outfile=/scratch/kocevski/20086/ft1_filteredMKT_4FGL_J1139.0+4033_weekly_bin760.fits ra=174.764 dec=40.5617 rad=12.0 tmin=698630401.0 tmax=699235201.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 6.20
user 5.94
sys 0.23

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

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

Number of photons that the gtmktime cut: 169

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/20086/ft1_filtered_4FGL_J1139.0+4033_weekly_bin760.fits" evtable="EVENTS" scfile=/scratch/kocevski/20086/ft2_4FGL_J1139.0+4033_weekly_bin760.fits sctable="SC_DATA" outfile=/scratch/kocevski/20086/ltcube_698630401_699235201_4FGL_J1139.0+4033_weekly_bin760.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/20086/ft2_4FGL_J1139.0+4033_weekly_bin760.fits
.....................!
real 29.39
user 28.93
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/20086/ft1_filtered_4FGL_J1139.0+4033_weekly_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/20086/ft2_4FGL_J1139.0+4033_weekly_bin760.fits sctable="SC_DATA" expcube=/scratch/kocevski/20086/ltcube_698630401_699235201_4FGL_J1139.0+4033_weekly_bin760.fits outfile=/scratch/kocevski/20086/expmap_698630401_699235201_4FGL_J1139.0+4033_weekly_bin760.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/20086/ltcube_698630401_699235201_4FGL_J1139.0+4033_weekly_bin760.fits
.....................!
real 190.08
user 185.77
sys 3.88

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/20086/ft1_filtered_4FGL_J1139.0+4033_weekly_bin760.fits scfile=/scratch/kocevski/20086/ft2_4FGL_J1139.0+4033_weekly_bin760.fits outfile=/scratch/kocevski/20086/cmap_698630401_699235201_4FGL_J1139.0+4033_weekly_bin760.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.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/20086/ft1_filtered_4FGL_J1139.0+4033_weekly_bin760.fits scfile=/scratch/kocevski/20086/ft2_4FGL_J1139.0+4033_weekly_bin760.fits outfile=/scratch/kocevski/20086/cmap_HighResolution_698630401_699235201_4FGL_J1139.0+4033_weekly_bin760.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.58
user 0.42
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/20086/ft1_filtered_4FGL_J1139.0+4033_weekly_bin760.fits', '/scratch/kocevski/20086/ft2_4FGL_J1139.0+4033_weekly_bin760.fits', expMap='/scratch/kocevski/20086/expmap_698630401_699235201_4FGL_J1139.0+4033_weekly_bin760.fits', expCube='/scratch/kocevski/20086/ltcube_698630401_699235201_4FGL_J1139.0+4033_weekly_bin760.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/20086/Model_4FGL_J1139.0+4033_weekly_bin760.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/20086/ft1_filtered_4FGL_J1139.0+4033_weekly_bin760.fits
Spacecraft file(s): /scratch/kocevski/20086/ft2_4FGL_J1139.0+4033_weekly_bin760.fits
Exposure map: /scratch/kocevski/20086/expmap_698630401_699235201_4FGL_J1139.0+4033_weekly_bin760.fits
Exposure cube: /scratch/kocevski/20086/ltcube_698630401_699235201_4FGL_J1139.0+4033_weekly_bin760.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/20086/Model_4FGL_J1139.0+4033_weekly_bin760.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2063.11905535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10244E-02   1.0000          .0000       .10000E+07
     2 'norm      '    .22204E-09   1.0000          .0000       .10000E+07
     3 'Prefactor '    .62922E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .26395E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .18210E-04   1.0000          .0000       .10000E+07
     6 'norm      '    .43027       1.0000          .0000       .10000E+07
     7 'norm      '    .50747E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    9.3624       1.0000          .0000       .10000E+07
     9 'Prefactor '    .10174E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .43242E-05   1.0000          .0000       .10000E+07
    11 'norm      '    .27756E-08   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.1255       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.5039       1.0000          .0000       .10000E+07
    14 'Prefactor '    .85102E-05   1.0000          .0000       .10000E+07
    15 'norm      '    .13323E-08   1.0000          .0000       .10000E+07
    16 'norm      '    37.866       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.9613       1.0000          .0000       .10000E+07
    18 'Prefactor '    49.654       1.0000          .0000       .10000E+07
    19 'Prefactor '    .63705E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    .73972       1.0000          .0000       .10000E+07
    21 'Normalizat'    .11195       1.0000         .10000E-01   10.000    
    22 'Prefactor '    2.1124       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=   2063.075     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     2421 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11729E-04    650.82       -.30514E-04** at limit **
   2  norm           .0000        2.3239        .19360E-06** at limit **
   3  Prefactor     .63930E-04    52.001        .40471E-05** at limit **
   4  Prefactor     .35733E-05    54.939        .44697E-06** at limit **
   5  Prefactor     .24694E-03    74.245        .98139E-06** at limit **
   6  norm          .27631        19.239       -.49711E-05    .10807E-01
   7  norm          .12990E-07    58.964        .28802E-05** at limit **
   8  Prefactor     9.3676        14.465       -.26546E-05    .16179E-01
   9  Prefactor     .65071E-04    52.124        .40335E-05** at limit **
  10  Prefactor     .48017E-06    76.470       -.50898E-05** at limit **
  11  norm           .0000        5.4058       -.91866E-07** at limit **
  12  Prefactor     2.2539        3.7127        .14014E-05    .70494E-03
  13  Prefactor     2.4864        6.7153       -.73986E-06   -.29028E-01
  14  Prefactor     .18430E-07    49.401       -.27554E-05** at limit **
  15  norm           .0000        1.1675       -.19041E-07** at limit **
  16  norm          37.858        25.625       -.67226E-06   -.20136E-02
  17  Prefactor     3.9617        4.5670       -.27402E-06    .22964E-03
  18  Prefactor     49.676        1.5497       -.21248E-07    .20242E-02
  19  Prefactor     .79264E-06    49.006        .41988E-06** at limit **
  20  Prefactor     .73995        1.3480       -.57734E-07   -.17183E-02
  21  Normalizat    .11200        .35841        .48570E-05    .13727E-04
  22  Prefactor     2.1123        .47001       -.28366E-05    .51110E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.17292e-05
  norm       = 0
  Prefactor  = 6.39298e-05
  Prefactor  = 3.57331e-06
  Prefactor  = 0.00024694
  norm       = 0.276305
  norm       = 1.29896e-08
  Prefactor  = 9.3676
  Prefactor  = 6.50712e-05
  Prefactor  = 4.80171e-07
  norm       = 0
  Prefactor  = 2.25388
  Prefactor  = 2.48645
  Prefactor  = 1.84297e-08
  norm       = 0
  norm       = 37.8582
  Prefactor  = 3.96171
  Prefactor  = 49.6762
  Prefactor  = 7.92644e-07
  Prefactor  = 0.73995
  Normalizat = 0.112004
  Prefactor  = 2.11234
 **********
 **   18 **HESSE 
 **********

 FCN=   2063.075     FROM HESSE     STATUS=NOT POSDEF   384 CALLS     2805 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11729E-04    633.52        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        2.2277        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .63930E-04    155.42        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .35733E-05    100.94        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .24694E-03    175.31        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .27631        19291.        .86060E-03   -1.5697    
   7  norm          .12990E-07    56.892        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.3676        18.531        .32729E-03   -1.5647    
   9  Prefactor     .65071E-04    155.32        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .48017E-06    74.417        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        5.1767        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.2539        1226.9        .70701E-03   -1.5678    
  13  Prefactor     2.4864        113.58        .64553E-03   -1.5676    
  14  Prefactor     .18430E-07    47.408        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        1.1203        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          37.858        25.238        .16253E-03   -1.5585    
  17  Prefactor     3.9617        8.1405        .50656E-03   -1.5668    
  18  Prefactor     49.676        70.549        .14192E-03   -1.5567    
  19  Prefactor     .79264E-06    104.15        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .73995        1461.9        .57541E-03   -1.5691    
  21  Normalizat    .11200        8.6912        .16584       -1.3684    
  22  Prefactor     2.1123        2.4062        .52511E-01   -.61570    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.14619e-05
Minuit parameter uncertainties:
  1  0.17242
  2  4.64938e-06
  3  0.199364
  4  0.0379851
  5  0.416141
  6  146.49
  7  0.00171992
  8  18.5309
  9  0.201074
  10  0.0119558
  11  3.47044e-06
  12  105.195
  13  33.6104
  14  0.00187018
  15  5.75336e-07
  16  25.238
  17  8.14057
  18  70.5506
  19  0.0181717
  20  65.7944
  21  2.30714
  22  2.57327
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2063.07546122

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.843e-08  1.870e-03  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:  2.112e+00  2.573e+00  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.120e-01  2.307e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/20086/likelihoodResults_698630401_699235201_4FGL_J1139.0+4033_weekly_bin760.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) = 2063.08507642
delta logL = -0.00961519860311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2063.07546139
delta logL = -1.68713995663e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27078E-06   1.0000          .0000       .10000E+07
     2 'Index     '    2.4452       1.0000          .0000       10.000    
     3 'Normalizat'    .11180       1.0000         .10000E-01   10.000    
     4 'Prefactor '    2.1126       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=   2063.075     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      281 TOTAL
                     EDM=   .50E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49960E-09    21.053        .42118E-03** at limit **
   2  Index         1.0783        9.4372        .50000       -.79581E-10
   3  Normalizat    .11201        .69014E-02    .16584        .31229E-05
   4  Prefactor     2.1123        .92120E-02    .52511E-01   -.15975E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.996e-10
  Index      = 1.07833
  Normalizat = 0.112005
  Prefactor  = 2.11234
 **********
 **   18 **HESSE 
 **********

 FCN=   2063.075     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      314 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49960E-09    104.39        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0783        6.8283        .50000       -.90162    
   3  Normalizat    .11201        .16023E-01    .70667E-02   -1.3684    
   4  Prefactor     2.1123        .20588E-01    .23208E-03   -.61570    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.50028e-11
Minuit parameter uncertainties:
  1  0.000454605
  2  200300
  3  0.0160238
  4  0.0205881
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/20086': 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) = 2063.07546122
delta logL = 1.42335920827e-10

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  4.996e-10  4.546e-04  0.000e+00  1.000e+06 ( 1.000e-13)
342        Index:  1.078e+00  2.003e+05  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:  2.112e+00  2.059e-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.120e-01  1.602e-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/20086/cmap_HighResolution_698630401_699235201_4FGL_J1139.0+4033_weekly_bin760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.95e-02', job_status='DONE', photon_flux_upper_limit='2.47e-07', time_completed='2023-02-28 01:09:11.408656', job_id='20086', GAL2='2.11', fit_tolerance='1e-08', EG2='0.11', EG='0.11', time_epoch_completed='1677575351.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='102', GAL='2.11', dlogl='1.42e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='760' AND source_name='4FGL J1139.0+4033' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 28 01:09:11 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 20086: <4FGL_J1139.0+4033_weekly_bin760> in cluster <slac> Done

Job <4FGL_J1139.0+4033_weekly_bin760> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb 28 01:00:36 2023
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 28 01:00:37 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 28 01:00:37 2023
Terminated at Tue Feb 28 01:09:11 2023
Results reported at Tue Feb 28 01:09:11 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_weekly_bin760 174.764 40.5617 698630401 699235201 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 :                                   500.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   514 sec.
    Turnaround time :                            515 sec.

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

