aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 61 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 = 74146
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0629.3-1959_monthly_bin168
RA = 97.3478, Dec = -19.9999
tmin = 672451201, tmax = 675043201
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='621168', job_status='RUN', time_executed='2022-05-24 02:24:15.381631', time_epoch_executed='1653384255.38' WHERE source_name='4FGL J0629.3-1959' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/621168

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/621168/ft1_4FGL_J0629.3-1959_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/621168/ft2_4FGL_J0629.3-1959_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/621168/ft1_4FGL_J0629.3-1959_monthly_bin168.fits outfile=/scratch/kocevski/621168/ft1_filteredMKT_4FGL_J0629.3-1959_monthly_bin168.fits ra=97.3478 dec=-19.9999 rad=12.0 tmin=672451201.0 tmax=675043201.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 28.70
user 27.89
sys 0.72

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/621168/ft2_4FGL_J0629.3-1959_monthly_bin168.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/621168/ft1_filteredMKT_4FGL_J0629.3-1959_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/621168/ft1_filtered_4FGL_J0629.3-1959_monthly_bin168.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.87
user 0.68
sys 0.18

Number of photons that the gtmktime cut: 18263

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/621168/ft1_filtered_4FGL_J0629.3-1959_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/621168/ft2_4FGL_J0629.3-1959_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/621168/ltcube_672451201_675043201_4FGL_J0629.3-1959_monthly_bin168.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/621168/ft2_4FGL_J0629.3-1959_monthly_bin168.fits
.....................!
real 134.21
user 133.21
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/621168/ft1_filtered_4FGL_J0629.3-1959_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/621168/ft2_4FGL_J0629.3-1959_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/621168/ltcube_672451201_675043201_4FGL_J0629.3-1959_monthly_bin168.fits outfile=/scratch/kocevski/621168/expmap_672451201_675043201_4FGL_J0629.3-1959_monthly_bin168.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/621168/ltcube_672451201_675043201_4FGL_J0629.3-1959_monthly_bin168.fits
.....................!
real 191.62
user 185.63
sys 5.58

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/621168/ft1_filtered_4FGL_J0629.3-1959_monthly_bin168.fits scfile=/scratch/kocevski/621168/ft2_4FGL_J0629.3-1959_monthly_bin168.fits outfile=/scratch/kocevski/621168/cmap_672451201_675043201_4FGL_J0629.3-1959_monthly_bin168.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 0.81
user 0.63
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/621168/ft1_filtered_4FGL_J0629.3-1959_monthly_bin168.fits scfile=/scratch/kocevski/621168/ft2_4FGL_J0629.3-1959_monthly_bin168.fits outfile=/scratch/kocevski/621168/cmap_HighResolution_672451201_675043201_4FGL_J0629.3-1959_monthly_bin168.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.83
user 0.63
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/621168/ft1_filtered_4FGL_J0629.3-1959_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/621168/ft2_4FGL_J0629.3-1959_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/621168/Model_4FGL_J0629.3-1959_monthly_bin168.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/621168/ft1_filtered_4FGL_J0629.3-1959_monthly_bin168.fits.....................!
real 2387.51
user 2380.83
sys 1.67

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/621168/ft1_filtered_4FGL_J0629.3-1959_monthly_bin168.fits', '/scratch/kocevski/621168/ft2_4FGL_J0629.3-1959_monthly_bin168.fits', expMap='/scratch/kocevski/621168/expmap_672451201_675043201_4FGL_J0629.3-1959_monthly_bin168.fits', expCube='/scratch/kocevski/621168/ltcube_672451201_675043201_4FGL_J0629.3-1959_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/621168/Model_4FGL_J0629.3-1959_monthly_bin168.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/621168/ft1_filtered_4FGL_J0629.3-1959_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/621168/ft2_4FGL_J0629.3-1959_monthly_bin168.fits
Exposure map: /scratch/kocevski/621168/expmap_672451201_675043201_4FGL_J0629.3-1959_monthly_bin168.fits
Exposure cube: /scratch/kocevski/621168/ltcube_672451201_675043201_4FGL_J0629.3-1959_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/621168/Model_4FGL_J0629.3-1959_monthly_bin168.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) = 183878.296744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    2.0453       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1115       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6682       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .47861E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1434       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.091       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5836       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1755       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .50055       1.0000         .10000E-03   10000.    
    15 'norm      '    2.0256       1.0000         .10000E-03   10000.    
    16 'norm      '    2.8495       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.884       1.0000         .10000E-03   10000.    
    18 'norm      '    .47731       1.0000         .10000E-03   10000.    
    19 'norm      '    7.9376       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6231       1.0000         .10000E-03   10000.    
    21 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.3511       1.0000         .10000E-03   10000.    
    23 'norm      '    1.1047       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .14825       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .97018       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99738       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   183877.2     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     2774 TOTAL
                     EDM=   .82E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4021         .0000    ** at limit **
   2  norm          2.0452        1.3158         .0000        .19360E-02
   3  Prefactor     4.1112        1.6438         .0000        .12906    
   4  Prefactor     2.6676        1.9870         .0000        .60747E-02
   5  Prefactor     .10002E-03    2.1332         .0000    ** at limit **
   6  Prefactor     6.1431        3.3934         .0000        .86724E-03
   7  Prefactor     14.091        6.8614         .0000       -.20225E-03
   8  Prefactor     2.5833        7.1031         .0000        .98878E-02
   9  Prefactor     .10000E-03    5.0367         .0000    ** at limit **
  10  norm          .10000E-03    .15066         .0000    ** at limit **
  11  Prefactor     .10000E-03    .38659         .0000    ** at limit **
  12  Prefactor     3.1756        1.1383         .0000        .86417E-01
  13  Prefactor     .10000E-03    1.0422         .0000    ** at limit **
  14  norm          .50014        .85917         .0000        .91972    
  15  norm          2.0256        .38990         .0000       -.86493E-03
  16  norm          2.8495        1.9431         .0000        .42207E-02
  17  Prefactor     22.884        1.7188         .0000       -.86826E-03
  18  norm          .47391        1.7858         .0000        .22422    
  19  norm          7.9375        1.9560         .0000        .49971E-01
  20  Prefactor     3.6229        .83460         .0000        .15034E-01
  21  norm          .10000E-03    10.559         .0000    ** at limit **
  22  norm          8.3528        7.6512         .0000        .12721E-02
  23  norm          1.1046        .47107         .0000        .13435E-01
  24  Prefactor     .13939        .53749         .0000        .14542E-01
  25  Normalizat    .97020        .57974E-01     .0000        .71238E-03
  26  Prefactor     .99738        .13453E-01     .0000       -.72077E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.04518
  Prefactor  = 4.11119
  Prefactor  = 2.66762
  Prefactor  = 0.000100022
  Prefactor  = 6.14312
  Prefactor  = 14.0907
  Prefactor  = 2.58334
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.17556
  Prefactor  = 0.0001
  norm       = 0.500143
  norm       = 2.02557
  norm       = 2.84947
  Prefactor  = 22.8843
  norm       = 0.473911
  norm       = 7.93749
  Prefactor  = 3.62288
  norm       = 0.0001
  norm       = 8.35281
  norm       = 1.10459
  Prefactor  = 0.139387
  Normalizat = 0.9702
  Prefactor  = 0.997382
 **********
 **   18 **HESSE 
 **********

 FCN=   183877.2     FROM HESSE     STATUS=OK           490 CALLS     3264 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0452        1.3111        .28911E-03   -1.5422    
   3  Prefactor     4.1112        1.6408        .99405E-03   -1.5302    
   4  Prefactor     2.6676        1.9786        .24951E-03   -1.5381    
   5  Prefactor     .10002E-03    2.0795        .21912       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.1431        3.3786        .16197E-03   -1.5212    
   7  Prefactor     14.091        6.8722        .10670E-03   -1.4957    
   8  Prefactor     2.5833        7.0986        .12695E-02   -1.5386    
   9  Prefactor     .10000E-03    5.1734        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .88128        .31030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.2231        .50478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.1756        1.1150        .11371E-02   -1.5352    
  13  Prefactor     .10000E-03    1.0483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .50014        .84591        .22546E-02   -1.5567    
  15  norm          2.0256        .38974        .11232E-03   -1.5423    
  16  norm          2.8495        1.9253        .24086E-03   -1.5370    
  17  Prefactor     22.884        1.7057        .83733E-04   -1.4751    
  18  norm          .47391        1.8200        .22356E-02   -1.5570    
  19  norm          7.9375        1.9433        .71159E-03   -1.5144    
  20  Prefactor     3.6229        .82738        .16551E-03   -1.5327    
  21  norm          .10000E-03    10.828        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.3528        7.6474        .13872E-03   -1.5130    
  23  norm          1.1046        .46630        .18600E-03   -1.5498    
  24  Prefactor     .13939        .51053        .11267       -1.5633    
  25  Normalizat    .97020        .59238E-01    .52800E-03   -.94036    
  26  Prefactor     .99738        .14032E-01    .13319E-03   -.92817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31398e-07
