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


Performing analysis on: 4FGL_J0646.7-3913_daily_bin1277
RA = 101.678, Dec = -39.2177
tmin = 570326401, tmax = 570585601
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='792971', job_status='RUN', time_executed='2021-08-26 01:12:46.450380', time_epoch_executed='1629965566.45' WHERE source_name='4FGL J0646.7-3913' and cadence='daily' and bin_id='1277'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/792971

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/792971/ft1_4FGL_J0646.7-3913_daily_bin1277.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/792971/ft2_4FGL_J0646.7-3913_daily_bin1277.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/792971/ft1_4FGL_J0646.7-3913_daily_bin1277.fits outfile=/scratch/kocevski/792971/ft1_filteredMKT_4FGL_J0646.7-3913_daily_bin1277.fits ra=101.678 dec=-39.2177 rad=12.0 tmin=570326401.0 tmax=570585601.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 4.98
user 3.23
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/792971/ft1_filtered_4FGL_J0646.7-3913_daily_bin1277.fits" evtable="EVENTS" scfile=/scratch/kocevski/792971/ft2_4FGL_J0646.7-3913_daily_bin1277.fits sctable="SC_DATA" outfile=/scratch/kocevski/792971/ltcube_570326401_570585601_4FGL_J0646.7-3913_daily_bin1277.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/792971/ft2_4FGL_J0646.7-3913_daily_bin1277.fits
.....................!
real 11.82
user 11.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/792971/ft1_filtered_4FGL_J0646.7-3913_daily_bin1277.fits evtable="EVENTS" scfile=/scratch/kocevski/792971/ft2_4FGL_J0646.7-3913_daily_bin1277.fits sctable="SC_DATA" expcube=/scratch/kocevski/792971/ltcube_570326401_570585601_4FGL_J0646.7-3913_daily_bin1277.fits outfile=/scratch/kocevski/792971/expmap_570326401_570585601_4FGL_J0646.7-3913_daily_bin1277.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/792971/ltcube_570326401_570585601_4FGL_J0646.7-3913_daily_bin1277.fits
.....................!
real 191.69
user 185.10
sys 5.64

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/792971/ft1_filtered_4FGL_J0646.7-3913_daily_bin1277.fits scfile=/scratch/kocevski/792971/ft2_4FGL_J0646.7-3913_daily_bin1277.fits outfile=/scratch/kocevski/792971/cmap_570326401_570585601_4FGL_J0646.7-3913_daily_bin1277.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 0.60
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/792971/ft1_filtered_4FGL_J0646.7-3913_daily_bin1277.fits scfile=/scratch/kocevski/792971/ft2_4FGL_J0646.7-3913_daily_bin1277.fits outfile=/scratch/kocevski/792971/cmap_HighResolution_570326401_570585601_4FGL_J0646.7-3913_daily_bin1277.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 0.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/792971/ft1_filtered_4FGL_J0646.7-3913_daily_bin1277.fits evtable="EVENTS" scfile=/scratch/kocevski/792971/ft2_4FGL_J0646.7-3913_daily_bin1277.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/792971/Model_4FGL_J0646.7-3913_daily_bin1277.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/792971/ft1_filtered_4FGL_J0646.7-3913_daily_bin1277.fits.....................!
real 42.18
user 40.79
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.062       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.176       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.586       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25913E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.5223       1.0000         .10000E-03   10000.    
     7 'norm      '    23.532       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    20.869       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.385       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .46531       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10562E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .85888       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0194       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=   2778.432     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2599 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.062        25.094       -.31501E-07   -.19435E-04
   2  Prefactor     19.101        48.166        .46036E-05    .15156E-04
   3  Prefactor     16.600        31.270        .22874E-06    .13458E-04
   4  Prefactor     .10000E-03    851.85       -.27763E-04** at limit **
   5  Prefactor     .10000E-03    13.742        .12918E-05** at limit **
   6  Prefactor     7.5122        40.955        .54942E-06    .21527E-04
   7  norm          23.496        64.075        .29306E-06    .17268E-05
   8  Prefactor     .10000E-03    26.985        .15784E-07** at limit **
   9  Prefactor     .10000E-03    9.7656       -.11500E-06** at limit **
  10  Prefactor     .10000E-03    6.3623       -.32802E-07** at limit **
  11  norm          20.863        35.450        .27529E-06   -.23448E-05
  12  Prefactor     15.364        35.199       -.10192E-06    .42395E-05
  13  norm          .10000E-03    50.640        .82109E-07** at limit **
  14  norm          1.8548        6476.0        .27176E-05    .13538E-07
  15  norm          .10000E-03    6.4223       -.50342E-07** at limit **
  16  norm          .10000E-03    36.408       -.10363E-06** at limit **
  17  Prefactor     .10000E-03    50.418       -.14289E-06** at limit **
  18  Prefactor     .10000E-03    23.513       -.43522E-07** at limit **
  19  norm          .10000E-03    18.706       -.23201E-06** at limit **
  20  norm          .10000E-03    9.9708       -.27738E-07** at limit **
  21  Prefactor     .10000E-03    14.502       -.15514E-07** at limit **
  22  Normalizat    .85899        .37364       -.17608E-05    .17136E-04
  23  Prefactor     1.0192        .13534        .68790E-06   -.50883E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.062
  Prefactor  = 19.1011
  Prefactor  = 16.6001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.51224
  norm       = 23.4964
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.8631
  Prefactor  = 15.3638
  norm       = 0.0001
  norm       = 1.85478
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.858986
  Prefactor  = 1.01923
 **********
 **   18 **HESSE 
 **********

 FCN=   2778.432     FROM HESSE     STATUS=OK           366 CALLS     2965 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.062        25.054        .12632E-03   -1.5073    
   2  Prefactor     19.101        49.663        .91463E-04   -1.4834    
   3  Prefactor     16.600        31.265        .98343E-04   -1.4893    
   4  Prefactor     .10000E-03    912.14        .18304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.5122        40.508        .14622E-03   -1.5160    
   7  norm          23.496        64.031        .82574E-04   -1.4738    
   8  Prefactor     .10000E-03    26.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.8126        .16077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.4477        .12979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          20.863        35.321        .87677E-04   -1.4794    
  12  Prefactor     15.364        35.118        .10211E-03   -1.4924    
  13  norm          .10000E-03    50.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.8548        6488.3        .44513E-03   -1.5436    
  15  norm          .10000E-03    6.4346        .13047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    36.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    50.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    19.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    9.9737        .16258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .85899        .40282        .42479E-03   -.97917    
  23  Prefactor     1.0192        .14630        .14956E-03   -.92091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1559e-11
