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


Performing analysis on: 4FGL_J0629.3-1959_daily_bin1266
RA = 97.3478, Dec = -19.9999
tmin = 567475201, tmax = 567734401
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='460195', job_status='RUN', time_executed='2021-08-25 06:31:29.243846', time_epoch_executed='1629898289.24' WHERE source_name='4FGL J0629.3-1959' and cadence='daily' and bin_id='1266'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460195

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460195/ft1_4FGL_J0629.3-1959_daily_bin1266.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460195/ft2_4FGL_J0629.3-1959_daily_bin1266.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460195/ft1_4FGL_J0629.3-1959_daily_bin1266.fits outfile=/scratch/kocevski/460195/ft1_filteredMKT_4FGL_J0629.3-1959_daily_bin1266.fits ra=97.3478 dec=-19.9999 rad=12.0 tmin=567475201.0 tmax=567734401.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.64
user 2.24
sys 1.32

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/460195/ft2_4FGL_J0629.3-1959_daily_bin1266.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/460195/ft1_filteredMKT_4FGL_J0629.3-1959_daily_bin1266.fits evtable="EVENTS" outfile="/scratch/kocevski/460195/ft1_filtered_4FGL_J0629.3-1959_daily_bin1266.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.72
user 0.34
sys 1.33

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460195/ft1_filtered_4FGL_J0629.3-1959_daily_bin1266.fits" evtable="EVENTS" scfile=/scratch/kocevski/460195/ft2_4FGL_J0629.3-1959_daily_bin1266.fits sctable="SC_DATA" outfile=/scratch/kocevski/460195/ltcube_567475201_567734401_4FGL_J0629.3-1959_daily_bin1266.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/460195/ft2_4FGL_J0629.3-1959_daily_bin1266.fits
.....................!
real 14.77
user 13.11
sys 1.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460195/ft1_filtered_4FGL_J0629.3-1959_daily_bin1266.fits evtable="EVENTS" scfile=/scratch/kocevski/460195/ft2_4FGL_J0629.3-1959_daily_bin1266.fits sctable="SC_DATA" expcube=/scratch/kocevski/460195/ltcube_567475201_567734401_4FGL_J0629.3-1959_daily_bin1266.fits outfile=/scratch/kocevski/460195/expmap_567475201_567734401_4FGL_J0629.3-1959_daily_bin1266.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/460195/ltcube_567475201_567734401_4FGL_J0629.3-1959_daily_bin1266.fits
.....................!
real 193.00
user 185.97
sys 6.37

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/460195/ft1_filtered_4FGL_J0629.3-1959_daily_bin1266.fits scfile=/scratch/kocevski/460195/ft2_4FGL_J0629.3-1959_daily_bin1266.fits outfile=/scratch/kocevski/460195/cmap_567475201_567734401_4FGL_J0629.3-1959_daily_bin1266.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.67
user 0.37
sys 1.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460195/ft1_filtered_4FGL_J0629.3-1959_daily_bin1266.fits scfile=/scratch/kocevski/460195/ft2_4FGL_J0629.3-1959_daily_bin1266.fits outfile=/scratch/kocevski/460195/cmap_HighResolution_567475201_567734401_4FGL_J0629.3-1959_daily_bin1266.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 1.74
user 0.37
sys 1.22

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/460195/ft1_filtered_4FGL_J0629.3-1959_daily_bin1266.fits evtable="EVENTS" scfile=/scratch/kocevski/460195/ft2_4FGL_J0629.3-1959_daily_bin1266.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/460195/Model_4FGL_J0629.3-1959_daily_bin1266.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/460195/ft1_filtered_4FGL_J0629.3-1959_daily_bin1266.fits....................!
real 98.84
user 95.63
sys 2.67

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    43.558       1.0000         .10000E-03   10000.    
     2 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.022       1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.219       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5959       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.648       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .56235E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.8821       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.7216       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.695       1.0000         .10000E-03   10000.    
    14 'norm      '    2.3614       1.0000         .10000E-03   10000.    
    15 'norm      '    4.4020       1.0000         .10000E-03   10000.    
    16 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.1350       1.0000         .10000E-03   10000.    
    18 'norm      '    38.268       1.0000         .10000E-03   10000.    
    19 'norm      '    17.905       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10722E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.7073       1.0000         .10000E-03   10000.    
    24 'Prefactor '    31.640       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0808       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .83224       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=   6675.987     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     3558 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          43.598        48.047        .55417E-06   -.33228E-04
   2  norm          .10000E-03    9.8600       -.53651E-07** at limit **
   3  Prefactor     .10000E-03    9.9136       -.29692E-05** at limit **
   4  Prefactor     26.025        17.013       -.16020E-06    .61916E-04
   5  Prefactor     29.358        113.33       -.25884E-05    .50419E-05
   6  Prefactor     4.5943        28.518       -.37469E-05    .17281E-04
   7  Prefactor     12.655        40.901       -.53331E-05   -.43298E-05
   8  Prefactor     .10000E-03    38.206        .91917E-06** at limit **
   9  Prefactor     .10000E-03    24.970       -.16440E-07** at limit **
  10  norm          .10006E-03    83.006       -.52770E-05** at limit **
  11  Prefactor     5.8769        16.543       -.19593E-05   -.15518E-06
  12  Prefactor     9.7142        8.4280       -.13586E-05   -.34558E-04
  13  Prefactor     26.690        29.815       -.16731E-05    .16548E-04
  14  norm          2.3640        6.2442       -.10805E-05   -.66229E-04
  15  norm          4.4015        2.4983       -.24267E-07    .21422E-04
  16  norm          .10000E-03    9.3085       -.17153E-06** at limit **
  17  Prefactor     3.1354        7.9845       -.17652E-05   -.24972E-04
  18  norm          38.263        20.225       -.48503E-06    .95035E-05
  19  norm          17.921        12.850        .99903E-06    .15873E-03
  20  Prefactor     .10006E-03    9.7227        .11922E-05** at limit **
  21  norm          .10000E-03    38.523        .60480E-06** at limit **
  22  norm          .10000E-03    27.415        .68134E-06** at limit **
  23  norm          3.7093        3.6294        .13654E-07   -.63523E-04
  24  Prefactor     31.660        27.601        .73390E-06   -.33786E-04
  25  Normalizat    1.0813        .31914        .54377E-05    .31612E-04
  26  Prefactor     .83212        .70467E-01   -.10213E-05    .40587E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 43.5979
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.0251
  Prefactor  = 29.3581
  Prefactor  = 4.59432
  Prefactor  = 12.6549
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100056
  Prefactor  = 5.87686
  Prefactor  = 9.71422
  Prefactor  = 26.6899
  norm       = 2.364
  norm       = 4.40151
  norm       = 0.0001
  Prefactor  = 3.13545
  norm       = 38.2628
  norm       = 17.9206
  Prefactor  = 0.000100057
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.70929
  Prefactor  = 31.6602
  Normalizat = 1.08128
  Prefactor  = 0.832118
 **********
 **   18 **HESSE 
 **********

 FCN=   6675.987     FROM HESSE     STATUS=OK           472 CALLS     4030 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          43.598        48.012        .30372E-03   -1.4386    
   2  norm          .10000E-03    9.8803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     26.025        16.996        .78530E-04   -1.4687    
   5  Prefactor     29.358        113.40        .74119E-04   -1.4624    
   6  Prefactor     4.5943        28.021        .18776E-03   -1.5279    
   7  Prefactor     12.655        41.269        .11263E-03   -1.4996    
   8  Prefactor     .10000E-03    38.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10006E-03    9.0918        .63044E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.8769        16.494        .16558E-03   -1.5223    
  12  Prefactor     9.7142        8.7052        .12852E-03   -1.5085    
  13  Prefactor     26.690        29.875        .77535E-04   -1.4674    
  14  norm          2.3640        6.2328        .26669E-03   -1.5400    
  15  norm          4.4015        2.4884        .90565E-04   -1.5288    
  16  norm          .10000E-03    9.3170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.1354        7.9067        .22896E-03   -1.5354    
  18  norm          38.263        20.237        .64791E-04   -1.4470    
  19  norm          17.921        12.127        .94653E-04   -1.4861    
  20  Prefactor     .10006E-03    32.359        .25522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    38.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    27.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.7093        3.6326        .14719E-03   -1.5323    
  24  Prefactor     31.660        27.627        .35617E-03   -1.4582    
  25  Normalizat    1.0813        .32849        .49034E-03   -.90355    
  26  Prefactor     .83212        .72685E-01    .14114E-03   -.98555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88881e-09