Minuit parameter uncertainties:
  1  1.62479e-05
  2  1.31107
  3  1.64083
  4  1.97867
  5  0.000428323
  6  3.37867
  7  6.87259
  8  7.10094
  9  4.76567e-05
  10  3.23819e-06
  11  1.93974e-05
  12  1.11502
  13  1.0946e-06
  14  0.845931
  15  0.38974
  16  1.92537
  17  1.70572
  18  1.8202
  19  1.94331
  20  0.827384
  21  9.77937e-05
  22  7.64827
  23  0.466305
  24  0.510548
  25  0.0592417
  26  0.0140324
Done.

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

Extracting fit parameters...

4FGL J0629.3-1959
   Spectrum: LogParabola
274         norm:  5.001e-01  8.459e-01  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:  9.974e-01  1.403e-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:  9.702e-01  5.924e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.42
Ra Dec: 97.348 -20.000
Photon Flux Upper Limit: 1.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.87e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/621168/likelihoodResults_672451201_675043201_4FGL_J0629.3-1959_monthly_bin168.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) = 183876.858799
delta logL = 0.318236799387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 183876.850675
delta logL = 0.326360645064

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .47023       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1533       1.0000          .0000       5.0000    
     3 'Normalizat'    .96148       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99794       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   183876.9     FROM MIGRAD    STATUS=FAILED       108 CALLS      292 TOTAL
                     EDM=   .73E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .46936        19.176        .20780E-02    .50554E-02
   2  alpha         3.1536        2.7438        .71637E-01    .20505E-03
   3  Normalizat    .96153        .34213E-01    .52996E-03    .26498E-04
   4  Prefactor     .99793        .82809E-02    .13315E-03   -.12569E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   183876.9     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      378 TOTAL
                     EDM=   .91E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .46936        19.176        .47469E-04    .50554E-02
   2  alpha         3.1536        2.7438        .22423E-02    .20505E-03
   3  Normalizat    .96153        .34213E-01    .46976E-04    .26498E-04
   4  Prefactor     .99793        .82809E-02    .64696E-05   -.12569E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   183876.9     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      412 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .46936        .93775        .83120E-04    .17507E-04
   2  alpha         3.1536        1.2688        .28655E-02    .79984E-05
   3  Normalizat    .96153        .53532E-01    .10599E-03    .26498E-04
   4  Prefactor     .99793        .13485E-01    .26629E-04   -.12569E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.469355
  alpha      = 3.15362
  Normalizat = 0.961534
  Prefactor  = 0.997935
 **********
 **   18 **HESSE 
 **********

 FCN=   183876.9     FROM HESSE     STATUS=OK            25 CALLS      437 TOTAL
                     EDM=   .32E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .46936        .86757        .33248E-05   -1.5571    
   2  alpha         3.1536        1.1825        .57310E-03    .26452    
   3  Normalizat    .96153        .53511E-01    .10599E-03   -.94330    
   4  Prefactor     .99793        .13480E-01    .26629E-04   -.92798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20187e-13
