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


Performing analysis on: 4FGL_J0646.7-3913_daily_bin856
RA = 101.678, Dec = -39.2177
tmin = 461203201, tmax = 461462401
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='788177', job_status='RUN', time_executed='2021-08-26 00:56:13.115149', time_epoch_executed='1629964573.12' WHERE source_name='4FGL J0646.7-3913' and cadence='daily' and bin_id='856'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/788177

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/788177/ft1_4FGL_J0646.7-3913_daily_bin856.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/788177/ft2_4FGL_J0646.7-3913_daily_bin856.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/788177/ft1_4FGL_J0646.7-3913_daily_bin856.fits outfile=/scratch/kocevski/788177/ft1_filteredMKT_4FGL_J0646.7-3913_daily_bin856.fits ra=101.678 dec=-39.2177 rad=12.0 tmin=461203201.0 tmax=461462401.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.12
user 3.20
sys 1.88

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/788177/ft2_4FGL_J0646.7-3913_daily_bin856.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/788177/ft1_filteredMKT_4FGL_J0646.7-3913_daily_bin856.fits evtable="EVENTS" outfile="/scratch/kocevski/788177/ft1_filtered_4FGL_J0646.7-3913_daily_bin856.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 2.25
user 0.33
sys 1.83

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/788177/ft1_filtered_4FGL_J0646.7-3913_daily_bin856.fits" evtable="EVENTS" scfile=/scratch/kocevski/788177/ft2_4FGL_J0646.7-3913_daily_bin856.fits sctable="SC_DATA" outfile=/scratch/kocevski/788177/ltcube_461203201_461462401_4FGL_J0646.7-3913_daily_bin856.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/788177/ft2_4FGL_J0646.7-3913_daily_bin856.fits
.....................!
real 13.91
user 11.63
sys 2.23

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/788177/ft1_filtered_4FGL_J0646.7-3913_daily_bin856.fits evtable="EVENTS" scfile=/scratch/kocevski/788177/ft2_4FGL_J0646.7-3913_daily_bin856.fits sctable="SC_DATA" expcube=/scratch/kocevski/788177/ltcube_461203201_461462401_4FGL_J0646.7-3913_daily_bin856.fits outfile=/scratch/kocevski/788177/expmap_461203201_461462401_4FGL_J0646.7-3913_daily_bin856.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/788177/ltcube_461203201_461462401_4FGL_J0646.7-3913_daily_bin856.fits
.....................!
real 195.64
user 187.59
sys 7.66

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/788177/ft1_filtered_4FGL_J0646.7-3913_daily_bin856.fits scfile=/scratch/kocevski/788177/ft2_4FGL_J0646.7-3913_daily_bin856.fits outfile=/scratch/kocevski/788177/cmap_461203201_461462401_4FGL_J0646.7-3913_daily_bin856.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 2.19
user 0.37
sys 1.79

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/788177/ft1_filtered_4FGL_J0646.7-3913_daily_bin856.fits scfile=/scratch/kocevski/788177/ft2_4FGL_J0646.7-3913_daily_bin856.fits outfile=/scratch/kocevski/788177/cmap_HighResolution_461203201_461462401_4FGL_J0646.7-3913_daily_bin856.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 2.18
user 0.39
sys 1.78

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/788177/ft1_filtered_4FGL_J0646.7-3913_daily_bin856.fits evtable="EVENTS" scfile=/scratch/kocevski/788177/ft2_4FGL_J0646.7-3913_daily_bin856.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/788177/Model_4FGL_J0646.7-3913_daily_bin856.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/788177/ft1_filtered_4FGL_J0646.7-3913_daily_bin856.fits.....................!
real 109.99
user 106.28
sys 3.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/788177/ft1_filtered_4FGL_J0646.7-3913_daily_bin856.fits', '/scratch/kocevski/788177/ft2_4FGL_J0646.7-3913_daily_bin856.fits', expMap='/scratch/kocevski/788177/expmap_461203201_461462401_4FGL_J0646.7-3913_daily_bin856.fits', expCube='/scratch/kocevski/788177/ltcube_461203201_461462401_4FGL_J0646.7-3913_daily_bin856.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/788177/Model_4FGL_J0646.7-3913_daily_bin856.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/788177/ft1_filtered_4FGL_J0646.7-3913_daily_bin856.fits
Spacecraft file(s): /scratch/kocevski/788177/ft2_4FGL_J0646.7-3913_daily_bin856.fits
Exposure map: /scratch/kocevski/788177/expmap_461203201_461462401_4FGL_J0646.7-3913_daily_bin856.fits
Exposure cube: /scratch/kocevski/788177/ltcube_461203201_461462401_4FGL_J0646.7-3913_daily_bin856.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/788177/Model_4FGL_J0646.7-3913_daily_bin856.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) = 8406.50068818

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.791       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2420       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3971       1.0000         .10000E-03   10000.    
     7 'norm      '    10.783       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.435       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    51.185       1.0000         .10000E-03   10000.    
    15 'norm      '    2.1390       1.0000         .10000E-03   10000.    
    16 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.613       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.837       1.0000         .10000E-03   10000.    
    19 'norm      '    .10771E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    45.942       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0393       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95471       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=   8406.497     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2471 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.7955       -.15496E-08** at limit **
   2  Prefactor     38.786        33.399       -.58295E-05    .12799E-04
   3  Prefactor     .10000E-03    8.6284       -.26904E-05** at limit **
   4  Prefactor     .10000E-03    26.383       -.39886E-05** at limit **
   5  Prefactor     7.2469        13.928        .11246E-05   -.86062E-05
   6  Prefactor     8.3967        28.663        .41589E-06   -.79830E-05
   7  norm          10.783        17.864        .49618E-06   -.72287E-05
   8  Prefactor     .10000E-03    16.341       -.59323E-05** at limit **
   9  Prefactor     .10000E-03    2.4799       -.21654E-07** at limit **
  10  Prefactor     15.435        7.9217       -.14756E-06   -.69400E-04
  11  norm          .10000E-03    8.8570        .27770E-05** at limit **
  12  Prefactor     .10000E-03    12.430        .10296E-05** at limit **
  13  norm          .10000E-03    20.380        .39818E-05** at limit **
  14  norm          51.183        59.460       -.31691E-05   -.48351E-05
  15  norm          2.1388        4.8879       -.10314E-05   -.62485E-03
  16  norm          .10000E-03    18.617       -.16372E-07** at limit **
  17  Prefactor     40.609        28.989       -.30437E-05   -.80954E-05
  18  Prefactor     21.838        23.368        .91496E-06   -.21730E-05
  19  norm          .10000E-03    6.1491       -.76197E-07** at limit **
  20  norm          45.943        20.454        .11744E-05    .19624E-05
  21  Prefactor     .10000E-03    20.792        .46644E-05** at limit **
  22  Normalizat    1.0392        .23239        .10892E-05   -.25709E-04
  23  Prefactor     .95473        .79412E-01    .43979E-07   -.14625E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 38.7858
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.24695
  Prefactor  = 8.39671
  norm       = 10.7834
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.4347
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 51.1828
  norm       = 2.1388
  norm       = 0.0001
  Prefactor  = 40.6095
  Prefactor  = 21.8377
  norm       = 0.0001
  norm       = 45.9434
  Prefactor  = 0.0001
  Normalizat = 1.03924
  Prefactor  = 0.954726
 **********
 **   18 **HESSE 
 **********

 FCN=   8406.497     FROM HESSE     STATUS=OK           368 CALLS     2839 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.7964        .17445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     38.786        33.258        .64354E-04   -1.4462    
   3  Prefactor     .10000E-03    8.6451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.2469        13.996        .14905E-03   -1.5169    
   6  Prefactor     8.3967        28.690        .13834E-03   -1.5128    
   7  norm          10.783        17.856        .12201E-03   -1.5051    
   8  Prefactor     .10000E-03    16.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.4856        .14099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.435        7.9659        .10195E-03   -1.4922    
  11  norm          .10000E-03    8.8877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    20.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          51.183        59.494        .56056E-04   -1.4276    
  15  norm          2.1388        4.9706        .28183E-03   -1.5415    
  16  norm          .10000E-03    18.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     40.609        28.997        .62899E-04   -1.4433    
  18  Prefactor     21.838        23.375        .85714E-04   -1.4773    
  19  norm          .10000E-03    6.2175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          45.943        20.432        .59154E-04   -1.4351    
  21  Prefactor     .10000E-03    20.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0392        .25647        .41648E-03   -.91727    
  23  Prefactor     .95473        .87894E-01    .16031E-03   -.94254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.62834e-10
