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


Performing analysis on: 4FGL_J1642.9+3948_daily_bin719
RA = 250.734, Dec = 39.8164
tmin = 425692801, tmax = 425952001
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='859128', job_status='RUN', time_executed='2021-09-15 07:53:20.244010', time_epoch_executed='1631717600.24' WHERE source_name='4FGL J1642.9+3948' and cadence='daily' and bin_id='719'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/859128

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/859128/ft1_4FGL_J1642.9+3948_daily_bin719.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/859128/ft2_4FGL_J1642.9+3948_daily_bin719.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/859128/ft1_4FGL_J1642.9+3948_daily_bin719.fits outfile=/scratch/kocevski/859128/ft1_filteredMKT_4FGL_J1642.9+3948_daily_bin719.fits ra=250.734 dec=39.8164 rad=12.0 tmin=425692801.0 tmax=425952001.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.55
user 3.34
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/859128/ft1_filtered_4FGL_J1642.9+3948_daily_bin719.fits evtable="EVENTS" scfile=/scratch/kocevski/859128/ft2_4FGL_J1642.9+3948_daily_bin719.fits sctable="SC_DATA" expcube=/scratch/kocevski/859128/ltcube_425692801_425952001_4FGL_J1642.9+3948_daily_bin719.fits outfile=/scratch/kocevski/859128/expmap_425692801_425952001_4FGL_J1642.9+3948_daily_bin719.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/859128/ltcube_425692801_425952001_4FGL_J1642.9+3948_daily_bin719.fits
.....................!
real 199.30
user 193.34
sys 5.55

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/859128/ft1_filtered_4FGL_J1642.9+3948_daily_bin719.fits scfile=/scratch/kocevski/859128/ft2_4FGL_J1642.9+3948_daily_bin719.fits outfile=/scratch/kocevski/859128/cmap_425692801_425952001_4FGL_J1642.9+3948_daily_bin719.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/859128/ft1_filtered_4FGL_J1642.9+3948_daily_bin719.fits scfile=/scratch/kocevski/859128/ft2_4FGL_J1642.9+3948_daily_bin719.fits outfile=/scratch/kocevski/859128/cmap_HighResolution_425692801_425952001_4FGL_J1642.9+3948_daily_bin719.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    55.648       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14377E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4778       1.0000         .10000E-03   10000.    
     7 'norm      '    .34658       1.0000         .10000E-03   10000.    
     8 'norm      '    .12730E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.681       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7513       1.0000         .10000E-03   10000.    
    11 'norm      '    .10436E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6151       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8680       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5407       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.0554       1.0000         .10000E-03   10000.    
    17 'norm      '    .66501       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.6935       1.0000         .10000E-03   10000.    
    19 'norm      '    .61872       1.0000         .10000E-03   10000.    
    20 'norm      '    13.393       1.0000         .10000E-03   10000.    
    21 'norm      '    1.5609       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.1622       1.0000         .10000E-03   10000.    
    23 'norm      '    .87182E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    47.078       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0329       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .78408       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=   6676.071     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     3177 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.8776       -.61481E-07** at limit **
   2  Prefactor     55.647        99.253        .11775E-06   -.50276E-05
   3  Prefactor     .10001E-03    1.9884        .78047E-06** at limit **
   4  Prefactor     .10000E-03    3.3004       -.15827E-06** at limit **
   5  Prefactor     .10000E-03    11.852       -.14508E-06** at limit **
   6  Prefactor     1.4780        2.1418        .82068E-08    .24467E-04
   7  norm          .34660        .17639        .31319E-10   -.64957E-04
   8  norm          .10000E-03    26.277        .58233E-06** at limit **
   9  Prefactor     22.676        21.920        .47220E-06   -.96644E-05
  10  Prefactor     2.7513        3.9036        .31777E-06    .14537E-03
  11  norm          .10000E-03    48.950       -.17138E-05** at limit **
  12  Prefactor     2.6151        1.9210        .80192E-08    .12911E-03
  13  Prefactor     2.8682        1.8968        .18391E-07    .13456E-03
  14  Prefactor     1.5407        2.5005        .42916E-06    .25328E-03
  15  Prefactor     .10000E-03    1.9129       -.13298E-06** at limit **
  16  norm          5.0555        1.9731        .23924E-07    .27216E-04
  17  norm          .66501        .86652       -.49727E-06   -.62726E-03
  18  Prefactor     3.6947        7.2145       -.46457E-06    .40367E-03
  19  norm          .61878        .63096       -.96864E-07    .41840E-03
  20  norm          13.388        8.7355       -.10445E-05   -.30811E-03
  21  norm          1.5609        1.7923        .14123E-06    .24156E-03
  22  Prefactor     8.1083        37.838        .32404E-06    .80223E-04
  23  norm          .10000E-03    14.808       -.39027E-05** at limit **
  24  Prefactor     46.962        95.036       -.74529E-05    .42271E-04
  25  Normalizat    1.0329        .19345        .29171E-06   -.28445E-03
  26  Prefactor     .78405        .14385       -.70376E-06   -.20864E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 55.6468
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.478
  norm       = 0.346602
  norm       = 0.0001
  Prefactor  = 22.6763
  Prefactor  = 2.75131
  norm       = 0.0001
  Prefactor  = 2.61508
  Prefactor  = 2.86817
  Prefactor  = 1.54071
  Prefactor  = 0.0001
  norm       = 5.05549
  norm       = 0.665006
  Prefactor  = 3.69475
  norm       = 0.618785
  norm       = 13.3881
  norm       = 1.56091
  Prefactor  = 8.10833
  norm       = 0.0001
  Prefactor  = 46.9618
  Normalizat = 1.03287
  Prefactor  = 0.784047
 **********
 **   18 **HESSE 
 **********

 FCN=   6676.071     FROM HESSE     STATUS=OK           472 CALLS     3649 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.8794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     55.647        99.450        .53773E-04   -1.4215    
   3  Prefactor     .10001E-03    14.171        .20868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.3236        .14485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4780        2.1135        .13853E-03   -1.5465    
   7  norm          .34660        .17429        .20837E-04   -1.5590    
   8  norm          .10000E-03    27.446        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.676        21.897        .84107E-04   -1.4755    
  10  Prefactor     2.7513        3.8883        .18158E-03   -1.5376    
  11  norm          .10000E-03    49.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.6151        2.0157        .65755E-04   -1.5385    
  13  Prefactor     2.8682        1.9921        .62968E-04   -1.5369    
  14  Prefactor     1.5407        2.4677        .15518E-03   -1.5460    
  15  Prefactor     .10000E-03    1.9918        .22016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.0555        1.9719        .68826E-04   -1.5258    
  17  norm          .66501        .83268        .82459E-03   -1.5545    
  18  Prefactor     3.6947        7.4224        .10507E-02   -1.5324    
  19  norm          .61878        .59792        .61946E-03   -1.5551    
  20  norm          13.388        8.7891        .10945E-03   -1.4976    
  21  norm          1.5609        1.7723        .10974E-03   -1.5458    
  22  Prefactor     8.1083        38.899        .14033E-03   -1.5138    
  23  norm          .10000E-03    14.798        .33530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     46.962        94.763        .29219E-03   -1.4336    
  25  Normalizat    1.0329        .22775        .26575E-03   -.91937    
  26  Prefactor     .78405        .17003        .23769E-03   -1.0032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57426e-09
