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


Performing analysis on: 4FGL_J1642.9+3948_daily_bin1296
RA = 250.734, Dec = 39.8164
tmin = 575251201, tmax = 575510401
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='863249', job_status='RUN', time_executed='2021-09-15 08:07:33.411647', time_epoch_executed='1631718453.41' WHERE source_name='4FGL J1642.9+3948' and cadence='daily' and bin_id='1296'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/863249

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/863249/ft1_4FGL_J1642.9+3948_daily_bin1296.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/863249/ft2_4FGL_J1642.9+3948_daily_bin1296.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/863249/ft1_4FGL_J1642.9+3948_daily_bin1296.fits outfile=/scratch/kocevski/863249/ft1_filteredMKT_4FGL_J1642.9+3948_daily_bin1296.fits ra=250.734 dec=39.8164 rad=12.0 tmin=575251201.0 tmax=575510401.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 5.31
user 5.01
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/863249/ft1_filtered_4FGL_J1642.9+3948_daily_bin1296.fits" evtable="EVENTS" scfile=/scratch/kocevski/863249/ft2_4FGL_J1642.9+3948_daily_bin1296.fits sctable="SC_DATA" outfile=/scratch/kocevski/863249/ltcube_575251201_575510401_4FGL_J1642.9+3948_daily_bin1296.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/863249/ft2_4FGL_J1642.9+3948_daily_bin1296.fits
.....................!
real 13.02
user 12.63
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/863249/ft1_filtered_4FGL_J1642.9+3948_daily_bin1296.fits evtable="EVENTS" scfile=/scratch/kocevski/863249/ft2_4FGL_J1642.9+3948_daily_bin1296.fits sctable="SC_DATA" expcube=/scratch/kocevski/863249/ltcube_575251201_575510401_4FGL_J1642.9+3948_daily_bin1296.fits outfile=/scratch/kocevski/863249/expmap_575251201_575510401_4FGL_J1642.9+3948_daily_bin1296.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/863249/ltcube_575251201_575510401_4FGL_J1642.9+3948_daily_bin1296.fits
.....................!
real 191.89
user 186.81
sys 4.48

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/863249/ft1_filtered_4FGL_J1642.9+3948_daily_bin1296.fits scfile=/scratch/kocevski/863249/ft2_4FGL_J1642.9+3948_daily_bin1296.fits outfile=/scratch/kocevski/863249/cmap_575251201_575510401_4FGL_J1642.9+3948_daily_bin1296.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/863249/ft1_filtered_4FGL_J1642.9+3948_daily_bin1296.fits scfile=/scratch/kocevski/863249/ft2_4FGL_J1642.9+3948_daily_bin1296.fits outfile=/scratch/kocevski/863249/cmap_HighResolution_575251201_575510401_4FGL_J1642.9+3948_daily_bin1296.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.57
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/863249/ft1_filtered_4FGL_J1642.9+3948_daily_bin1296.fits', '/scratch/kocevski/863249/ft2_4FGL_J1642.9+3948_daily_bin1296.fits', expMap='/scratch/kocevski/863249/expmap_575251201_575510401_4FGL_J1642.9+3948_daily_bin1296.fits', expCube='/scratch/kocevski/863249/ltcube_575251201_575510401_4FGL_J1642.9+3948_daily_bin1296.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/863249/Model_4FGL_J1642.9+3948_daily_bin1296.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/863249/ft1_filtered_4FGL_J1642.9+3948_daily_bin1296.fits
Spacecraft file(s): /scratch/kocevski/863249/ft2_4FGL_J1642.9+3948_daily_bin1296.fits
Exposure map: /scratch/kocevski/863249/expmap_575251201_575510401_4FGL_J1642.9+3948_daily_bin1296.fits
Exposure cube: /scratch/kocevski/863249/ltcube_575251201_575510401_4FGL_J1642.9+3948_daily_bin1296.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/863249/Model_4FGL_J1642.9+3948_daily_bin1296.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) = 8525.97520972

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.136       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4110       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7644       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .64025E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    .53376       1.0000         .10000E-03   10000.    
     8 'norm      '    9.0641       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2414       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2251       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6656       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7787       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.9354       1.0000         .10000E-03   10000.    
    17 'norm      '    .54050       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.837       1.0000         .10000E-03   10000.    
    19 'norm      '    .71590       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.0925       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    28.952       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .36393E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1342       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .89395       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=   8525.951     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     2700 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.133        25.675        .63338E-07   -.31651E-04
   2  Prefactor     .10000E-03    43.828        .21773E-06** at limit **
   3  Prefactor     1.4106        2.4425        .43670E-06   -.20013E-04
   4  Prefactor     3.7636        4.9505        .33250E-06   -.22332E-04
   5  Prefactor     .10000E-03    8.3025        .27754E-07** at limit **
   6  Prefactor     .60683E-01    1.2255        .96193E-07   -.10539E-03
   7  norm          .53379        .16492        .35758E-08   -.55535E-03
   8  norm          9.0649        9.3821       -.22662E-07   -.16417E-04
   9  Prefactor     6.2314        18.994        .13465E-06   -.52780E-04
  10  Prefactor     .10000E-03    3.1313        .15475E-07** at limit **
  11  norm          .10000E-03    18.346        .73207E-08** at limit **
  12  Prefactor     1.2250        1.1195        .36222E-08   -.14511E-03
  13  Prefactor     2.6657        1.4302        .32791E-08   -.24600E-03
  14  Prefactor     2.7783        2.2907       -.89826E-07   -.16626E-03
  15  Prefactor     .10000E-03    1.4750        .10936E-06** at limit **
  16  norm          2.9355        1.5900        .16531E-07   -.62249E-04
  17  norm          .54031        .84706        .42310E-06    .46904E-03
  18  Prefactor     21.837        8.7537       -.23983E-06   -.22182E-03
  19  norm          .71593        .66028        .72184E-07    .65368E-04
  20  norm          .10000E-03    2.5168        .40992E-07** at limit **
  21  norm          3.0925        1.7930        .33200E-07   -.10155E-03
  22  Prefactor     .10000E-03    44.454        .51990E-07** at limit **
  23  norm          28.953        7.8454       -.74956E-06    .26093E-03
  24  Prefactor     .10000E-03    845.39       -.75912E-05** at limit **
  25  Normalizat    1.1345        .18877       -.50348E-06   -.12122E-03
  26  Prefactor     .89380        .14489       -.43218E-06   -.89453E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.1333
  Prefactor  = 0.0001
  Prefactor  = 1.4106
  Prefactor  = 3.76358
  Prefactor  = 0.0001
  Prefactor  = 0.0606827
  norm       = 0.533792
  norm       = 9.06493
  Prefactor  = 6.23138
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.22505
  Prefactor  = 2.66572
  Prefactor  = 2.7783
  Prefactor  = 0.0001
  norm       = 2.93549
  norm       = 0.540313
  Prefactor  = 21.8368
  norm       = 0.715935
  norm       = 0.0001
  norm       = 3.09245
  Prefactor  = 0.0001
  norm       = 28.9527
  Prefactor  = 0.000100003
  Normalizat = 1.13447
  Prefactor  = 0.893799
 **********
 **   18 **HESSE 
 **********

 FCN=   8525.951     FROM HESSE     STATUS=OK           474 CALLS     3174 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.133        25.706        .71807E-04   -1.4591    
   2  Prefactor     .10000E-03    43.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.4106        2.4163        .18243E-03   -1.5470    
   4  Prefactor     3.7636        4.9505        .20808E-03   -1.5320    
   5  Prefactor     .10000E-03    8.3141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .60683E-01    20.020        .19234E-02   -1.5659    
   7  norm          .53379        .16496        .18019E-04   -1.5562    
   8  norm          9.0649        9.3821        .13312E-03   -1.5106    
   9  Prefactor     6.2314        19.146        .16068E-03   -1.5209    
  10  Prefactor     .10000E-03    3.2403        .31847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    18.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.2250        1.0997        .74974E-04   -1.5487    
  13  Prefactor     2.6657        1.4139        .63930E-04   -1.5381    
  14  Prefactor     2.7783        2.2779        .12025E-03   -1.5375    
  15  Prefactor     .10000E-03    2.7151        .21361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9355        1.5873        .82043E-04   -1.5365    
  17  norm          .54031        .80982        .99714E-03   -1.5561    
  18  Prefactor     21.837        8.6546        .85714E-04   -1.4773    
  19  norm          .71593        .62555        .68021E-03   -1.5539    
  20  norm          .10000E-03    2.5233        .14308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.0925        1.7850        .88667E-04   -1.5356    
  22  Prefactor     .10000E-03    44.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          28.953        7.6034        .74458E-04   -1.4631    
  24  Prefactor     .10000E-03    848.26        .42613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1345        .22837        .27784E-03   -.88653    
  26  Prefactor     .89380        .17452        .25189E-03   -.96358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69714e-08
