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 134 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0309.0+1029_daily_bin1740
RA = 47.2617, Dec = 10.4927
tmin = 690336001, tmax = 690595201
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='823060', job_status='RUN', time_executed='2022-11-20 00:15:21.109549', time_epoch_executed='1668932121.11' WHERE source_name='4FGL J0309.0+1029' and cadence='daily' and bin_id='1740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/823060

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/823060/ft1_4FGL_J0309.0+1029_daily_bin1740.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/823060/ft2_4FGL_J0309.0+1029_daily_bin1740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/823060/ft1_4FGL_J0309.0+1029_daily_bin1740.fits outfile=/scratch/kocevski/823060/ft1_filteredMKT_4FGL_J0309.0+1029_daily_bin1740.fits ra=47.2617 dec=10.4927 rad=12.0 tmin=690336001.0 tmax=690595201.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 2.94
user 2.75
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/823060/ft2_4FGL_J0309.0+1029_daily_bin1740.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/823060/ft2_4FGL_J0309.0+1029_daily_bin1740.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/823060/ft1_filteredMKT_4FGL_J0309.0+1029_daily_bin1740.fits evtable="EVENTS" outfile="/scratch/kocevski/823060/ft1_filtered_4FGL_J0309.0+1029_daily_bin1740.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.50
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 81

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/823060/ft1_filtered_4FGL_J0309.0+1029_daily_bin1740.fits" evtable="EVENTS" scfile=/scratch/kocevski/823060/ft2_4FGL_J0309.0+1029_daily_bin1740.fits sctable="SC_DATA" outfile=/scratch/kocevski/823060/ltcube_690336001_690595201_4FGL_J0309.0+1029_daily_bin1740.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/823060/ft2_4FGL_J0309.0+1029_daily_bin1740.fits
.....................!
real 14.69
user 14.29
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/823060/ft1_filtered_4FGL_J0309.0+1029_daily_bin1740.fits evtable="EVENTS" scfile=/scratch/kocevski/823060/ft2_4FGL_J0309.0+1029_daily_bin1740.fits sctable="SC_DATA" expcube=/scratch/kocevski/823060/ltcube_690336001_690595201_4FGL_J0309.0+1029_daily_bin1740.fits outfile=/scratch/kocevski/823060/expmap_690336001_690595201_4FGL_J0309.0+1029_daily_bin1740.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/823060/ltcube_690336001_690595201_4FGL_J0309.0+1029_daily_bin1740.fits
.....................!
real 192.22
user 187.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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J0309.0+1029 @ 47.2617 10.4927

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/823060/ft1_filtered_4FGL_J0309.0+1029_daily_bin1740.fits scfile=/scratch/kocevski/823060/ft2_4FGL_J0309.0+1029_daily_bin1740.fits outfile=/scratch/kocevski/823060/cmap_690336001_690595201_4FGL_J0309.0+1029_daily_bin1740.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=47.2617 yref=10.4927 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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/823060/ft1_filtered_4FGL_J0309.0+1029_daily_bin1740.fits scfile=/scratch/kocevski/823060/ft2_4FGL_J0309.0+1029_daily_bin1740.fits outfile=/scratch/kocevski/823060/cmap_HighResolution_690336001_690595201_4FGL_J0309.0+1029_daily_bin1740.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=47.2617 yref=10.4927 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/823060/ft1_filtered_4FGL_J0309.0+1029_daily_bin1740.fits evtable="EVENTS" scfile=/scratch/kocevski/823060/ft2_4FGL_J0309.0+1029_daily_bin1740.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/823060/Model_4FGL_J0309.0+1029_daily_bin1740.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/823060/ft1_filtered_4FGL_J0309.0+1029_daily_bin1740.fits.....................!
real 24.08
user 22.69
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/823060/ft1_filtered_4FGL_J0309.0+1029_daily_bin1740.fits', '/scratch/kocevski/823060/ft2_4FGL_J0309.0+1029_daily_bin1740.fits', expMap='/scratch/kocevski/823060/expmap_690336001_690595201_4FGL_J0309.0+1029_daily_bin1740.fits', expCube='/scratch/kocevski/823060/ltcube_690336001_690595201_4FGL_J0309.0+1029_daily_bin1740.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/823060/Model_4FGL_J0309.0+1029_daily_bin1740.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0309.0+1029'

