/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 42 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 = 7367
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1650.7+0831_daily_bin1080
RA = 252.7, Dec = 8.5182
tmin = 519264001, tmax = 519523201
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='120283', job_status='RUN', time_executed='2021-09-15 23:33:55.602403', time_epoch_executed='1631774035.6' WHERE source_name='4FGL J1650.7+0831' and cadence='daily' and bin_id='1080'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/120283

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/120283/ft1_4FGL_J1650.7+0831_daily_bin1080.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/120283/ft2_4FGL_J1650.7+0831_daily_bin1080.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/120283/ft1_4FGL_J1650.7+0831_daily_bin1080.fits outfile=/scratch/kocevski/120283/ft1_filteredMKT_4FGL_J1650.7+0831_daily_bin1080.fits ra=252.7 dec=8.5182 rad=12.0 tmin=519264001.0 tmax=519523201.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 3.52
user 3.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/120283/ft1_filtered_4FGL_J1650.7+0831_daily_bin1080.fits" evtable="EVENTS" scfile=/scratch/kocevski/120283/ft2_4FGL_J1650.7+0831_daily_bin1080.fits sctable="SC_DATA" outfile=/scratch/kocevski/120283/ltcube_519264001_519523201_4FGL_J1650.7+0831_daily_bin1080.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/120283/ft2_4FGL_J1650.7+0831_daily_bin1080.fits
.....................!
real 14.17
user 13.77
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/120283/ft1_filtered_4FGL_J1650.7+0831_daily_bin1080.fits evtable="EVENTS" scfile=/scratch/kocevski/120283/ft2_4FGL_J1650.7+0831_daily_bin1080.fits sctable="SC_DATA" expcube=/scratch/kocevski/120283/ltcube_519264001_519523201_4FGL_J1650.7+0831_daily_bin1080.fits outfile=/scratch/kocevski/120283/expmap_519264001_519523201_4FGL_J1650.7+0831_daily_bin1080.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/120283/ltcube_519264001_519523201_4FGL_J1650.7+0831_daily_bin1080.fits
.....................!
real 190.72
user 186.09
sys 4.20

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/120283/ft1_filtered_4FGL_J1650.7+0831_daily_bin1080.fits scfile=/scratch/kocevski/120283/ft2_4FGL_J1650.7+0831_daily_bin1080.fits outfile=/scratch/kocevski/120283/cmap_519264001_519523201_4FGL_J1650.7+0831_daily_bin1080.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/120283/ft1_filtered_4FGL_J1650.7+0831_daily_bin1080.fits scfile=/scratch/kocevski/120283/ft2_4FGL_J1650.7+0831_daily_bin1080.fits outfile=/scratch/kocevski/120283/cmap_HighResolution_519264001_519523201_4FGL_J1650.7+0831_daily_bin1080.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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/120283/ft1_filtered_4FGL_J1650.7+0831_daily_bin1080.fits evtable="EVENTS" scfile=/scratch/kocevski/120283/ft2_4FGL_J1650.7+0831_daily_bin1080.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/120283/Model_4FGL_J1650.7+0831_daily_bin1080.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/120283/ft1_filtered_4FGL_J1650.7+0831_daily_bin1080.fits.....................!
real 76.09
user 74.66
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/120283/ft1_filtered_4FGL_J1650.7+0831_daily_bin1080.fits', '/scratch/kocevski/120283/ft2_4FGL_J1650.7+0831_daily_bin1080.fits', expMap='/scratch/kocevski/120283/expmap_519264001_519523201_4FGL_J1650.7+0831_daily_bin1080.fits', expCube='/scratch/kocevski/120283/ltcube_519264001_519523201_4FGL_J1650.7+0831_daily_bin1080.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/120283/Model_4FGL_J1650.7+0831_daily_bin1080.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/120283/ft1_filtered_4FGL_J1650.7+0831_daily_bin1080.fits
Spacecraft file(s): /scratch/kocevski/120283/ft2_4FGL_J1650.7+0831_daily_bin1080.fits
Exposure map: /scratch/kocevski/120283/expmap_519264001_519523201_4FGL_J1650.7+0831_daily_bin1080.fits
Exposure cube: /scratch/kocevski/120283/ltcube_519264001_519523201_4FGL_J1650.7+0831_daily_bin1080.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/120283/Model_4FGL_J1650.7+0831_daily_bin1080.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) = 9653.95901226

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10344E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .10608E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.264       1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.482       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14760E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.189       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .85711       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.764       1.0000         .10000E-03   10000.    
    12 'Prefactor '    73.297       1.0000         .10000E-03   10000.    
    13 'norm      '    .22567E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.524       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5353       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7665       1.0000         .10000E-03   10000.    
    18 'norm      '    5.6810       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .69082       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1859       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=   9653.909     FROM MIGRAD    STATUS=CONVERGED     89 CALLS     1899 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5248       -.86609E-06** at limit **
   2  norm          .10272E-03    442.55       -.66273E-04** at limit **
   3  Prefactor     10.270        1.5596        .11003E-05   -.32102E-03
   4  Prefactor     28.512        6.7719       -.70544E-06    .47864E-02
   5  Prefactor     .10001E-03    23.368       -.25434E-04** at limit **
   6  Prefactor     .10000E-03    4.3355        .10745E-05** at limit **
   7  Prefactor     .10000E-03    2.5503       -.10361E-05** at limit **
   8  Prefactor     12.191        6.7772        .50070E-05    .59076E-03
   9  Prefactor     .10001E-03    21.456        .15058E-04** at limit **
  10  Prefactor     .85758        7.0015       -.17505E-05   -.21060E-04
  11  Prefactor     12.766        1.7913        .28516E-05   -.11869E-02
  12  Prefactor     73.296        1.0874       -.16754E-06    .49119E-03
  13  norm          .25423E-01    34.658       -.75502E-04   -.17362E-03
  14  Prefactor     10.521        1.1459        .56409E-07    .26988E-03
  15  norm          .10000E-03    6.2184        .17319E-05** at limit **
  16  Prefactor     3.4825        11.693       -.18437E-04    .20883E-02
  17  Prefactor     1.7669        2.6692        .15902E-06    .42253E-03
  18  norm          5.6804        1.4917        .22320E-05    .63727E-03
  19  norm          .10000E-03    3.8699       -.24783E-06** at limit **
  20  Normalizat    .69075        .29992       -.39425E-05    .56463E-04
  21  Prefactor     1.1859        .10120        .15221E-06    .31716E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  norm       = 0.00010272
  Prefactor  = 10.2697
  Prefactor  = 28.512
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1906
  Prefactor  = 0.000100005
  Prefactor  = 0.857583
  Prefactor  = 12.7659
  Prefactor  = 73.2956
  norm       = 0.0254229
  Prefactor  = 10.5214
  norm       = 0.0001
  Prefactor  = 3.4825
  Prefactor  = 1.7669
  norm       = 5.68041
  norm       = 0.0001
  Normalizat = 0.690745
  Prefactor  = 1.18589
 **********
 **   18 **HESSE 
 **********

 FCN=   9653.909     FROM HESSE     STATUS=OK           371 CALLS     2270 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.1351        .10370       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10272E-03    466.15        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.270        121.46        .31266E-02   -1.5067    
   4  Prefactor     28.512        36.308        .18767E-02   -1.4640    
   5  Prefactor     .10001E-03    23.120        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.3037        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.5264        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.191        6.8378        .28684E-02   -1.5010    
   9  Prefactor     .10001E-03    22.373        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .85758        7.0510        .12651E-01   -1.5523    
  11  Prefactor     12.766        13.146        .28030E-02   -1.4993    
  12  Prefactor     73.296        174.49        .11724E-02   -1.3994    
  13  norm          .25423E-01    1.7882        .41649E-01   -1.5676    
  14  Prefactor     10.521        11.536        .30877E-02   -1.5059    
  15  norm          .10000E-03    6.1871        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.4825        499.27        .53746E-02   -1.5335    
  17  Prefactor     1.7669        2.7489        .78788E-02   -1.5442    
  18  norm          5.6804        10.020        .42132E-02   -1.5231    
  19  norm          .10000E-03    3.8641        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .69075        .30072        .12569       -1.0426    
  21  Prefactor     1.1859        .95930E-01    .34973E-01   -.86767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04362e-06
