/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 3 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 = 7554
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1650.7+0831_daily_bin335
RA = 252.7, Dec = 8.5182
tmin = 326160001, tmax = 326419201
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='112418', job_status='RUN', time_executed='2021-09-15 23:00:40.941022', time_epoch_executed='1631772040.94' WHERE source_name='4FGL J1650.7+0831' and cadence='daily' and bin_id='335'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/112418

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/112418/ft1_4FGL_J1650.7+0831_daily_bin335.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/112418/ft2_4FGL_J1650.7+0831_daily_bin335.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/112418/ft1_4FGL_J1650.7+0831_daily_bin335.fits outfile=/scratch/kocevski/112418/ft1_filteredMKT_4FGL_J1650.7+0831_daily_bin335.fits ra=252.7 dec=8.5182 rad=12.0 tmin=326160001.0 tmax=326419201.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 2.79
user 2.57
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/112418/ft2_4FGL_J1650.7+0831_daily_bin335.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/112418/ft1_filteredMKT_4FGL_J1650.7+0831_daily_bin335.fits evtable="EVENTS" outfile="/scratch/kocevski/112418/ft1_filtered_4FGL_J1650.7+0831_daily_bin335.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.43
user 0.26
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/112418/ft1_filtered_4FGL_J1650.7+0831_daily_bin335.fits" evtable="EVENTS" scfile=/scratch/kocevski/112418/ft2_4FGL_J1650.7+0831_daily_bin335.fits sctable="SC_DATA" outfile=/scratch/kocevski/112418/ltcube_326160001_326419201_4FGL_J1650.7+0831_daily_bin335.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/112418/ft2_4FGL_J1650.7+0831_daily_bin335.fits
.....................!
real 10.07
user 9.72
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/112418/ft1_filtered_4FGL_J1650.7+0831_daily_bin335.fits evtable="EVENTS" scfile=/scratch/kocevski/112418/ft2_4FGL_J1650.7+0831_daily_bin335.fits sctable="SC_DATA" expcube=/scratch/kocevski/112418/ltcube_326160001_326419201_4FGL_J1650.7+0831_daily_bin335.fits outfile=/scratch/kocevski/112418/expmap_326160001_326419201_4FGL_J1650.7+0831_daily_bin335.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/112418/ltcube_326160001_326419201_4FGL_J1650.7+0831_daily_bin335.fits
.....................!
real 156.10
user 151.29
sys 4.45

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/112418/ft1_filtered_4FGL_J1650.7+0831_daily_bin335.fits scfile=/scratch/kocevski/112418/ft2_4FGL_J1650.7+0831_daily_bin335.fits outfile=/scratch/kocevski/112418/cmap_326160001_326419201_4FGL_J1650.7+0831_daily_bin335.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.49
user 0.33
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/112418/ft1_filtered_4FGL_J1650.7+0831_daily_bin335.fits scfile=/scratch/kocevski/112418/ft2_4FGL_J1650.7+0831_daily_bin335.fits outfile=/scratch/kocevski/112418/cmap_HighResolution_326160001_326419201_4FGL_J1650.7+0831_daily_bin335.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.49
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/112418/ft1_filtered_4FGL_J1650.7+0831_daily_bin335.fits evtable="EVENTS" scfile=/scratch/kocevski/112418/ft2_4FGL_J1650.7+0831_daily_bin335.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/112418/Model_4FGL_J1650.7+0831_daily_bin335.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/112418/ft1_filtered_4FGL_J1650.7+0831_daily_bin335.fits.....................!
real 62.26
user 60.93
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/112418/ft1_filtered_4FGL_J1650.7+0831_daily_bin335.fits', '/scratch/kocevski/112418/ft2_4FGL_J1650.7+0831_daily_bin335.fits', expMap='/scratch/kocevski/112418/expmap_326160001_326419201_4FGL_J1650.7+0831_daily_bin335.fits', expCube='/scratch/kocevski/112418/ltcube_326160001_326419201_4FGL_J1650.7+0831_daily_bin335.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/112418/Model_4FGL_J1650.7+0831_daily_bin335.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  1.000e-04  1.000e+04 ( 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/112418/ft1_filtered_4FGL_J1650.7+0831_daily_bin335.fits
Spacecraft file(s): /scratch/kocevski/112418/ft2_4FGL_J1650.7+0831_daily_bin335.fits
Exposure map: /scratch/kocevski/112418/expmap_326160001_326419201_4FGL_J1650.7+0831_daily_bin335.fits
Exposure cube: /scratch/kocevski/112418/ltcube_326160001_326419201_4FGL_J1650.7+0831_daily_bin335.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/112418/Model_4FGL_J1650.7+0831_daily_bin335.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) = 9263.51596676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    32.182       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .51283       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.008       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3906       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.800       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.356       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12923E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.7486       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15601E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .22206E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .20640       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4697       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92101       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9263.474     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2279 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          32.187        16.073       -.17439E-06    .66814E-04
   2  norm          .10000E-03    35.395       -.18693E-04** at limit **
   3  Prefactor     .10000E-03    28.154        .12104E-04** at limit **
   4  Prefactor     .10000E-03    11.195        .49826E-06** at limit **
   5  Prefactor     .10000E-03    3.3463        .23895E-06** at limit **
   6  Prefactor     .48087        5.5505       -.40318E-05    .63797E-03
   7  Prefactor     11.010        6.7705        .52097E-05    .28700E-03
   8  Prefactor     4.3916        5.3855       -.28848E-05   -.73124E-04
   9  Prefactor     27.773        56.428       -.31333E-04    .30141E-04
  10  Prefactor     .10000E-03    3.8430        .20863E-06** at limit **
  11  Prefactor     23.357        16.019        .99981E-08    .48558E-04
  12  Prefactor     .10000E-03    123.31       -.26399E-04** at limit **
  13  norm          .10000E-03    1.2462        .12605E-06** at limit **
  14  Prefactor     .10243E-03    11.238       -.35575E-05** at limit **
  15  norm          5.7400        7.6883        .48623E-05    .19021E-03
  16  Prefactor     .10000E-03    90.255        .46877E-04** at limit **
  17  Prefactor     .10000E-03    1.9244       -.59058E-07** at limit **
  18  norm          .10000E-03    4.4628       -.13147E-06** at limit **
  19  norm          .28306        5.5237       -.16322E-05    .26089E-03
  20  Normalizat    1.4698        .27102        .17595E-05    .51266E-03
  21  Prefactor     .92082        .83080E-01   -.14266E-07    .13813E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 32.1873
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.48087
  Prefactor  = 11.0104
  Prefactor  = 4.39161
  Prefactor  = 27.7731
  Prefactor  = 0.0001
  Prefactor  = 23.3569
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000102427
  norm       = 5.73997
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.283056
  Normalizat = 1.46983
  Prefactor  = 0.920819
 **********
 **   18 **HESSE 
 **********

 FCN=   9263.474     FROM HESSE     STATUS=OK           325 CALLS     2604 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          32.187        16.096        .70633E-04   -1.4573    
   2  norm          .10000E-03    35.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    28.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.3517        .17191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .48087        27.391        .42759E-02   -1.5569    
   7  Prefactor     11.010        6.7647        .12075E-03   -1.5044    
   8  Prefactor     4.3916        5.3892        .19221E-03   -1.5289    
   9  Prefactor     27.773        56.465        .75983E-04   -1.4653    
  10  Prefactor     .10000E-03    3.8700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.357        16.048        .82885E-04   -1.4741    
  12  Prefactor     .10000E-03    123.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.2559        .10491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10243E-03    120.75        .59801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.7400        7.6145        .16752E-03   -1.5229    
  16  Prefactor     .10000E-03    90.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.5614        .25012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    58.177        .39295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .28306        71.510        .43625E-02   -1.5602    
  20  Normalizat    1.4698        .32143        .40997E-03   -.78630    
  21  Prefactor     .92082        .10037        .15967E-03   -.95417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65895e-08
