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


Performing analysis on: 4FGL_J1642.9+3948_daily_bin1046
RA = 250.734, Dec = 39.8164
tmin = 510451201, tmax = 510710401
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='861838', job_status='RUN', time_executed='2021-09-15 08:01:33.659174', time_epoch_executed='1631718093.66' WHERE source_name='4FGL J1642.9+3948' and cadence='daily' and bin_id='1046'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/861838

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/861838/ft1_4FGL_J1642.9+3948_daily_bin1046.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/861838/ft2_4FGL_J1642.9+3948_daily_bin1046.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/861838/ft1_4FGL_J1642.9+3948_daily_bin1046.fits outfile=/scratch/kocevski/861838/ft1_filteredMKT_4FGL_J1642.9+3948_daily_bin1046.fits ra=250.734 dec=39.8164 rad=12.0 tmin=510451201.0 tmax=510710401.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.99
user 3.75
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/861838/ft2_4FGL_J1642.9+3948_daily_bin1046.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/861838/ft2_4FGL_J1642.9+3948_daily_bin1046.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/861838/ft1_filteredMKT_4FGL_J1642.9+3948_daily_bin1046.fits evtable="EVENTS" outfile="/scratch/kocevski/861838/ft1_filtered_4FGL_J1642.9+3948_daily_bin1046.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.52
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/861838/ft1_filtered_4FGL_J1642.9+3948_daily_bin1046.fits" evtable="EVENTS" scfile=/scratch/kocevski/861838/ft2_4FGL_J1642.9+3948_daily_bin1046.fits sctable="SC_DATA" outfile=/scratch/kocevski/861838/ltcube_510451201_510710401_4FGL_J1642.9+3948_daily_bin1046.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/861838/ft2_4FGL_J1642.9+3948_daily_bin1046.fits
.....................!
real 17.43
user 17.01
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/861838/ft1_filtered_4FGL_J1642.9+3948_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/861838/ft2_4FGL_J1642.9+3948_daily_bin1046.fits sctable="SC_DATA" expcube=/scratch/kocevski/861838/ltcube_510451201_510710401_4FGL_J1642.9+3948_daily_bin1046.fits outfile=/scratch/kocevski/861838/expmap_510451201_510710401_4FGL_J1642.9+3948_daily_bin1046.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/861838/ltcube_510451201_510710401_4FGL_J1642.9+3948_daily_bin1046.fits
.....................!
real 190.87
user 186.61
sys 3.79

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 202 point sources and 0 extended sources