Minuit parameter uncertainties:
  1  0.867598
  2  1.23584
  3  0.0535141
  4  0.0134796
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/621168': 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) = 183876.850674
delta logL = 0.326361975982

Extracting fit parameters...

4FGL J0629.3-1959
   Spectrum: LogParabola
274         norm:  4.694e-01  8.676e-01  1.000e-04  1.000e+04 ( 1.000e-12)
275        alpha:  3.154e+00  1.236e+00  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:  9.979e-01  1.348e-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:  9.615e-01  5.351e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.10
Ra Dec: 97.348 -20.000
Photon Index (Free Index): 3.15 +/- 1.24
Photon Flux (Free Index): 1.45e-08 +/- 1.59e-08
Energy Flux (Free Index): 2.84e-06 +/- 2.84e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/621168/cmap_HighResolution_672451201_675043201_4FGL_J0629.3-1959_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.87e-06', comment='SUCCESS', energy_flux2='2.84e-06', dlogl='3.26e-01', photon_flux2='1.45e-08', job_status='DONE', time_completed='2022-05-24 06:04:50.333677', photon_index_error2='1.24', photon_index2='3.15', ts='0.42', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.73e-08', energy_flux_error2='2.84e-06', EG='0.97', time_epoch_completed='1653397490.33', return_code='0', job_id='621168', GAL2='1.00', EG2='0.96', return_code2='0', photon_flux_error2='1.59e-08', ts2='1.10', photon_index='2.15' WHERE bin_id='168' AND source_name='4FGL J0629.3-1959' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 06:04:50 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 621168: <4FGL_J0629.3-1959_monthly_bin168> in cluster <slac> Done

Job <4FGL_J0629.3-1959_monthly_bin168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue May 24 02:20:39 2022
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 02:23:05 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 02:23:05 2022
Terminated at Tue May 24 06:07:45 2022
Results reported at Tue May 24 06:07:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0629.3-1959_monthly_bin168 97.3478 -19.9999 672451201 675043201 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 :                                   12948.00 sec.
    Max Memory :                                 639 MB
    Average Memory :                             523.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   13479 sec.
    Turnaround time :                            13626 sec.

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

