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


Performing analysis on: 4FGL_J1650.7+0831_daily_bin1716
RA = 252.7, Dec = 8.5182
tmin = 684115201, tmax = 684374401
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='175483', job_status='RUN', time_executed='2022-09-16 19:56:01.317195', time_epoch_executed='1663383361.32' WHERE source_name='4FGL J1650.7+0831' and cadence='daily' and bin_id='1716'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/175483

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/175483/ft1_4FGL_J1650.7+0831_daily_bin1716.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/175483/ft2_4FGL_J1650.7+0831_daily_bin1716.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/175483/ft1_4FGL_J1650.7+0831_daily_bin1716.fits outfile=/scratch/kocevski/175483/ft1_filteredMKT_4FGL_J1650.7+0831_daily_bin1716.fits ra=252.7 dec=8.5182 rad=12.0 tmin=684115201.0 tmax=684374401.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.13
user 3.85
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/175483/ft2_4FGL_J1650.7+0831_daily_bin1716.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/175483/ft2_4FGL_J1650.7+0831_daily_bin1716.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/175483/ft1_filteredMKT_4FGL_J1650.7+0831_daily_bin1716.fits evtable="EVENTS" outfile="/scratch/kocevski/175483/ft1_filtered_4FGL_J1650.7+0831_daily_bin1716.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.51
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 905

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/175483/ft1_filtered_4FGL_J1650.7+0831_daily_bin1716.fits" evtable="EVENTS" scfile=/scratch/kocevski/175483/ft2_4FGL_J1650.7+0831_daily_bin1716.fits sctable="SC_DATA" outfile=/scratch/kocevski/175483/ltcube_684115201_684374401_4FGL_J1650.7+0831_daily_bin1716.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/175483/ft2_4FGL_J1650.7+0831_daily_bin1716.fits
.....................!
real 15.47
user 15.02
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/175483/ft1_filtered_4FGL_J1650.7+0831_daily_bin1716.fits evtable="EVENTS" scfile=/scratch/kocevski/175483/ft2_4FGL_J1650.7+0831_daily_bin1716.fits sctable="SC_DATA" expcube=/scratch/kocevski/175483/ltcube_684115201_684374401_4FGL_J1650.7+0831_daily_bin1716.fits outfile=/scratch/kocevski/175483/expmap_684115201_684374401_4FGL_J1650.7+0831_daily_bin1716.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/175483/ltcube_684115201_684374401_4FGL_J1650.7+0831_daily_bin1716.fits
.....................!
real 191.89
user 186.47
sys 4.94

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
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Added 170 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1650.7+0831 @ 252.7 8.5182

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/175483/ft1_filtered_4FGL_J1650.7+0831_daily_bin1716.fits scfile=/scratch/kocevski/175483/ft2_4FGL_J1650.7+0831_daily_bin1716.fits outfile=/scratch/kocevski/175483/cmap_684115201_684374401_4FGL_J1650.7+0831_daily_bin1716.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=252.7 yref=8.5182 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/175483/ft1_filtered_4FGL_J1650.7+0831_daily_bin1716.fits scfile=/scratch/kocevski/175483/ft2_4FGL_J1650.7+0831_daily_bin1716.fits outfile=/scratch/kocevski/175483/cmap_HighResolution_684115201_684374401_4FGL_J1650.7+0831_daily_bin1716.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=252.7 yref=8.5182 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.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/175483/ft1_filtered_4FGL_J1650.7+0831_daily_bin1716.fits evtable="EVENTS" scfile=/scratch/kocevski/175483/ft2_4FGL_J1650.7+0831_daily_bin1716.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/175483/Model_4FGL_J1650.7+0831_daily_bin1716.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 FHES J1723.5-0501
adding source GAL_V02
Working on...
/scratch/kocevski/175483/ft1_filtered_4FGL_J1650.7+0831_daily_bin1716.fits.....................!
real 73.81
user 72.38
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/175483/ft1_filtered_4FGL_J1650.7+0831_daily_bin1716.fits', '/scratch/kocevski/175483/ft2_4FGL_J1650.7+0831_daily_bin1716.fits', expMap='/scratch/kocevski/175483/expmap_684115201_684374401_4FGL_J1650.7+0831_daily_bin1716.fits', expCube='/scratch/kocevski/175483/ltcube_684115201_684374401_4FGL_J1650.7+0831_daily_bin1716.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/175483/Model_4FGL_J1650.7+0831_daily_bin1716.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1650.7+0831'

4FGL J1650.7+0831
   Spectrum: PowerLaw