Minuit parameter uncertainties:
  1  7.49672e-07
  2  33.2741
  3  1.69503e-05
  4  0.000100601
  5  14.0023
  6  28.7374
  7  17.8645
  8  8.98254e-06
  9  8.33505e-08
  10  7.96649
  11  5.4221e-06
  12  1.1891e-05
  13  1.52479e-06
  14  59.5635
  15  4.97156
  16  4.71709e-06
  17  29.0069
  18  23.3845
  19  3.12525e-05
  20  20.4352
  21  6.70682e-06
  22  0.256773
  23  0.0879073
Done.

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

Extracting fit parameters...

4FGL J0646.7-3913
   Spectrum: PowerLaw
311    Prefactor:  1.543e+01  7.966e+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:  9.547e-01  8.791e-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:  1.039e+00  2.568e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.47
Ra Dec: 101.678 -39.218
Photon Index (Fixed Index): 2.98 +/- 0.00
Photon Flux (Fixed Index): 1.75e-07 +/- 9.01e-08
Energy Flux (Fixed Index): 3.51e-05 +/- 1.81e-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) = 8403.85697602
delta logL = 2.64003111678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8403.80685282
delta logL = 2.69015432337

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2748       1.0000         .10000E-03   10000.    
     2 'Index     '    6.1299       1.0000          .0000       10.000    
     3 'Normalizat'    .93891       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98382       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=   8403.807     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      259 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2719        11.075        .68065E-02    .31943E-03
   2  Index         6.1316        4.0145        .16904        .93345E-04
   3  Normalizat    .93881        .98520E-01    .98121E-01    .17939E-04
   4  Prefactor     .98385        .36699E-01    .46065E-01   -.46984E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.27193
  Index      = 6.13156
  Normalizat = 0.938811
  Prefactor  = 0.983853
 **********
 **   18 **HESSE 
 **********

 FCN=   8403.807     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      292 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2719        16.142        .49309E-04   -1.5406    
   2  Index         6.1316        7.6497        .71809E-02    .22829    
   3  Normalizat    .93881        .23662        .43475E-03   -.95109    
   4  Prefactor     .98385        .82973E-01    .15815E-03   -.93270    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.39022e-07