Minuit parameter uncertainties:
  1  0.000187463
  2  0.0717838
  3  70.8147
  4  36.3362
  5  0.00102259
  6  2.19973e-05
  7  9.38115e-06
  8  6.83826
  9  0.000685031
  10  4.91856
  11  13.1488
  12  175.731
  13  0.425604
  14  11.538
  15  3.31007e-05
  16  84.1199
  17  2.74911
  18  10.0231
  19  1.43423e-06
  20  0.301439
  21  0.0959442
Done.

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

Extracting fit parameters...

4FGL J1650.7+0831
   Spectrum: PowerLaw
272    Prefactor:  1.219e+01  6.838e+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:  1.186e+00  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:  6.907e-01  3.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.52
Ra Dec: 252.700 8.518
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 1.06e-07 +/- 5.95e-08
Energy Flux (Fixed Index): 2.85e-05 +/- 1.60e-05

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) = 9653.5937873
delta logL = 0.315153548638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9653.59362281
delta logL = 0.31531803627

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.112       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1411       1.0000          .0000       10.000    
     3 'Normalizat'    .73378       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1762       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9653.594     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      315 TOTAL
                     EDM=   .82E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.100        8.6889        .51515E-03    .15448E-05
   2  Index         2.1402        .49495        .93383E-02   -.52349E-06
   3  Normalizat    .73391        .30146        .54221E-03    .29354E-06
   4  Prefactor     1.1762        .10138        .14759E-03   -.30811E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.0999
  Index      = 2.14015
  Normalizat = 0.733912
  Prefactor  = 1.17624
 **********
 **   18 **HESSE 
 **********

 FCN=   9653.594     FROM HESSE     STATUS=OK            25 CALLS      340 TOTAL
                     EDM=   .58E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.100        8.6625        .20606E-04   -1.4931    
   2  Index         2.1402        .49318        .37353E-03   -.60890    
   3  Normalizat    .73391        .30148        .21688E-04   -1.0257    
   4  Prefactor     1.1762        .10139        .59037E-05   -.87066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77085e-15