272    Prefactor:  1.844e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
273        Index:  2.574e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  6.762e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/175483/ft1_filtered_4FGL_J1650.7+0831_daily_bin1716.fits
Spacecraft file(s): /scratch/kocevski/175483/ft2_4FGL_J1650.7+0831_daily_bin1716.fits
Exposure map: /scratch/kocevski/175483/expmap_684115201_684374401_4FGL_J1650.7+0831_daily_bin1716.fits
Exposure cube: /scratch/kocevski/175483/ltcube_684115201_684374401_4FGL_J1650.7+0831_daily_bin1716.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/175483/Model_4FGL_J1650.7+0831_daily_bin1716.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) = 9436.65124701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.796       1.0000          .0000       .10000E+07
     2 'Prefactor '    99.178       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.1941       1.0000          .0000       .10000E+07
     4 'Prefactor '    .37653E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .55242E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .11235E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    6.7938       1.0000          .0000       .10000E+07
     8 'Prefactor '    .57838       1.0000          .0000       .10000E+07
     9 'Prefactor '    4.2809       1.0000          .0000       .10000E+07
    10 'Prefactor '    .38178E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    18.245       1.0000          .0000       .10000E+07
    12 'norm      '    .16220E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .85612E-02   1.0000          .0000       .10000E+07
    14 'norm      '    21.756       1.0000          .0000       .10000E+07
    15 'Prefactor '    .12571       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.4760       1.0000          .0000       .10000E+07
    17 'norm      '    .18607E-02   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.4590       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89821       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9436.649     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     1441 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.781        15.994        .19987E-07   -.63435E-02
   2  Prefactor     99.605        12.056       -.99535E-07    .30728    
   3  Prefactor     7.5553        48.386       -.71131E-06   -.99147E-02
   4  Prefactor     .44409E-09    21.579        .46407E-07** at limit **
   5  Prefactor      .0000        2.3493        .13265E-07** at limit **
   6  Prefactor      .0000        8.1933        .81510E-07** at limit **
   7  Prefactor     6.7597        6.9693        .45411E-07    .58510E-03
   8  Prefactor     .48739E-07    135.30        .24732E-06** at limit **
   9  Prefactor     4.2366        8.5830       -.87524E-08   -.17069E-03
  10  Prefactor      .0000        3.8069       -.90835E-08** at limit **
  11  Prefactor     22.868        199.56       -.19594E-05   -.12080E-01
  12  norm           .0000        .73377        .22506E-07** at limit **
  13  Prefactor      .0000        11.767       -.60853E-07** at limit **
  14  norm          21.748        11.336       -.44902E-07   -.67637E-03
  15  Prefactor     .11102E-09    38.144        .22593E-06** at limit **
  16  Prefactor     1.4799        2.6611       -.40843E-08   -.28776E-03
  17  norm           .0000        3.3323       -.43562E-07** at limit **
  18  Normalizat    1.4596        .31911       -.19255E-05   -.65592E-04
  19  Prefactor     .89786        .97296E-01    .80895E-06   -.74830E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 29.7811
  Prefactor  = 99.6046
  Prefactor  = 7.55532
  Prefactor  = 4.44089e-10
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 6.7597
  Prefactor  = 4.87388e-08
  Prefactor  = 4.23662
  Prefactor  = 0
  Prefactor  = 22.8678
  norm       = 0
  Prefactor  = 0
  norm       = 21.7477
  Prefactor  = 1.11022e-10
  Prefactor  = 1.47992
  norm       = 0
  Normalizat = 1.45958
  Prefactor  = 0.897862
 **********
 **   18 **HESSE 
 **********

 FCN=   9436.649     FROM HESSE     STATUS=OK           302 CALLS     1743 TOTAL
                     EDM=   .55E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.781        15.975        .18323E-03   -1.5599    
   2  Prefactor     99.605        75.013        .10042E-03   -1.5508    
   3  Prefactor     7.5553        48.435        .37374E-03   -1.5653    
   4  Prefactor     .44409E-09    21.524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        2.3520        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        8.1087        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.7597        6.9699        .38471E-03   -1.5656    
   8  Prefactor     .48739E-07    134.76        .71187E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.2366        8.5711        .48669E-03   -1.5667    
  10  Prefactor      .0000        3.8104        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.868        201.87        .23420E-03   -1.5612    
  12  norm           .0000        .73431        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        11.762        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          21.748        11.339        .21445E-03   -1.5615    
  15  Prefactor     .11102E-09    38.000        .13284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.4799        2.6954        .88361E-03   -1.5684    
  17  norm           .0000        3.3344        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4596        .26622        .90179E-01   -.78921    
  19  Prefactor     .89786        .80776E-01    .44982E-01   -.96216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.54516e-06