Minuit parameter uncertainties:
  1  48.0551
  2  2.49189e-05
  3  9.95283e-05
  4  16.9992
  5  114.247
  6  22.7082
  7  41.362
  8  5.61623e-05
  9  4.45664e-05
  10  0.00143153
  11  16.507
  12  8.70635
  13  29.8913
  14  6.23447
  15  2.48846
  16  4.81973e-05
  17  7.90937
  18  20.2404
  19  12.1289
  20  0.00270585
  21  4.12757e-05
  22  6.72341e-06
  23  3.63286
  24  27.6377
  25  0.329106
  26  0.0726933
Done.

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

Extracting fit parameters...

4FGL J0629.3-1959
   Spectrum: LogParabola
274         norm:  2.364e+00  6.234e+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.321e-01  7.269e-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.081e+00  3.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/460195/likelihoodResults_567475201_567734401_4FGL_J0629.3-1959_daily_bin1266.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) = 6675.95407332
delta logL = 0.0327484642403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6675.95317902
delta logL = 0.0336427663678

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5793       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7922       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0849       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83163       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=   6675.953     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      221 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5809        8.5526        .63529E-02    .47295E-03
   2  alpha         1.7918        1.3718        .43459       -.28273E-04
   3  Normalizat    1.0849        .25326        .11043        .18043E-04
   4  Prefactor     .83165        .65250E-01    .31945E-01   -.14461E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.58088
  alpha      = 1.79175
  Normalizat = 1.0849
  Prefactor  = 0.831651
 **********
 **   18 **HESSE 
 **********

 FCN=   6675.953     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5809        5.9411        .25412E-03   -1.5387    
   2  alpha         1.7918        1.1796        .33438E-01   -.28723    
   3  Normalizat    1.0849        .26195        .48966E-03   -.90238    
   4  Prefactor     .83165        .67738E-01    .14116E-03   -.98572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60269e-09