Setting source of interest to:
4FGL J1642.9+3948 @ 250.734 39.8164

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/861838/ft1_filtered_4FGL_J1642.9+3948_daily_bin1046.fits scfile=/scratch/kocevski/861838/ft2_4FGL_J1642.9+3948_daily_bin1046.fits outfile=/scratch/kocevski/861838/cmap_510451201_510710401_4FGL_J1642.9+3948_daily_bin1046.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=250.734 yref=39.8164 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/861838/ft1_filtered_4FGL_J1642.9+3948_daily_bin1046.fits scfile=/scratch/kocevski/861838/ft2_4FGL_J1642.9+3948_daily_bin1046.fits outfile=/scratch/kocevski/861838/cmap_HighResolution_510451201_510710401_4FGL_J1642.9+3948_daily_bin1046.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=250.734 yref=39.8164 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/861838/ft1_filtered_4FGL_J1642.9+3948_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/861838/ft2_4FGL_J1642.9+3948_daily_bin1046.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/861838/Model_4FGL_J1642.9+3948_daily_bin1046.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/861838/ft1_filtered_4FGL_J1642.9+3948_daily_bin1046.fits.....................!
real 54.26
user 52.88
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/861838/ft1_filtered_4FGL_J1642.9+3948_daily_bin1046.fits', '/scratch/kocevski/861838/ft2_4FGL_J1642.9+3948_daily_bin1046.fits', expMap='/scratch/kocevski/861838/expmap_510451201_510710401_4FGL_J1642.9+3948_daily_bin1046.fits', expCube='/scratch/kocevski/861838/ltcube_510451201_510710401_4FGL_J1642.9+3948_daily_bin1046.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/861838/Model_4FGL_J1642.9+3948_daily_bin1046.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1642.9+3948'

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  1.494e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  2.402e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
306        Scale:  1.373e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/861838/ft1_filtered_4FGL_J1642.9+3948_daily_bin1046.fits
Spacecraft file(s): /scratch/kocevski/861838/ft2_4FGL_J1642.9+3948_daily_bin1046.fits
Exposure map: /scratch/kocevski/861838/expmap_510451201_510710401_4FGL_J1642.9+3948_daily_bin1046.fits
Exposure cube: /scratch/kocevski/861838/ltcube_510451201_510710401_4FGL_J1642.9+3948_daily_bin1046.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/861838/Model_4FGL_J1642.9+3948_daily_bin1046.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) = 6776.5833623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2927       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .79439       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .77511E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .17792       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9724       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2423       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9862       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .96437       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .36606       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7146       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0589       1.0000         .10000E-03   10000.    
    17 'norm      '    1.1974       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.4904       1.0000         .10000E-03   10000.    
    19 'norm      '    1.4398       1.0000         .10000E-03   10000.    
    20 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .11125E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.4349       1.0000         .10000E-03   10000.    
    23 'norm      '    12.238       1.0000         .10000E-03   10000.    
    24 'Prefactor '    44.324       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2654       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .75747       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6776.567     FROM MIGRAD    STATUS=CONVERGED    674 CALLS     3217 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2448        35.391       -.24288E-05    .36583E-04
   2  Prefactor     .10000E-03    41.264       -.33643E-06** at limit **
   3  Prefactor     .10000E-03    1.4112       -.18920E-06** at limit **
   4  Prefactor     .10000E-03    2.3223       -.93127E-07** at limit **
   5  Prefactor     .73662        123.10       -.27324E-04    .42023E-04
   6  Prefactor     .10003E-03    1.3940       -.24469E-06** at limit **
   7  norm          .17793        .14167        .10606E-08    .37895E-02
   8  norm          .10000E-03    5.3418       -.17664E-07** at limit **
   9  Prefactor     4.9673        14.918       -.57727E-06    .12366E-03
  10  Prefactor     2.2421        4.6277       -.79792E-06    .57993E-03
  11  norm          .10000E-03    17.865       -.48688E-08** at limit **
  12  Prefactor     1.9869        1.6563        .14690E-06    .10637E-02
  13  Prefactor     .96389        1.6454       -.14203E-06    .15502E-02
  14  Prefactor     .34224        1.9603       -.15693E-06    .16600E-03
  15  Prefactor     2.7151        2.6001        .13455E-06    .71189E-03
  16  norm          1.0585        1.5201       -.97948E-06   -.13339E-02
  17  norm          1.1982        .94655        .52266E-07    .11452E-03
  18  Prefactor     8.4877        7.8217       -.19354E-06    .23834E-03
  19  norm          1.4396        .83026        .22848E-08    .52816E-03
  20  norm          .10000E-03    4.5303        .25584E-06** at limit **
  21  norm          .10000E-03    .78332       -.20456E-06** at limit **
  22  Prefactor     4.2689        125.96       -.32124E-05    .97441E-06
  23  norm          12.242        6.7452       -.25861E-06    .13596E-03
  24  Prefactor     44.211        71.970        .19456E-05    .33598E-04
  25  Normalizat    1.2658        .19636        .18393E-05    .26366E-03
  26  Prefactor     .75740        .14959        .26467E-06    .15852E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.24475
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.736617
  Prefactor  = 0.000100029
  norm       = 0.177932
  norm       = 0.0001
  Prefactor  = 4.96728
  Prefactor  = 2.24205
  norm       = 0.0001
  Prefactor  = 1.98689
  Prefactor  = 0.963886
  Prefactor  = 0.342238
  Prefactor  = 2.71509
  norm       = 1.05847
  norm       = 1.19818
  Prefactor  = 8.4877
  norm       = 1.43956
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.26888
  norm       = 12.2416
  Prefactor  = 44.2105
  Normalizat = 1.2658
  Prefactor  = 0.757401
 **********
 **   18 **HESSE 
 **********

 FCN=   6776.567     FROM HESSE     STATUS=OK           478 CALLS     3695 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2448        35.266        .22313E-03   -1.5348    
   2  Prefactor     .10000E-03    41.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.4318        .95517E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.3266        .12232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .73662        122.77        .58166E-02   -1.5536    
   6  Prefactor     .10003E-03    37.515        .18407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .17793        .13420        .23392E-03   -1.5624    
   8  norm          .10000E-03    5.3447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.9673        14.783        .18035E-03   -1.5262    
  10  Prefactor     2.2421        4.5504        .22956E-03   -1.5408    
  11  norm          .10000E-03    17.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.9869        1.6434        .61761E-04   -1.5426    
  13  Prefactor     .96389        1.5480        .86611E-04   -1.5512    
  14  Prefactor     .34224        11.246        .20258E-02   -1.5591    
  15  Prefactor     2.7151        2.5778        .12259E-03   -1.5378    
  16  norm          1.0585        1.4395        .12455E-02   -1.5502    
  17  norm          1.1982        .94551        .63728E-04   -1.5489    
  18  Prefactor     8.4877        7.7661        .13758E-03   -1.5125    
  19  norm          1.4396        .81948        .53190E-04   -1.5468    
  20  norm          .10000E-03    4.5502        .17074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.0919        .14096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.2689        125.14        .19122E-03   -1.5295    
  23  norm          12.242        6.7248        .11451E-03   -1.5008    
  24  Prefactor     44.211        72.366        .60219E-04   -1.4377    
  25  Normalizat    1.2658        .23323        .24241E-03   -.84593    
  26  Prefactor     .75740        .17881        .24827E-03   -1.0132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26425e-09