Minuit parameter uncertainties:
  1  15.9747
  2  75.0141
  3  38.2597
  4  0.000196165
  5  2.68289e-06
  6  2.39228e-05
  7  6.96994
  8  0.00512678
  9  8.57109
  10  2.46044e-06
  11  135.894
  12  2.53806e-06
  13  1.40414e-05
  14  11.3392
  15  0.000117414
  16  2.69542
  17  9.93248e-06
  18  0.266471
  19  0.0807865
Done.

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

Extracting fit parameters...

4FGL J1650.7+0831
   Spectrum: PowerLaw
272    Prefactor:  6.760e+00  6.970e+00  0.000e+00  1.000e+06 ( 1.000e-12)
273        Index:  2.574e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  6.762e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  8.979e-01  8.079e-02  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  1.460e+00  2.665e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 252.700 8.518
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 5.89e-08 +/- 6.06e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.63e-05

TS (Fixed Index): 1.21
Ra Dec: 252.700 8.518
Photon Flux Upper Limit: 1.82e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.42e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/175483/likelihoodResults_684115201_684374401_4FGL_J1650.7+0831_daily_bin1716.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) = 9436.1376611
delta logL = 0.511299553462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9436.13034668
delta logL = 0.518613972185

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9988       1.0000          .0000       .10000E+07
     2 'Index     '    3.3637       1.0000          .0000       10.000    
     3 'Normalizat'    1.4054       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90753       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9436.130     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      255 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9998        60.679        .50409E-03    .67314E-02
   2  Index         3.3635        3.6294        .14668        .17590E-03
   3  Normalizat    1.4054        .90364E-01    .91567E-01    .20658E-04
   4  Prefactor     .90751        .28384E-01    .45101E-01    .24807E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.99979
  Index      = 3.36351
  Normalizat = 1.40539
  Prefactor  = 0.907511
 **********
 **   18 **HESSE 
 **********

 FCN=   9436.130     FROM HESSE     STATUS=OK            31 CALLS      286 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9998        6.6164        .13531E-04   -1.5668    
   2  Index         3.3635        1.0511        .75984E-02   -.33344    
   3  Normalizat    1.4054        .30272        .40553E-03   -.80473    
   4  Prefactor     .90751        .95927E-01    .15838E-03   -.95879    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52492e-08
Minuit parameter uncertainties:
  1  6.61639
  2  1.05997
  3  0.303104
  4  0.0959448
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/175483': 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) = 9436.13034664
delta logL = 0.518614008421

Extracting fit parameters...

4FGL J1650.7+0831
   Spectrum: PowerLaw
272    Prefactor:  4.000e+00  6.616e+00  0.000e+00  1.000e+06 ( 1.000e-12)
273        Index:  3.364e+00  1.060e+00  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  6.762e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  9.075e-01  9.594e-02  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  1.405e+00  3.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.32
Ra Dec: 252.700 8.518
Photon Index (Free Index): 3.36 +/- 1.06
Photon Flux (Free Index): 1.05e-07 +/- 7.95e-08
Energy Flux (Free Index): 1.82e-05 +/- 1.42e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/175483/cmap_HighResolution_684115201_684374401_4FGL_J1650.7+0831_daily_bin1716.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-02', comment='SUCCESS', photon_flux='5.89e-08', energy_flux2='1.82e-05', photon_flux_error='6.06e-08', dlogl='5.19e-01', energy_flux='1.58e-05', photon_flux2='1.05e-07', job_status='DONE', time_completed='2022-09-16 20:07:07.051689', photon_index_error2='1.06', photon_index2='3.36', ts='1.21', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.82e-07', energy_flux_error2='1.42e-05', EG='1.46', time_epoch_completed='1663384027.05', return_code='0', job_id='175483', GAL2='0.91', EG2='1.41', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='7.95e-08', ts2='2.32', photon_index='2.57' WHERE bin_id='1716' AND source_name='4FGL J1650.7+0831' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 20:07:07 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 175483: <4FGL_J1650.7+0831_daily_bin1716> in cluster <slac> Done

Job <4FGL_J1650.7+0831_daily_bin1716> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 19:55:13 2022
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 19:55:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 19:55:36 2022
Terminated at Fri Sep 16 20:07:07 2022
Results reported at Fri Sep 16 20:07:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1650.7+0831_daily_bin1716 252.7 8.5182 684115201 684374401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1650.7+0831 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   667.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             377.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            714 sec.

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