Minuit parameter uncertainties:
  1  25.7147
  2  0.000116409
  3  2.41648
  4  4.95102
  5  2.53588e-06
  6  2.20335
  7  0.164956
  8  9.38361
  9  19.165
  10  2.86287e-06
  11  7.44746e-07
  12  1.09968
  13  1.41393
  14  2.27794
  15  3.57001e-06
  16  1.58727
  17  0.809833
  18  8.65508
  19  0.625557
  20  6.49776e-06
  21  1.78502
  22  4.42643e-06
  23  7.60367
  24  0.00328177
  25  0.228566
  26  0.174625
Done.

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

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  2.666e+00  1.414e+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:  8.938e-01  1.746e-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.134e+00  2.286e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.62
Ra Dec: 250.734 39.816
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.03e-07 +/- 5.45e-08
Energy Flux (Fixed Index): 3.36e-05 +/- 1.78e-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) = 8525.94803376
delta logL = 0.00331916532559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8525.94295294
delta logL = 0.00839998254742

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4985       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4571       1.0000          .0000       10.000    
     3 'Normalizat'    1.1288       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89692       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=   8525.943     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      203 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4994        14.270        .64639E-02    .45149E-03
   2  Index         2.4570        2.2524        .12323        .18021E-03
   3  Normalizat    1.1291        .72534E-01    .62933E-01    .16369E-04
   4  Prefactor     .89672        .49397E-01    .44966E-01    .17664E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.49938
  Index      = 2.45698
  Normalizat = 1.12909
  Prefactor  = 0.896724
 **********
 **   18 **HESSE 
 **********

 FCN=   8525.943     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4994        1.8578        .61147E-04   -1.5392    
   2  Index         2.4570        .46479        .44354E-02   -.53356    
   3  Normalizat    1.1291        .21631        .27837E-03   -.88823    
   4  Prefactor     .89672        .17339        .25152E-03   -.96256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.09316e-09