Minuit parameter uncertainties:
  1  4.20609e-07
  2  99.7491
  3  0.000769462
  4  1.20501e-06
  5  6.41228e-06
  6  2.11363
  7  0.17429
  8  0.000102987
  9  21.9044
  10  3.88864
  11  0.000226158
  12  2.01576
  13  1.99213
  14  2.46787
  15  1.23759e-05
  16  1.97197
  17  0.83269
  18  7.42427
  19  0.59793
  20  8.78992
  21  1.77232
  22  35.5565
  23  6.79014e-05
  24  95.0695
  25  0.227961
  26  0.170141
Done.

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

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  2.868e+00  1.992e+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.840e-01  1.701e-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.033e+00  2.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.56
Ra Dec: 250.734 39.816
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.11e-07 +/- 7.67e-08
Energy Flux (Fixed Index): 3.61e-05 +/- 2.51e-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) = 6676.0119334
delta logL = 0.0588548240075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6675.99314046
delta logL = 0.077647763851

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4642       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2474       1.0000          .0000       10.000    
     3 'Normalizat'    1.0427       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77857       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=   6675.993     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      236 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4646        29.004        .54319E-02    .33684E-03
   2  Index         2.2478        2.7406        .12174        .13525E-03
   3  Normalizat    1.0427        .87246E-01    .59866E-01    .63828E-05
   4  Prefactor     .77872        .58064E-01    .43438E-01    .12571E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.46464
  Index      = 2.24783
  Normalizat = 1.04265
  Prefactor  = 0.778724
 **********
 **   18 **HESSE 
 **********

 FCN=   6675.993     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .88E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4646        2.2608        .70045E-04   -1.5336    
   2  Index         2.2478        .39481        .46356E-02   -.58288    
   3  Normalizat    1.0427        .21390        .26475E-03   -.91615    
   4  Prefactor     .77872        .16816        .23842E-03   -1.0052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.78424e-12
Minuit parameter uncertainties:
  1  2.26084
  2  0.395398
  3  0.214077
  4  0.16827
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/859128': 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) = 6675.99313768
delta logL = 0.0776505434187

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  3.465e+00  2.261e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  2.248e+00  3.954e-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:  7.787e-01  1.683e-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.043e+00  2.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.22
Ra Dec: 250.734 39.816
Photon Index (Free Index): 2.25 +/- 0.40
Photon Flux (Free Index): 1.00e-07 +/- 5.52e-08
Energy Flux (Free Index): 4.13e-05 +/- 2.58e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/859128/cmap_HighResolution_425692801_425952001_4FGL_J1642.9+3948_daily_bin719.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.11e-07', energy_flux2='4.13e-05', photon_flux_error='7.67e-08', dlogl='7.77e-02', energy_flux='3.61e-05', photon_flux2='1.00e-07', job_status='DONE', time_completed='2021-09-15 08:05:43.858822', photon_index_error2='0.40', photon_index2='2.25', ts='7.56', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='2.58e-05', EG='1.03', time_epoch_completed='1631718343.86', return_code='0', job_id='859128', GAL2='0.78', EG2='1.04', return_code2='0', energy_flux_error='2.51e-05', photon_flux_error2='5.52e-08', ts2='8.22', photon_index='2.40' WHERE bin_id='719' AND source_name='4FGL J1642.9+3948' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 08:05:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 859128: <4FGL_J1642.9+3948_daily_bin719> in cluster <slac> Done

Job <4FGL_J1642.9+3948_daily_bin719> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep 15 07:50:30 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 07:53:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 15 07:53:04 2021
Terminated at Wed Sep 15 08:05:44 2021
Results reported at Wed Sep 15 08:05:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1642.9+3948_daily_bin719 250.734 39.8164 425692801 425952001 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 :                                   742.48 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             366.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            914 sec.

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