Minuit parameter uncertainties:
  1  16.0983
  2  7.48114e-07
  3  2.03342e-05
  4  5.10789e-06
  5  6.17623e-06
  6  7.2613
  7  6.76522
  8  5.38979
  9  56.5743
  10  4.0694e-05
  11  16.0505
  12  7.49056e-05
  13  1.10645e-08
  14  0.0343109
  15  7.61582
  16  1.2247e-06
  17  4.07168e-05
  18  3.79546e-05
  19  9.00739
  20  0.321872
  21  0.100386
Done.

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

Extracting fit parameters...

4FGL J1650.7+0831
   Spectrum: PowerLaw
272    Prefactor:  4.392e+00  5.390e+00  1.000e-04  1.000e+04 ( 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:  9.208e-01  1.004e-01  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.470e+00  3.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.09
Ra Dec: 252.700 8.518
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 3.82e-08 +/- 4.69e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 1.26e-05

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

Saving results to:
/scratch/kocevski/112418/likelihoodResults_326160001_326419201_4FGL_J1650.7+0831_daily_bin335.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) = 9263.47148869
delta logL = 0.00266352268045

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9263.47109233
delta logL = 0.003059885732

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2577       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6581       1.0000          .0000       10.000    
     3 'Normalizat'    1.4661       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92148       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9263.471     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      232 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2573        5.7762        .19527E-03    .57022E-03
   2  Index         2.6573        1.1071        .14499E-01    .89482E-04
   3  Normalizat    1.4662        .31257        .41039E-03   -.73134E-04
   4  Prefactor     .92146        .98564E-01    .15962E-03   -.18601E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.25734
  Index      = 2.65734
  Normalizat = 1.46618
  Prefactor  = 0.921464
 **********
 **   18 **HESSE 
 **********

 FCN=   9263.471     FROM HESSE     STATUS=OK            25 CALLS      257 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2573        5.5416        .78106E-05   -1.5295    
   2  Index         2.6573        1.0621        .57994E-03   -.48763    
   3  Normalizat    1.4662        .31256        .16416E-04   -.78733    
   4  Prefactor     .92146        .98585E-01    .31923E-04   -.95395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18188e-10