4FGL J0309.0+1029
   Spectrum: LogParabola
285         norm:  4.627e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
286        alpha:  2.226e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
287         beta:  1.147e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  7.342e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/823060/ft1_filtered_4FGL_J0309.0+1029_daily_bin1740.fits
Spacecraft file(s): /scratch/kocevski/823060/ft2_4FGL_J0309.0+1029_daily_bin1740.fits
Exposure map: /scratch/kocevski/823060/expmap_690336001_690595201_4FGL_J0309.0+1029_daily_bin1740.fits
Exposure cube: /scratch/kocevski/823060/ltcube_690336001_690595201_4FGL_J0309.0+1029_daily_bin1740.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/823060/Model_4FGL_J0309.0+1029_daily_bin1740.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) = 1060.5539357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.034       1.0000          .0000       .10000E+07
     2 'Prefactor '    266.64       1.0000          .0000       .10000E+07
     3 'Prefactor '    .27322E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .47405E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .78083E-01   1.0000          .0000       .10000E+07
     6 'norm      '    .65834       1.0000          .0000       .10000E+07
     7 'Prefactor '    .48911       1.0000          .0000       .10000E+07
     8 'Prefactor '    .30957E-02   1.0000          .0000       .10000E+07
     9 'norm      '    .17121E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .23303E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    3.3170       1.0000          .0000       .10000E+07
    12 'Prefactor '    .72802E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.9823       1.0000          .0000       .10000E+07
    14 'norm      '    .31285E-01   1.0000          .0000       .10000E+07
    15 'norm      '    36.797       1.0000          .0000       .10000E+07
    16 'norm      '    5.2970       1.0000          .0000       .10000E+07
    17 'Prefactor '    .95963E-04   1.0000          .0000       .10000E+07
    18 'norm      '    40.720       1.0000          .0000       .10000E+07
    19 'Prefactor '    .41453E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    .32279E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    .28229       1.0000          .0000       .10000E+07
    22 'Prefactor '    .57599       1.0000          .0000       .10000E+07
    23 'Prefactor '    .17466       1.0000          .0000       .10000E+07
    24 'norm      '    .12862E-01   1.0000          .0000       .10000E+07
    25 'Normalizat'    .42831       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .88957       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1060.518     FROM MIGRAD    STATUS=CONVERGED    240 CALLS     2395 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.906        55.617       -.32749E-06    .11521E-01
   2  Prefactor     240.72        207.95       -.59717E-06    .88489E-02
   3  Prefactor      .0000        24.361        .72226E-07** at limit **
   4  Prefactor      .0000        22.243        .29181E-07** at limit **
   5  Prefactor     .39999E-02    214.41       -.20878E-05** at limit **
   6  norm          .64484        2.4114        .17456E-06   -.87730E-03
   7  Prefactor     .20154E-03    78.098       -.15493E-05** at limit **
   8  Prefactor      .0000        12.325        .89284E-08** at limit **
   9  norm           .0000        28.486       -.14384E-06** at limit **
  10  Prefactor      .0000        54.795       -.15289E-07** at limit **
  11  Prefactor     9.4113        954.86        .72937E-05    .44185E-02
  12  Prefactor     .14992E-04    73.568       -.18673E-05** at limit **
  13  Prefactor     6.9772        16.795       -.38081E-06    .64547E-03
  14  norm           .0000        54.957        .24867E-07** at limit **
  15  norm          36.847        3.5262       -.88392E-08   -.92152E-02
  16  norm          5.2141        17.214       -.15990E-06    .43089E-03
  17  Prefactor      .0000        9.7300        .50949E-07** at limit **
  18  norm          41.405        8.5507        .13148E-07   -.46132E-02
  19  Prefactor     .55511E-10    52.400        .12950E-06** at limit **
  20  Prefactor     .55511E-10    163.45        .69448E-06** at limit **
  21  Prefactor     .31641E-08    244.57        .12287E-05** at limit **
  22  Prefactor     .42188E-08    365.55        .19355E-06** at limit **
  23  Prefactor     .10937E-03    38.242        .75334E-06** at limit **
  24  norm          .85171E-06    71.967        .70484E-06** at limit **
  25  Normalizat    .42218        .54676        .65615E-05   -.12271E-05
  26  Prefactor     .89210        .26629       -.12873E-05   -.12742E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9061
  Prefactor  = 240.716
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0.00399987
  norm       = 0.644843
  Prefactor  = 0.000201536
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 9.41127
  Prefactor  = 1.49916e-05
  Prefactor  = 6.97718
  norm       = 0
  norm       = 36.8472
  norm       = 5.21405
  Prefactor  = 0
  norm       = 41.4049
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 3.16414e-09
  Prefactor  = 4.21885e-09
  Prefactor  = 0.00010937
  norm       = 8.51708e-07
  Normalizat = 0.422178
  Prefactor  = 0.892098
 **********
 **   18 **HESSE 
 **********

 FCN=   1060.518     FROM HESSE     STATUS=OK           516 CALLS     2911 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.906        59.517        .28851E-03   -1.5628    
   2  Prefactor     240.72        209.43        .61248E-04   -1.5398    
   3  Prefactor      .0000        24.293        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        22.396        .15645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .39999E-02    210.72        .10350E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .64484        4.4762        .64157E-03   -1.5692    
   7  Prefactor     .20154E-03    291.54        .79813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        12.338        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        28.388        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        54.674        .16828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.4113        1181.7        .55557E-03   -1.5647    
  12  Prefactor     .14992E-04    88.137        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.9772        17.604        .37942E-03   -1.5655    
  14  norm           .0000        54.957        .16383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          36.847        38.504        .16487E-03   -1.5587    
  16  norm          5.2141        18.389        .43646E-03   -1.5662    
  17  Prefactor      .0000        9.7028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          41.405        46.670        .15672E-03   -1.5579    
  19  Prefactor     .55511E-10    51.528        .15899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-10    39.550        .11250E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .31641E-08    245.12        .10463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .42188E-08    398.57        .71407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10937E-03    94.390        .12245E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .85171E-06    74.929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .42218        .54182        .11373       -1.1617    
  26  Prefactor     .89210        .25267        .44872E-01   -.96418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09011e-06
