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


Performing analysis on: 4FGL_J0646.7-3913_daily_bin1315
RA = 101.678, Dec = -39.2177
tmin = 580176001, tmax = 580435201
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='793026', job_status='RUN', time_executed='2021-08-26 01:11:16.943311', time_epoch_executed='1629965476.94' WHERE source_name='4FGL J0646.7-3913' and cadence='daily' and bin_id='1315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/793026

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/793026/ft1_4FGL_J0646.7-3913_daily_bin1315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/793026/ft2_4FGL_J0646.7-3913_daily_bin1315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/793026/ft1_4FGL_J0646.7-3913_daily_bin1315.fits outfile=/scratch/kocevski/793026/ft1_filteredMKT_4FGL_J0646.7-3913_daily_bin1315.fits ra=101.678 dec=-39.2177 rad=12.0 tmin=580176001.0 tmax=580435201.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 6.07
user 4.44
sys 1.06

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/793026/ft2_4FGL_J0646.7-3913_daily_bin1315.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/793026/ft2_4FGL_J0646.7-3913_daily_bin1315.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/793026/ft1_filteredMKT_4FGL_J0646.7-3913_daily_bin1315.fits evtable="EVENTS" outfile="/scratch/kocevski/793026/ft1_filtered_4FGL_J0646.7-3913_daily_bin1315.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 1.82
user 0.35
sys 0.96

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/793026/ft1_filtered_4FGL_J0646.7-3913_daily_bin1315.fits" evtable="EVENTS" scfile=/scratch/kocevski/793026/ft2_4FGL_J0646.7-3913_daily_bin1315.fits sctable="SC_DATA" outfile=/scratch/kocevski/793026/ltcube_580176001_580435201_4FGL_J0646.7-3913_daily_bin1315.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/793026/ft2_4FGL_J0646.7-3913_daily_bin1315.fits
.....................!
real 14.64
user 12.74
sys 1.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/793026/ft1_filtered_4FGL_J0646.7-3913_daily_bin1315.fits evtable="EVENTS" scfile=/scratch/kocevski/793026/ft2_4FGL_J0646.7-3913_daily_bin1315.fits sctable="SC_DATA" expcube=/scratch/kocevski/793026/ltcube_580176001_580435201_4FGL_J0646.7-3913_daily_bin1315.fits outfile=/scratch/kocevski/793026/expmap_580176001_580435201_4FGL_J0646.7-3913_daily_bin1315.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/793026/ltcube_580176001_580435201_4FGL_J0646.7-3913_daily_bin1315.fits
.....................!
real 195.45
user 186.46
sys 5.81

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 Puppis A in ROI with RadialDisk spatial model.
Extended source Vela X in ROI with RadialDisk spatial model.
Added 200 point sources and 2 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 J0646.7-3913 @ 101.678 -39.2177

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/793026/ft1_filtered_4FGL_J0646.7-3913_daily_bin1315.fits scfile=/scratch/kocevski/793026/ft2_4FGL_J0646.7-3913_daily_bin1315.fits outfile=/scratch/kocevski/793026/cmap_580176001_580435201_4FGL_J0646.7-3913_daily_bin1315.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=101.678 yref=-39.2177 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 1.76
user 0.38
sys 0.95

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/793026/ft1_filtered_4FGL_J0646.7-3913_daily_bin1315.fits scfile=/scratch/kocevski/793026/ft2_4FGL_J0646.7-3913_daily_bin1315.fits outfile=/scratch/kocevski/793026/cmap_HighResolution_580176001_580435201_4FGL_J0646.7-3913_daily_bin1315.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=101.678 yref=-39.2177 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 1.65
user 0.38
sys 0.95

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/793026/ft1_filtered_4FGL_J0646.7-3913_daily_bin1315.fits evtable="EVENTS" scfile=/scratch/kocevski/793026/ft2_4FGL_J0646.7-3913_daily_bin1315.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/793026/Model_4FGL_J0646.7-3913_daily_bin1315.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
adding source Puppis A
adding source Vela X
Working on...
/scratch/kocevski/793026/ft1_filtered_4FGL_J0646.7-3913_daily_bin1315.fits.....................!
real 113.58
user 104.15
sys 2.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/793026/ft1_filtered_4FGL_J0646.7-3913_daily_bin1315.fits', '/scratch/kocevski/793026/ft2_4FGL_J0646.7-3913_daily_bin1315.fits', expMap='/scratch/kocevski/793026/expmap_580176001_580435201_4FGL_J0646.7-3913_daily_bin1315.fits', expCube='/scratch/kocevski/793026/ltcube_580176001_580435201_4FGL_J0646.7-3913_daily_bin1315.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/793026/Model_4FGL_J0646.7-3913_daily_bin1315.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0646.7-3913'