Minuit parameter uncertainties:
  1  5.54228
  2  1.07256
  3  0.312973
  4  0.0986038
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/112418': 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) = 9263.471092
delta logL = 0.00306020864264

Extracting fit parameters...

4FGL J1650.7+0831
   Spectrum: PowerLaw
272    Prefactor:  4.257e+00  5.542e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        Index:  2.657e+00  1.073e+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.215e-01  9.860e-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.466e+00  3.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.10
Ra Dec: 252.700 8.518
Photon Index (Free Index): 2.66 +/- 1.07
Photon Flux (Free Index): 4.13e-08 +/- 6.23e-08
Energy Flux (Free Index): 1.03e-05 +/- 1.24e-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/112418/cmap_HighResolution_326160001_326419201_4FGL_J1650.7+0831_daily_bin335.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', comment='SUCCESS', photon_flux='3.82e-08', energy_flux2='1.03e-05', photon_flux_error='4.69e-08', dlogl='3.06e-03', energy_flux='1.03e-05', photon_flux2='4.13e-08', job_status='DONE', time_completed='2021-09-15 23:11:36.620321', photon_index_error2='1.07', photon_index2='2.66', ts='1.09', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.54e-07', energy_flux_error2='1.24e-05', EG='1.47', time_epoch_completed='1631772696.62', return_code='0', job_id='112418', GAL2='0.92', EG2='1.47', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='6.23e-08', ts2='1.10', photon_index='2.57' WHERE bin_id='335' AND source_name='4FGL J1650.7+0831' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 23:11:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 112418: <4FGL_J1650.7+0831_daily_bin335> in cluster <slac> Done

Job <4FGL_J1650.7+0831_daily_bin335> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep 15 23:00:18 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 23:00:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 15 23:00:29 2021
Terminated at Wed Sep 15 23:11:37 2021
Results reported at Wed Sep 15 23:11:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1650.7+0831_daily_bin335 252.7 8.5182 326160001 326419201 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 :                                   652.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   668 sec.
    Turnaround time :                            679 sec.

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