Minuit parameter uncertainties:
  1  59.5195
  2  209.434
  3  7.46699e-06
  4  6.86404e-06
  5  1.8362
  6  3.39792
  7  0.484813
  8  9.16423e-06
  9  5.16625e-06
  10  2.50976e-05
  11  210.959
  12  0.0727007
  13  17.604
  14  1.54674e-05
  15  38.5043
  16  18.389
  17  3.24734e-06
  18  46.6706
  19  7.77044e-05
  20  7.69045e-05
  21  0.00175877
  22  0.00260004
  23  0.203211
  24  0.0159771
  25  0.548766
  26  0.253005
Done.

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

Extracting fit parameters...

4FGL J0309.0+1029
   Spectrum: LogParabola
285         norm:  4.140e+01  4.667e+01  0.000e+00  1.000e+06 ( 1.000e-12)
286        alpha:  2.226e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
287         beta:  1.147e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  7.342e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  8.921e-01  2.530e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  4.222e-01  5.488e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.94
Ra Dec: 47.262 10.493
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 2.29e-07 +/- 2.58e-07
Energy Flux (Fixed Index): 8.92e-05 +/- 1.01e-04

TS (Fixed Index): 1.94
Ra Dec: 47.262 10.493
Photon Flux Upper Limit: 9.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.55e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/823060/likelihoodResults_690336001_690595201_4FGL_J0309.0+1029_daily_bin1740.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) = 1060.20317544
delta logL = 0.314515982361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1060.19967299
delta logL = 0.318018429012

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4757       1.0000          .0000       .10000E+07
     2 'alpha     '    4.2600       1.0000          .0000       5.0000    
     3 'Normalizat'    .20047       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95597       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+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=   1060.200     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      278 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4195        102.57        .69819E-05   -.35009E-03
   2  alpha         4.2648        4.4804        .98732E-03   -.63388E-05
   3  Normalizat    .19996        .65457        .71221E-03    .17675E-04
   4  Prefactor     .95620        .29942        .15584E-03    .12150E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.41951
  alpha      = 4.26483
  Normalizat = 0.199957
  Prefactor  = 0.956198
 **********
 **   18 **HESSE 
 **********

 FCN=   1060.200     FROM HESSE     STATUS=OK            23 CALLS      301 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4195        62.031        .27928E-06   -1.5650    
   2  alpha         4.2648        4.6208        .39493E-04    .78374    
   3  Normalizat    .19996        .60555        .28488E-04   -1.2941    
   4  Prefactor     .95620        .27869        .31169E-04   -.94204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.55862e-11
