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


Performing analysis on: 4FGL_J0629.3-1959_daily_bin1387
RA = 97.3478, Dec = -19.9999
tmin = 598838401, tmax = 599097601
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='460380', job_status='RUN', time_executed='2021-08-25 06:32:12.369965', time_epoch_executed='1629898332.37' WHERE source_name='4FGL J0629.3-1959' and cadence='daily' and bin_id='1387'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460380

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460380/ft1_4FGL_J0629.3-1959_daily_bin1387.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460380/ft2_4FGL_J0629.3-1959_daily_bin1387.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460380/ft1_4FGL_J0629.3-1959_daily_bin1387.fits outfile=/scratch/kocevski/460380/ft1_filteredMKT_4FGL_J0629.3-1959_daily_bin1387.fits ra=97.3478 dec=-19.9999 rad=12.0 tmin=598838401.0 tmax=599097601.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.21
user 2.64
sys 0.55

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/460380/ft2_4FGL_J0629.3-1959_daily_bin1387.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/460380/ft2_4FGL_J0629.3-1959_daily_bin1387.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/460380/ft1_filteredMKT_4FGL_J0629.3-1959_daily_bin1387.fits evtable="EVENTS" outfile="/scratch/kocevski/460380/ft1_filtered_4FGL_J0629.3-1959_daily_bin1387.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.90
user 0.36
sys 0.53

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460380/ft1_filtered_4FGL_J0629.3-1959_daily_bin1387.fits" evtable="EVENTS" scfile=/scratch/kocevski/460380/ft2_4FGL_J0629.3-1959_daily_bin1387.fits sctable="SC_DATA" outfile=/scratch/kocevski/460380/ltcube_598838401_599097601_4FGL_J0629.3-1959_daily_bin1387.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/460380/ft2_4FGL_J0629.3-1959_daily_bin1387.fits
.....................!
real 16.08
user 15.27
sys 0.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460380/ft1_filtered_4FGL_J0629.3-1959_daily_bin1387.fits evtable="EVENTS" scfile=/scratch/kocevski/460380/ft2_4FGL_J0629.3-1959_daily_bin1387.fits sctable="SC_DATA" expcube=/scratch/kocevski/460380/ltcube_598838401_599097601_4FGL_J0629.3-1959_daily_bin1387.fits outfile=/scratch/kocevski/460380/expmap_598838401_599097601_4FGL_J0629.3-1959_daily_bin1387.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/460380/ltcube_598838401_599097601_4FGL_J0629.3-1959_daily_bin1387.fits
.....................!
real 190.17
user 185.22
sys 4.56

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 153 point sources and 0 extended sources

Setting source of interest to:
4FGL J0629.3-1959 @ 97.3478 -19.9999

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/460380/ft1_filtered_4FGL_J0629.3-1959_daily_bin1387.fits scfile=/scratch/kocevski/460380/ft2_4FGL_J0629.3-1959_daily_bin1387.fits outfile=/scratch/kocevski/460380/cmap_598838401_599097601_4FGL_J0629.3-1959_daily_bin1387.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=97.3478 yref=-19.9999 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.16
user 0.37
sys 0.55

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460380/ft1_filtered_4FGL_J0629.3-1959_daily_bin1387.fits scfile=/scratch/kocevski/460380/ft2_4FGL_J0629.3-1959_daily_bin1387.fits outfile=/scratch/kocevski/460380/cmap_HighResolution_598838401_599097601_4FGL_J0629.3-1959_daily_bin1387.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=97.3478 yref=-19.9999 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.93
user 0.37
sys 0.55

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/460380/ft1_filtered_4FGL_J0629.3-1959_daily_bin1387.fits evtable="EVENTS" scfile=/scratch/kocevski/460380/ft2_4FGL_J0629.3-1959_daily_bin1387.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/460380/Model_4FGL_J0629.3-1959_daily_bin1387.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/460380/ft1_filtered_4FGL_J0629.3-1959_daily_bin1387.fits.....................!
real 119.21
user 111.08
sys 1.71

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/460380/ft1_filtered_4FGL_J0629.3-1959_daily_bin1387.fits', '/scratch/kocevski/460380/ft2_4FGL_J0629.3-1959_daily_bin1387.fits', expMap='/scratch/kocevski/460380/expmap_598838401_599097601_4FGL_J0629.3-1959_daily_bin1387.fits', expCube='/scratch/kocevski/460380/ltcube_598838401_599097601_4FGL_J0629.3-1959_daily_bin1387.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/460380/Model_4FGL_J0629.3-1959_daily_bin1387.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0629.3-1959'

4FGL J0629.3-1959
   Spectrum: LogParabola