Minuit parameter uncertainties:
  1  1.85789
  2  0.465696
  3  0.216475
  4  0.173501
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/863249': 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) = 8525.94295186
delta logL = 0.00840106029318

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  2.499e+00  1.858e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  2.457e+00  4.657e-01  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:  8.967e-01  1.735e-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.129e+00  2.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.87
Ra Dec: 250.734 39.816
Photon Index (Free Index): 2.46 +/- 0.47
Photon Flux (Free Index): 1.07e-07 +/- 5.70e-08
Energy Flux (Free Index): 3.27e-05 +/- 1.66e-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/863249/cmap_HighResolution_575251201_575510401_4FGL_J1642.9+3948_daily_bin1296.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.03e-07', energy_flux2='3.27e-05', photon_flux_error='5.45e-08', dlogl='8.40e-03', energy_flux='3.36e-05', photon_flux2='1.07e-07', job_status='DONE', time_completed='2021-09-15 08:21:26.384465', photon_index_error2='0.47', photon_index2='2.46', ts='9.62', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.66e-05', EG='1.13', time_epoch_completed='1631719286.38', return_code='0', job_id='863249', GAL2='0.90', EG2='1.13', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='5.70e-08', ts2='9.87', photon_index='2.40' WHERE bin_id='1296' AND source_name='4FGL J1642.9+3948' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 08:21:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 863249: <4FGL_J1642.9+3948_daily_bin1296> in cluster <slac> Done

Job <4FGL_J1642.9+3948_daily_bin1296> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep 15 08:05:23 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 08:07:23 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:07:23 2021
Terminated at Wed Sep 15 08:21:27 2021
Results reported at Wed Sep 15 08:21:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1642.9+3948_daily_bin1296 250.734 39.8164 575251201 575510401 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 :                                   822.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             360.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            964 sec.

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