4FGL J0646.7-3913
   Spectrum: PowerLaw
311    Prefactor:  1.047e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
312        Index:  2.985e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
313        Scale:  2.835e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/793026/ft1_filtered_4FGL_J0646.7-3913_daily_bin1315.fits
Spacecraft file(s): /scratch/kocevski/793026/ft2_4FGL_J0646.7-3913_daily_bin1315.fits
Exposure map: /scratch/kocevski/793026/expmap_580176001_580435201_4FGL_J0646.7-3913_daily_bin1315.fits
Exposure cube: /scratch/kocevski/793026/ltcube_580176001_580435201_4FGL_J0646.7-3913_daily_bin1315.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/793026/Model_4FGL_J0646.7-3913_daily_bin1315.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) = 8248.00302833

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.923       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.430       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9297       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6068       1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    21.732       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.542       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.470       1.0000         .10000E-03   10000.    
    19 'norm      '    8.4155       1.0000         .10000E-03   10000.    
    20 'norm      '    4.8433       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .92551       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1436       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8247.997     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2490 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.4406       -.44326E-07** at limit **
   2  Prefactor     .10000E-03    24.655       -.19038E-04** at limit **
   3  Prefactor     18.923        17.007       -.51864E-06   -.17865E-04
   4  Prefactor     .10000E-03    19.016        .19013E-04** at limit **
   5  Prefactor     .10000E-03    8.8978        .30510E-05** at limit **
   6  Prefactor     .10000E-03    7.9427       -.26202E-05** at limit **
   7  norm          .10000E-03    12.828       -.52713E-05** at limit **
   8  Prefactor     10.390        31.317       -.45519E-04   -.63519E-05
   9  Prefactor     .10000E-03    7.9591       -.13640E-07** at limit **
  10  Prefactor     6.9297        7.3148       -.31233E-06   -.10883E-03
  11  norm          .10000E-03    7.2791        .61363E-06** at limit **
  12  Prefactor     6.6068        8.6645       -.21621E-06   -.30341E-05
  13  norm          .10000E-03    37.797        .32114E-04** at limit **
  14  norm          .10000E-03    80.935       -.34908E-05** at limit **
  15  norm          .10000E-03    2.9928       -.69755E-07** at limit **
  16  norm          21.736        32.214        .46592E-05    .32557E-04
  17  Prefactor     16.498        39.887       -.63898E-04   -.39752E-05
  18  Prefactor     22.485        31.178        .20794E-04    .85230E-04
  19  norm          8.4160        6.9500       -.34051E-06   -.43306E-04
  20  norm          4.8425        15.698       -.17974E-05   -.63928E-04
  21  Prefactor     .10000E-03    28.260       -.19114E-04** at limit **
  22  Normalizat    .92567        .23468        .56167E-05    .11838E-03
  23  Prefactor     1.1436        .88866E-01    .20659E-05    .11709E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.9229
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.3905
  Prefactor  = 0.0001
  Prefactor  = 6.92968
  norm       = 0.0001
  Prefactor  = 6.60685
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 21.7365
  Prefactor  = 16.498
  Prefactor  = 22.4847
  norm       = 8.41597
  norm       = 4.84254
  Prefactor  = 0.0001
  Normalizat = 0.925673
  Prefactor  = 1.14357
 **********
 **   18 **HESSE 
 **********

 FCN=   8247.997     FROM HESSE     STATUS=OK           366 CALLS     2856 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.4445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.923        17.035        .92073E-04   -1.4838    
   4  Prefactor     .10000E-03    19.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.9626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.9479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    12.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.390        31.361        .12406E-03   -1.5063    
   9  Prefactor     .10000E-03    8.0719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.9297        7.3248        .15240E-03   -1.5181    
  11  norm          .10000E-03    7.2980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6068        8.6614        .15612E-03   -1.5194    
  13  norm          .10000E-03    37.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    81.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.0026        .15343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          21.736        32.232        .85922E-04   -1.4775    
  17  Prefactor     16.498        39.985        .98474E-04   -1.4895    
  18  Prefactor     22.485        31.226        .84500E-04   -1.4759    
  19  norm          8.4160        6.9294        .13819E-03   -1.5128    
  20  norm          4.8425        15.666        .18279E-03   -1.5268    
  21  Prefactor     .10000E-03    28.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .92567        .25072        .45356E-03   -.95564    
  23  Prefactor     1.1436        .95884E-01    .15966E-03   -.88086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2233e-10