274         norm:  3.772e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
275        alpha:  2.148e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
276         beta:  7.038e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
277           Eb:  8.389e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/460380/ft1_filtered_4FGL_J0629.3-1959_daily_bin1387.fits
Spacecraft file(s): /scratch/kocevski/460380/ft2_4FGL_J0629.3-1959_daily_bin1387.fits
Exposure map: /scratch/kocevski/460380/expmap_598838401_599097601_4FGL_J0629.3-1959_daily_bin1387.fits
Exposure cube: /scratch/kocevski/460380/ltcube_598838401_599097601_4FGL_J0629.3-1959_daily_bin1387.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/460380/Model_4FGL_J0629.3-1959_daily_bin1387.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) = 7447.06046595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    27.506       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.660       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.9984       1.0000         .10000E-03   10000.    
     5 'Prefactor '    128.10       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    73.306       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.585       1.0000         .10000E-03   10000.    
    14 'norm      '    4.4465       1.0000         .10000E-03   10000.    
    15 'norm      '    3.0956       1.0000         .10000E-03   10000.    
    16 'norm      '    4.4623       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13023E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    14.345       1.0000         .10000E-03   10000.    
    19 'norm      '    42.989       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0547       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1493       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87987       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7446.473     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     3156 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    39.715       -.68880E-05** at limit **
   2  norm          27.506        16.349        .12517E-06   -.42367E-05
   3  Prefactor     11.662        11.717       -.28888E-06   -.29861E-03
   4  Prefactor     8.9993        13.590        .50469E-06   -.21656E-03
   5  Prefactor     128.11        122.07        .10540E-04    .14383E-04
   6  Prefactor     .10000E-03    6.0882        .22822E-07** at limit **
   7  Prefactor     73.318        56.808        .91619E-05    .25661E-04
   8  Prefactor     .10000E-03    21.680       -.50243E-06** at limit **
   9  Prefactor     .10000E-03    43.909        .90329E-05** at limit **
  10  norm          .10000E-03    2.0711       -.21183E-07** at limit **
  11  Prefactor     .10000E-03    4.5523       -.31171E-07** at limit **
  12  Prefactor     .10000E-03    1.6986       -.17372E-07** at limit **
  13  Prefactor     25.589        28.368        .19036E-05   -.66408E-05
  14  norm          4.4463        5.3552       -.17980E-05   -.11481E-03
  15  norm          3.0949        1.7746        .19170E-07   -.12207E-04
  16  norm          4.4534        10.793        .26238E-06   -.19187E-04
  17  Prefactor     .10000E-03    9.4225        .10586E-06** at limit **
  18  norm          14.346        14.844        .40497E-06   -.11383E-03
  19  norm          42.988        17.064        .10307E-06    .26346E-04
  20  Prefactor     3.0542        2.5943        .50973E-06   -.22838E-02
  21  norm          .10000E-03    15.036        .10115E-06** at limit **
  22  norm          .10000E-03    21.567        .60607E-06** at limit **
  23  norm          .10000E-03    3.3516        .45030E-07** at limit **
  24  Prefactor     .10000E-03    67.794       -.27261E-05** at limit **
  25  Normalizat    1.1490        .29832       -.70120E-05    .76518E-04
  26  Prefactor     .87990        .68935E-01    .70872E-06   -.22673E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 27.5063
  Prefactor  = 11.6618
  Prefactor  = 8.99932
  Prefactor  = 128.114
  Prefactor  = 0.0001
  Prefactor  = 73.3181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.5893
  norm       = 4.44625
  norm       = 3.09487
  norm       = 4.45337
  Prefactor  = 0.0001
  norm       = 14.3465
  norm       = 42.9877
  Prefactor  = 3.05424
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14904
  Prefactor  = 0.879896
 **********
 **   18 **HESSE 
 **********

 FCN=   7446.473     FROM HESSE     STATUS=OK           454 CALLS     3610 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    39.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          27.506        16.348        .76387E-04   -1.4659    
   3  Prefactor     11.662        11.827        .58660E-03   -1.5025    
   4  Prefactor     8.9993        13.668        .66806E-03   -1.5108    
   5  Prefactor     128.11        122.08        .35571E-04   -1.3439    
   6  Prefactor     .10000E-03    6.0901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     73.318        56.940        .46892E-04   -1.3993    
   8  Prefactor     .10000E-03    21.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    44.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.0740        .12127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.5534        .17981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.6995        .10983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     25.589        28.444        .79196E-04   -1.4696    
  14  norm          4.4463        5.3610        .19096E-03   -1.5286    
  15  norm          3.0949        1.7733        .83702E-04   -1.5356    
  16  norm          4.4534        10.724        .19062E-03   -1.5286    
  17  Prefactor     .10000E-03    9.6924        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.346        14.887        .52875E-03   -1.4950    
  19  norm          42.988        18.763        .61143E-04   -1.4396    
  20  Prefactor     3.0542        6.3994        .11606E-02   -1.5358    
  21  norm          .10000E-03    15.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    21.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.4217        .15411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    69.712        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1490        .31295        .48839E-03   -.88193    
  26  Prefactor     .87990        .72996E-01    .14653E-03   -.96847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.36087e-09