Minuit parameter uncertainties:
  1  5.94241
  2  1.23329
  3  0.262264
  4  0.067745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460195': 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) = 6675.95317883
delta logL = 0.0336429591252

Extracting fit parameters...

4FGL J0629.3-1959
   Spectrum: LogParabola
274         norm:  2.581e+00  5.942e+00  1.000e-04  1.000e+04 ( 1.000e-12)
275        alpha:  1.792e+00  1.233e+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:  8.317e-01  6.775e-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.085e+00  2.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
Ra Dec: 97.348 -20.000

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/460195/cmap_HighResolution_567475201_567734401_4FGL_J0629.3-1959_daily_bin1266.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.43e-05', job_status='DONE', photon_flux_upper_limit='1.41e-07', time_completed='2021-08-25 06:44:17.879484', job_id='460195', GAL2='0.83', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1629899057.88', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='3.36e-02', ts2='0.24', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1266' AND source_name='4FGL J0629.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 25 06:44:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 460195: <4FGL_J0629.3-1959_daily_bin1266> in cluster <slac> Done

Job <4FGL_J0629.3-1959_daily_bin1266> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Aug 25 06:30:28 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 25 06:30:30 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:30 2021
Terminated at Wed Aug 25 06:44:19 2021
Results reported at Wed Aug 25 06:44:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0629.3-1959_daily_bin1266 97.3478 -19.9999 567475201 567734401 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 :                                   783.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            831 sec.

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