Minuit parameter uncertainties:
  1  21.41
  2  1.27019e-05
  3  1.37467e-06
  4  2.51828e-06
  5  19.0576
  6  0.00208151
  7  0.134205
  8  1.68495e-07
  9  14.7939
  10  4.55112
  11  4.82539e-06
  12  1.64348
  13  1.54809
  14  3.92391
  15  2.57794
  16  1.43958
  17  0.945519
  18  7.76698
  19  0.819482
  20  8.15822e-05
  21  1.67613e-05
  22  46.3332
  23  6.72519
  24  72.5106
  25  0.233425
  26  0.178945
Done.

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

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  9.639e-01  1.548e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  2.402e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
306        Scale:  1.373e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  7.574e-01  1.789e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  1.266e+00  2.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.08
Ra Dec: 250.734 39.816
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 3.72e-08 +/- 5.96e-08
Energy Flux (Fixed Index): 1.21e-05 +/- 1.95e-05

TS (Fixed Index): 1.08
Ra Dec: 250.734 39.816
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/861838/likelihoodResults_510451201_510710401_4FGL_J1642.9+3948_daily_bin1046.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) = 6776.56552478
delta logL = 0.00104032133186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6776.564632
delta logL = 0.00193310939085

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0198       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3427       1.0000          .0000       10.000    
     3 'Normalizat'    1.2682       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75613       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6776.565     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      207 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0194        21.879        .12809E-01    .94274E-03
   2  Index         2.3427        6.1714        .15691        .85500E-04
   3  Normalizat    1.2682        .44215E-01    .54782E-01    .54536E-05
   4  Prefactor     .75612        .33773E-01    .43144E-01    .18176E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.01941
  Index      = 2.34274
  Normalizat = 1.26823
  Prefactor  = 0.756116
 **********
 **   18 **HESSE 
 **********

 FCN=   6776.565     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0194        1.5353        .89857E-04   -1.5506    
   2  Index         2.3427        1.0226        .97038E-02   -.56031    
   3  Normalizat    1.2682        .21942        .24223E-03   -.84520    
   4  Prefactor     .75612        .17634        .24846E-03   -1.0137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.96348e-09
Minuit parameter uncertainties:
  1  1.53531
  2  1.03285
  3  0.219584
  4  0.176472
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/861838': 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) = 6776.56463193
delta logL = 0.00193317022604

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  1.019e+00  1.535e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  2.343e+00  1.033e+00  0.000e+00  1.000e+01 (-1.000e+00)
306        Scale:  1.373e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  7.561e-01  1.765e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  1.268e+00  2.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.14
Ra Dec: 250.734 39.816
Photon Index (Free Index): 2.34 +/- 1.03
Photon Flux (Free Index): 3.51e-08 +/- 5.01e-08
Energy Flux (Free Index): 1.25e-05 +/- 1.56e-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/861838/cmap_HighResolution_510451201_510710401_4FGL_J1642.9+3948_daily_bin1046.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.69e-03', comment='SUCCESS', photon_flux='3.72e-08', energy_flux2='1.25e-05', photon_flux_error='5.96e-08', dlogl='1.93e-03', energy_flux='1.21e-05', photon_flux2='3.51e-08', job_status='DONE', time_completed='2021-09-15 08:16:19.597286', photon_index_error2='1.03', photon_index2='2.34', ts='1.08', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.56e-05', EG='1.27', time_epoch_completed='1631718979.6', return_code='0', job_id='861838', GAL2='0.76', EG2='1.27', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='5.01e-08', ts2='1.14', photon_index='2.40' WHERE bin_id='1046' AND source_name='4FGL J1642.9+3948' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 08:16:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 861838: <4FGL_J1642.9+3948_daily_bin1046> in cluster <slac> Done

Job <4FGL_J1642.9+3948_daily_bin1046> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 15 08:00:30 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 08:01:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 15 08:01:25 2021
Terminated at Wed Sep 15 08:16:20 2021
Results reported at Wed Sep 15 08:16:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1642.9+3948_daily_bin1046 250.734 39.8164 510451201 510710401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1642.9+3948 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   884.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             347.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            950 sec.

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