Minuit parameter uncertainties:
  1  9.11865e-05
  2  16.3506
  3  11.829
  4  13.6723
  5  122.322
  6  8.8732e-07
  7  56.982
  8  2.16561e-05
  9  0.000206302
  10  9.56158e-06
  11  3.69618e-06
  12  5.29334e-06
  13  28.4591
  14  5.36157
  15  1.77333
  16  10.7289
  17  5.10392e-05
  18  14.8904
  19  18.7654
  20  6.4008
  21  5.07292e-06
  22  1.98415e-05
  23  2.80149e-06
  24  8.72079e-06
  25  0.313464
  26  0.0730038
Done.

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

Extracting fit parameters...

4FGL J0629.3-1959
   Spectrum: LogParabola
274         norm:  4.446e+00  5.362e+00  1.000e-04  1.000e+04 ( 1.000e-12)
275        alpha:  2.148e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
276         beta:  7.038e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
277           Eb:  8.389e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  8.799e-01  7.300e-02  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  1.149e+00  3.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 97.348 -20.000
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 3.19e-08 +/- 3.84e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.75e-05

TS (Fixed Index): 1.31
Ra Dec: 97.348 -20.000
Photon Flux Upper Limit: 1.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.40e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/460380/likelihoodResults_598838401_599097601_4FGL_J0629.3-1959_daily_bin1387.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) = 7446.37988387
delta logL = 0.0933613263451

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7446.379182
delta logL = 0.0940631975718

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5461       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7885       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1548       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87966       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7446.379     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      238 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5480        6.9867        .47202E-02    .10149E-03
   2  alpha         1.7888        .82864        .43485       -.20798E-04
   3  Normalizat    1.1549        .24701        .10992        .22192E-04
   4  Prefactor     .87954        .66061E-01    .33164E-01   -.11934E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.54798
  alpha      = 1.78885
  Normalizat = 1.15492
  Prefactor  = 0.879544
 **********
 **   18 **HESSE 
 **********

 FCN=   7446.379     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5480        5.4183        .18881E-03   -1.5281    
   2  alpha         1.7888        .77593        .22589E-01   -.28845    
   3  Normalizat    1.1549        .25653        .48737E-03   -.88008    
   4  Prefactor     .87954        .68963E-01    .14655E-03   -.96860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.51674e-10
Minuit parameter uncertainties:
  1  5.41889
  2  0.79017
  3  0.256806
  4  0.0689698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460380': 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) = 7446.37918033
delta logL = 0.0940648665483

Extracting fit parameters...

4FGL J0629.3-1959
   Spectrum: LogParabola
274         norm:  4.548e+00  5.419e+00  1.000e-04  1.000e+04 ( 1.000e-12)
275        alpha:  1.789e+00  7.902e-01  0.000e+00  5.000e+00 ( 1.000e+00)
276         beta:  7.038e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
277           Eb:  8.389e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  8.795e-01  6.897e-02  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  1.155e+00  2.568e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.50
Ra Dec: 97.348 -20.000
Photon Index (Free Index): 1.79 +/- 0.79
Photon Flux (Free Index): 2.23e-08 +/- 3.31e-08
Energy Flux (Free Index): 2.01e-05 +/- 2.97e-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/460380/cmap_HighResolution_598838401_599097601_4FGL_J0629.3-1959_daily_bin1387.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.40e-05', comment='SUCCESS', photon_flux='3.19e-08', energy_flux2='2.01e-05', photon_flux_error='3.84e-08', dlogl='9.41e-02', energy_flux='1.45e-05', photon_flux2='2.23e-08', job_status='DONE', time_completed='2021-08-25 06:45:33.351938', photon_index_error2='0.79', photon_index2='1.79', ts='1.31', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='2.97e-05', EG='1.15', time_epoch_completed='1629899133.35', return_code='0', job_id='460380', GAL2='0.88', EG2='1.15', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='3.31e-08', ts2='1.50', photon_index='2.15' WHERE bin_id='1387' AND source_name='4FGL J0629.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 25 06:45:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 460380: <4FGL_J0629.3-1959_daily_bin1387> in cluster <slac> Done

Job <4FGL_J0629.3-1959_daily_bin1387> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Aug 25 06:30:42 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 25 06:30:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 25 06:30:44 2021
Terminated at Wed Aug 25 06:45:33 2021
Results reported at Wed Aug 25 06:45:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0629.3-1959_daily_bin1387 97.3478 -19.9999 598838401 599097601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0629.3-1959 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   799.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            891 sec.

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