Minuit parameter uncertainties:
  1  12.1163
  2  5.91153
  3  0.236887
  4  0.0829841
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/788177': 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) = 8403.80685235
delta logL = 2.6901547848

Extracting fit parameters...

4FGL J0646.7-3913
   Spectrum: PowerLaw
311    Prefactor:  2.272e+00  1.212e+01  1.000e-04  1.000e+04 ( 1.000e-11)
312        Index:  6.132e+00  5.912e+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:  9.839e-01  8.298e-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.388e-01  2.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.58
Ra Dec: 101.678 -39.218
Photon Index (Free Index): 6.13 +/- 5.91
Photon Flux (Free Index): 2.67e-07 +/- 1.29e-07
Energy Flux (Free Index): 3.30e-05 +/- 2.30e-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/788177/cmap_HighResolution_461203201_461462401_4FGL_J0646.7-3913_daily_bin856.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.75e-07', energy_flux2='3.30e-05', photon_flux_error='9.01e-08', dlogl='2.69e+00', energy_flux='3.51e-05', photon_flux2='2.67e-07', job_status='DONE', time_completed='2021-08-26 01:09:59.213114', photon_index_error2='5.91', photon_index2='6.13', ts='5.47', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='2.30e-05', EG='1.04', time_epoch_completed='1629965399.21', return_code='0', job_id='788177', GAL2='0.98', EG2='0.94', return_code2='102', energy_flux_error='1.81e-05', photon_flux_error2='1.29e-07', ts2='11.58', photon_index='2.98' WHERE bin_id='856' AND source_name='4FGL J0646.7-3913' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 01:09:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 788177: <4FGL_J0646.7-3913_daily_bin856> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0646.7-3913_daily_bin856 101.678 -39.2177 461203201 461462401 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 :                                   849.31 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             337.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            875 sec.

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