Minuit parameter uncertainties:
  1  45.7071
  2  3.92809
  3  0.627428
  4  0.279109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/823060': 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) = 1060.19967218
delta logL = 0.318019239112

Extracting fit parameters...

4FGL J0309.0+1029
   Spectrum: LogParabola
285         norm:  8.420e+00  4.571e+01  0.000e+00  1.000e+06 ( 1.000e-12)
286        alpha:  4.265e+00  3.928e+00  0.000e+00  5.000e+00 ( 1.000e+00)
287         beta:  1.147e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  7.342e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  9.562e-01  2.791e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  2.000e-01  6.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.65
Ra Dec: 47.262 10.493
Photon Index (Free Index): 4.26 +/- 3.93
Photon Flux (Free Index): 9.14e-07 +/- 1.25e-06
Energy Flux (Free Index): 1.37e-04 +/- 1.28e-04

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/823060/cmap_HighResolution_690336001_690595201_4FGL_J0309.0+1029_daily_bin1740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.55e-04', comment='SUCCESS', photon_flux='2.29e-07', energy_flux2='1.37e-04', photon_flux_error='2.58e-07', dlogl='3.18e-01', energy_flux='8.92e-05', photon_flux2='9.14e-07', job_status='DONE', time_completed='2022-11-20 00:21:29.636936', photon_index_error2='3.93', photon_index2='4.26', ts='1.94', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='9.10e-07', energy_flux_error2='1.28e-04', EG='0.42', time_epoch_completed='1668932489.64', return_code='0', job_id='823060', GAL2='0.96', EG2='0.20', return_code2='0', energy_flux_error='1.01e-04', photon_flux_error2='1.25e-06', ts2='2.65', photon_index='2.23' WHERE bin_id='1740' AND source_name='4FGL J0309.0+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Nov 20 00:21:29 PST 2022

20', return_code2='0', energy_flux_error='1.01e-04', photon_flux_error2='1.25e-06', ts2='2.65', photon_index='2.23' WHERE bin_id='1740' AND source_name='4FGL J0309.0+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Nov 20 00:20:42 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 823061: <4FGL_J0309.0+1029_daily_bin1740> in cluster <slac> Done

Job <4FGL_J0309.0+1029_daily_bin1740> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Nov 20 00:05:26 2022
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:12:59 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:12:59 2022
Terminated at Sun Nov 20 00:20:43 2022
Results reported at Sun Nov 20 00:20:43 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0309.0+1029_daily_bin1740 47.2617 10.4927 690336001 690595201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0309.0+1029 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   370.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   464 sec.
    Turnaround time :                            917 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 823060: <4FGL_J0309.0+1029_daily_bin1740> in cluster <slac> Done

Job <4FGL_J0309.0+1029_daily_bin1740> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Nov 20 00:05:26 2022
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:12:56 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:12:56 2022
Terminated at Sun Nov 20 00:21:30 2022
Results reported at Sun Nov 20 00:21:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0309.0+1029_daily_bin1740 47.2617 10.4927 690336001 690595201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0309.0+1029 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   371.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   513 sec.
    Turnaround time :                            964 sec.

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