Minuit parameter uncertainties:
  1  8.66325
  2  0.494379
  3  0.302161
  4  0.101406
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/120283': 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) = 9653.59361994
delta logL = 0.315320909238

Extracting fit parameters...

4FGL J1650.7+0831
   Spectrum: PowerLaw
272    Prefactor:  1.510e+01  8.663e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        Index:  2.140e+00  4.944e-01  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:  1.176e+00  1.014e-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:  7.339e-01  3.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.11
Ra Dec: 252.700 8.518
Photon Index (Free Index): 2.14 +/- 0.49
Photon Flux (Free Index): 7.92e-08 +/- 5.94e-08
Energy Flux (Free Index): 3.99e-05 +/- 3.09e-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/120283/cmap_HighResolution_519264001_519523201_4FGL_J1650.7+0831_daily_bin1080.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.06e-07', energy_flux2='3.99e-05', photon_flux_error='5.95e-08', dlogl='3.15e-01', energy_flux='2.85e-05', photon_flux2='7.92e-08', job_status='DONE', time_completed='2021-09-15 23:45:24.035801', photon_index_error2='0.49', photon_index2='2.14', ts='5.52', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='3.09e-05', EG='0.69', time_epoch_completed='1631774724.04', return_code='0', job_id='120283', GAL2='1.18', EG2='0.73', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='5.94e-08', ts2='6.11', photon_index='2.57' WHERE bin_id='1080' AND source_name='4FGL J1650.7+0831' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 23:45:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 120283: <4FGL_J1650.7+0831_daily_bin1080> in cluster <slac> Done

Job <4FGL_J1650.7+0831_daily_bin1080> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 15 23:30:23 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 23:33:03 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:33:03 2021
Terminated at Wed Sep 15 23:45:24 2021
Results reported at Wed Sep 15 23:45:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1650.7+0831_daily_bin1080 252.7 8.5182 519264001 519523201 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 :                                   685.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            901 sec.

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