Minuit parameter uncertainties:
  1  25.0799
  2  49.7709
  3  31.2957
  4  0.000434959
  5  4.38792e-05
  6  34.9252
  7  64.2187
  8  2.36119e-07
  9  2.22219e-06
  10  9.09745e-07
  11  35.3559
  12  35.1656
  13  1.59824e-05
  14  160.934
  15  1.20683e-06
  16  1.3725e-06
  17  9.67076e-07
  18  1.2574e-06
  19  1.03228e-05
  20  7.06472e-07
  21  9.76127e-07
  22  0.404237
  23  0.146355
Done.

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

Extracting fit parameters...

4FGL J0646.7-3913
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  9.097e-07  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.019e+00  1.464e-01  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.590e-01  4.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/792971/likelihoodResults_570326401_570585601_4FGL_J0646.7-3913_daily_bin1277.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): 102
logL (Free Index) = 2778.43272801
delta logL = -0.000739028295811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2778.43198884
delta logL = 1.37117240229e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9628       1.0000          .0000       10.000    
     3 'Normalizat'    .85900       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0192       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2778.432     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      263 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    114.86        .13231E-01** at limit **
   2  Index         2.4199        6.6755        .50000       -.11270E-06
   3  Normalizat    .85899        .38163E-01    .42480E-03    .65514E-04
   4  Prefactor     1.0192        .14636E-01    .14956E-03    .18821E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.41987
  Normalizat = 0.858986
  Prefactor  = 1.01923
 **********
 **   18 **HESSE 
 **********

 FCN=   2778.432     FROM HESSE     STATUS=OK            29 CALLS      292 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.174        .30089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4199        7.0112        .50000       -.54220    
   3  Normalizat    .85899        .37272        .16992E-04   -.97917    
   4  Prefactor     1.0192        .14333        .29913E-04   -.92091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.55297e-10
Minuit parameter uncertainties:
  1  0.000370726
  2  184.795
  3  0.373839
  4  0.143381
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/792971': 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) = 2778.43198684
delta logL = 2.13686007555e-06

Extracting fit parameters...

4FGL J0646.7-3913
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  3.707e-04  1.000e-04  1.000e+04 ( 1.000e-11)
312        Index:  2.420e+00  1.848e+02  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.019e+00  1.434e-01  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.590e-01  3.738e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 101.678 -39.218

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/792971/cmap_HighResolution_570326401_570585601_4FGL_J0646.7-3913_daily_bin1277.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.61e-02', job_status='DONE', photon_flux_upper_limit='2.02e-07', time_completed='2021-08-26 01:21:30.172106', job_id='792971', GAL2='1.02', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1629966090.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.14e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.98' WHERE bin_id='1277' AND source_name='4FGL J0646.7-3913' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 01:21:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0256>
Subject: Job 792971: <4FGL_J0646.7-3913_daily_bin1277> in cluster <slac> Done

Job <4FGL_J0646.7-3913_daily_bin1277> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Aug 26 01:10:23 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 01:10:24 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:24 2021
Terminated at Thu Aug 26 01:21:30 2021
Results reported at Thu Aug 26 01:21:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0646.7-3913_daily_bin1277 101.678 -39.2177 570326401 570585601 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 :                                   516.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   666 sec.
    Turnaround time :                            667 sec.

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