Minuit parameter uncertainties:
  1  4.37592e-06
  2  6.82486e-05
  3  17.0391
  4  1.87026e-05
  5  3.9962e-05
  6  1.14331e-05
  7  2.23324e-05
  8  31.4108
  9  5.99216e-05
  10  7.3257
  11  1.79315e-05
  12  8.66306
  13  4.86954e-05
  14  0.000115415
  15  1.08023e-05
  16  32.2578
  17  40.0502
  18  31.2486
  19  6.93006
  20  15.6797
  21  1.53402e-05
  22  0.251041
  23  0.0958988
Done.

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

Extracting fit parameters...

4FGL J0646.7-3913
   Spectrum: PowerLaw
311    Prefactor:  6.930e+00  7.326e+00  1.000e-04  1.000e+04 ( 1.000e-11)
312        Index:  2.985e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
313        Scale:  2.835e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  1.144e+00  9.590e-02  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  9.257e-01  2.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.22
Ra Dec: 101.678 -39.218
Photon Index (Fixed Index): 2.98 +/- 0.00
Photon Flux (Fixed Index): 7.85e-08 +/- 8.28e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.67e-05

TS (Fixed Index): 1.22
Ra Dec: 101.678 -39.218
Photon Flux Upper Limit: 2.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.92e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/793026/likelihoodResults_580176001_580435201_4FGL_J0646.7-3913_daily_bin1315.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) = 8246.27314615
delta logL = 1.72399763552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8246.22799575
delta logL = 1.76914803146

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8246.228     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      265 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2792        9.3325        .98009E-02   -.32067E-03
   2  Index         6.4604        7.6033        .21111        .37533E-04
   3  Normalizat    .80115        .80806E-01    .10909        .13899E-04
   4  Prefactor     1.1715        .31387E-01    .35343E-01    .55759E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.27922
  Index      = 6.46038
  Normalizat = 0.801146
  Prefactor  = 1.17149
 **********
 **   18 **HESSE 
 **********

 FCN=   8246.228     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      298 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2792        17.419        .51988E-04   -1.5482    
   2  Index         6.4604        8.1910        .97285E-02    .29640    
   3  Normalizat    .80115        .24111        .48370E-03   -1.0003    
   4  Prefactor     1.1715        .87760E-01    .15789E-03   -.87213    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.07552e-10
Minuit parameter uncertainties:
  1  9.4438
  2  8.08137
  3  0.241436
  4  0.0877705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/793026': 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): 102
logL (Free Index) = 8246.22799534
delta logL = 1.76914844597

Extracting fit parameters...

4FGL J0646.7-3913
   Spectrum: PowerLaw
311    Prefactor:  1.279e+00  9.444e+00  1.000e-04  1.000e+04 ( 1.000e-11)
312        Index:  6.460e+00  8.081e+00  0.000e+00  1.000e+01 (-1.000e+00)
313        Scale:  2.835e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  1.171e+00  8.777e-02  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  8.011e-01  2.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.29
Ra Dec: 101.678 -39.218
Photon Index (Free Index): 6.46 +/- 8.08
Photon Flux (Free Index): 1.99e-07 +/- 1.35e-07
Energy Flux (Free Index): 2.43e-05 +/- 2.23e-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/793026/cmap_HighResolution_580176001_580435201_4FGL_J0646.7-3913_daily_bin1315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.92e-02', comment='SUCCESS', photon_flux='7.85e-08', energy_flux2='2.43e-05', photon_flux_error='8.28e-08', dlogl='1.77e+00', energy_flux='1.58e-05', photon_flux2='1.99e-07', job_status='DONE', time_completed='2021-08-26 01:27:02.096694', photon_index_error2='8.08', photon_index2='6.46', ts='1.22', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='2.40e-07', energy_flux_error2='2.23e-05', EG='0.93', time_epoch_completed='1629966422.1', return_code='0', job_id='793026', GAL2='1.17', EG2='0.80', return_code2='102', energy_flux_error='1.67e-05', photon_flux_error2='1.35e-07', ts2='5.29', photon_index='2.98' WHERE bin_id='1315' AND source_name='4FGL J0646.7-3913' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 01:27:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 793026: <4FGL_J0646.7-3913_daily_bin1315> in cluster <slac> Done

Job <4FGL_J0646.7-3913_daily_bin1315> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Aug 26 01:10:27 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 01:10:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 26 01:10:34 2021
Terminated at Thu Aug 26 01:27:03 2021
Results reported at Thu Aug 26 01:27:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0646.7-3913_daily_bin1315 101.678 -39.2177 580176001 580435201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0646.7-3913 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   940.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             334.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            996 sec.

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

