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


Performing analysis on: 4FGL_J0309.0+1029_daily_bin1667
RA = 47.2617, Dec = 10.4927
tmin = 671414401, tmax = 671673601
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='476133', job_status='RUN', time_executed='2022-04-15 03:11:04.295731', time_epoch_executed='1650017464.3' WHERE source_name='4FGL J0309.0+1029' and cadence='daily' and bin_id='1667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/476133

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/476133/ft1_4FGL_J0309.0+1029_daily_bin1667.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/476133/ft2_4FGL_J0309.0+1029_daily_bin1667.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/476133/ft1_4FGL_J0309.0+1029_daily_bin1667.fits outfile=/scratch/kocevski/476133/ft1_filteredMKT_4FGL_J0309.0+1029_daily_bin1667.fits ra=47.2617 dec=10.4927 rad=12.0 tmin=671414401.0 tmax=671673601.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.55
user 3.25
sys 0.23

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

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

Number of photons that the gtmktime cut: 922

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/476133/ft1_filtered_4FGL_J0309.0+1029_daily_bin1667.fits" evtable="EVENTS" scfile=/scratch/kocevski/476133/ft2_4FGL_J0309.0+1029_daily_bin1667.fits sctable="SC_DATA" outfile=/scratch/kocevski/476133/ltcube_671414401_671673601_4FGL_J0309.0+1029_daily_bin1667.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/476133/ft2_4FGL_J0309.0+1029_daily_bin1667.fits
.....................!
real 14.56
user 14.12
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/476133/ft1_filtered_4FGL_J0309.0+1029_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/476133/ft2_4FGL_J0309.0+1029_daily_bin1667.fits sctable="SC_DATA" expcube=/scratch/kocevski/476133/ltcube_671414401_671673601_4FGL_J0309.0+1029_daily_bin1667.fits outfile=/scratch/kocevski/476133/expmap_671414401_671673601_4FGL_J0309.0+1029_daily_bin1667.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/476133/ltcube_671414401_671673601_4FGL_J0309.0+1029_daily_bin1667.fits
.....................!
real 196.87
user 191.00
sys 5.43

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/476133/ft1_filtered_4FGL_J0309.0+1029_daily_bin1667.fits scfile=/scratch/kocevski/476133/ft2_4FGL_J0309.0+1029_daily_bin1667.fits outfile=/scratch/kocevski/476133/cmap_671414401_671673601_4FGL_J0309.0+1029_daily_bin1667.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/476133/ft1_filtered_4FGL_J0309.0+1029_daily_bin1667.fits scfile=/scratch/kocevski/476133/ft2_4FGL_J0309.0+1029_daily_bin1667.fits outfile=/scratch/kocevski/476133/cmap_HighResolution_671414401_671673601_4FGL_J0309.0+1029_daily_bin1667.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.57
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/476133/ft1_filtered_4FGL_J0309.0+1029_daily_bin1667.fits', '/scratch/kocevski/476133/ft2_4FGL_J0309.0+1029_daily_bin1667.fits', expMap='/scratch/kocevski/476133/expmap_671414401_671673601_4FGL_J0309.0+1029_daily_bin1667.fits', expCube='/scratch/kocevski/476133/ltcube_671414401_671673601_4FGL_J0309.0+1029_daily_bin1667.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/476133/Model_4FGL_J0309.0+1029_daily_bin1667.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  1.000e-04  1.000e+04 ( 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  0.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/476133/ft1_filtered_4FGL_J0309.0+1029_daily_bin1667.fits
Spacecraft file(s): /scratch/kocevski/476133/ft2_4FGL_J0309.0+1029_daily_bin1667.fits
Exposure map: /scratch/kocevski/476133/expmap_671414401_671673601_4FGL_J0309.0+1029_daily_bin1667.fits
Exposure cube: /scratch/kocevski/476133/ltcube_671414401_671673601_4FGL_J0309.0+1029_daily_bin1667.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/476133/Model_4FGL_J0309.0+1029_daily_bin1667.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) = 10196.8422178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.047       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10569E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.590       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .91624       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.901       1.0000         .10000E-03   10000.    
    11 'norm      '    .22762       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.8553       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5063       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9966       1.0000         .10000E-03   10000.    
    16 'norm      '    .13680       1.0000         .10000E-03   10000.    
    17 'norm      '    3.0115       1.0000         .10000E-03   10000.    
    18 'norm      '    4.8169       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11868E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12036E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.326       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.3173       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.3943       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    1.1445       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .84445       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1093       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.

 FCN=   10196.81     FROM MIGRAD    STATUS=CONVERGED    772 CALLS     3966 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.402       -.12026E-05** at limit **
   2  Prefactor     .10000E-03    3.7174       -.19592E-06** at limit **
   3  Prefactor     22.983        56.155       -.10951E-05   -.85796E-04
   4  Prefactor     .10000E-03    8.3212       -.35172E-06** at limit **
   5  Prefactor     .10000E-03    55.802       -.45838E-06** at limit **
   6  Prefactor     14.594        11.185        .47429E-07    .64271E-05
   7  Prefactor     .10000E-03    14.777       -.43878E-06** at limit **
   8  norm          .91630        .53709       -.29899E-07   -.37001E-03
   9  Prefactor     .10000E-03    13.914        .79142E-07** at limit **
  10  Prefactor     18.909        17.097        .63417E-07   -.49948E-05
  11  norm          .23501        6.6435       -.17984E-06    .68919E-04
  12  Prefactor     7.8447        22.689       -.50811E-06   -.29459E-04
  13  Prefactor     .10000E-03    30.445       -.13579E-06** at limit **
  14  Prefactor     1.5025        57.735        .32251E-05    .18189E-04
  15  Prefactor     1.9972        3.2667        .33390E-06    .51675E-04
  16  norm          .11655        5.9166        .13186E-05   -.47696E-03
  17  norm          3.0130        9.2279        .67500E-06    .67866E-05
  18  norm          4.8172        4.3635        .17733E-06   -.13772E-04
  19  Prefactor     .10003E-03    4.4340        .14288E-05** at limit **
  20  norm          .10000E-03    4.0601        .54360E-08** at limit **
  21  Prefactor     .10000E-03    124.23       -.62024E-07** at limit **
  22  Prefactor     .10000E-03    25.685       -.69886E-08** at limit **
  23  Prefactor     21.345        22.241        .11672E-05   -.36149E-04
  24  Prefactor     2.3166        5.9990        .13085E-05    .10969E-03
  25  Prefactor     .10000E-03    7.1116        .10620E-06** at limit **
  26  Prefactor     9.3918        11.393        .14697E-05    .17235E-03
  27  Prefactor     .10000E-03    9.2505        .32820E-07** at limit **
  28  norm          1.1447        3.6553        .22661E-05    .39139E-03
  29  Normalizat    .84433        .23474        .34128E-06   -.12304E-03
  30  Prefactor     1.1094        .79296E-01   -.45980E-06   -.34688E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.9825
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5938
  Prefactor  = 0.0001
  norm       = 0.9163
  Prefactor  = 0.0001
  Prefactor  = 18.9085
  norm       = 0.235014
  Prefactor  = 7.84472
  Prefactor  = 0.0001
  Prefactor  = 1.5025
  Prefactor  = 1.99719
  norm       = 0.116547
  norm       = 3.01301
  norm       = 4.81725
  Prefactor  = 0.00010003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.3446
  Prefactor  = 2.31656
  Prefactor  = 0.0001
  Prefactor  = 9.39175
  Prefactor  = 0.0001
  norm       = 1.1447
  Normalizat = 0.844326
  Prefactor  = 1.10937
 **********
 **   18 **HESSE 
 **********

 FCN=   10196.81     FROM HESSE     STATUS=OK           604 CALLS     4570 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.7319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.983        56.272        .83437E-04   -1.4749    
   4  Prefactor     .10000E-03    8.4145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    57.998        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.594        11.189        .10486E-03   -1.4944    
   7  Prefactor     .10000E-03    15.199        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .91630        .53029        .50923E-04   -1.5517    
   9  Prefactor     .10000E-03    13.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.909        17.174        .92126E-04   -1.4838    
  11  norm          .23501        8.3488        .83318E-01   -1.5611    
  12  Prefactor     7.8447        22.509        .14307E-03   -1.5148    
  13  Prefactor     .10000E-03    30.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5025        58.014        .34867E-03   -1.5463    
  15  Prefactor     1.9972        3.2403        .22657E-03   -1.5425    
  16  norm          .11655        5.9005        .82984E-01   -1.5640    
  17  norm          3.0130        9.1844        .23388E-03   -1.5361    
  18  norm          4.8172        4.3452        .18330E-03   -1.5269    
  19  Prefactor     .10003E-03    12.695        .36142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.0843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    124.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    25.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.345        21.961        .86733E-04   -1.4784    
  24  Prefactor     2.3166        5.9943        .26948E-03   -1.5404    
  25  Prefactor     .10000E-03    7.2728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     9.3918        11.416        .65376E-03   -1.5095    
  27  Prefactor     .10000E-03    9.2887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          1.1447        3.6746        .34484E-03   -1.5494    
  29  Normalizat    .84433        .25344        .48137E-03   -.98445    
  30  Prefactor     1.1094        .86396E-01    .15188E-03   -.89168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65797e-09
Minuit parameter uncertainties:
  1  0.000240217
  2  4.74802e-06
  3  56.4024
  4  4.11472e-06
  5  0.00010586
  6  11.1908
  7  5.3949e-05
  8  0.530291
  9  4.30903e-05
  10  17.1784
  11  2.80131
  12  22.5331
  13  4.40407e-05
  14  18.6915
  15  3.24063
  16  1.65799
  17  9.18874
  18  4.34546
  19  0.0012372
  20  3.08574e-06
  21  0.000136283
  22  3.78849e-06
  23  21.9688
  24  5.99583
  25  4.89607e-06
  26  11.4183
  27  1.20989e-05
  28  3.67527
  29  0.253799
  30  0.0864071
Done.

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

Extracting fit parameters...

4FGL J0309.0+1029
   Spectrum: LogParabola
285         norm:  1.000e-04  3.086e-06  1.000e-04  1.000e+04 ( 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  0.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:  1.109e+00  8.641e-02  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:  8.443e-01  2.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 47.262 10.493
Photon Flux Upper Limit: 8.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/476133/likelihoodResults_671414401_671673601_4FGL_J0309.0+1029_daily_bin1667.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) = 10196.8156927
delta logL = -0.00116690757204

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10196.8145256
delta logL = 1.73928128788e-07

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 'alpha     '    2.2447       1.0000          .0000       5.0000    
     3 'Normalizat'    .84433       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1094       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10196.57     FROM MIGRAD    STATUS=FAILED       153 CALLS      302 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19052        7.9001        .13261E-01    .37884E-02
   2  alpha         5.0000        2.5239        .50000    ** at limit **
   3  Normalizat    .78454        .90737E-01    .48137E-02   -.38492E-04
   4  Prefactor     1.1175        .27969E-01    .15188E-03   -.16753E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10196.57     FROM SIMPLEX   STATUS=UNCHANGED    157 CALLS      459 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19052        7.9001        .64221E-07    .37884E-02
   2  alpha         5.0000        2.5239        .12959E-01** at limit **
   3  Normalizat    .78454        .90737E-01    .56683E-07   -.38492E-04
   4  Prefactor     1.1175        .27969E-01    .24175E-08   -.16753E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10196.57     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      502 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19052        .30621        .55249E-03    .16043E-01
   2  alpha         5.0000        3.5407        .50000    ** at limit **
   3  Normalizat    .78454        .24903        .19255E-03   -.45936E-04
   4  Prefactor     1.1175        .84370E-01    .60750E-05   -.16768E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.190525
  alpha      = 5
  Normalizat = 0.784537
  Prefactor  = 1.11754
 **********
 **   18 **HESSE 
 **********

 FCN=   10196.57     FROM HESSE     STATUS=OK            31 CALLS      533 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19052        .29665        .11050E-03   -1.5621    
   2  alpha         5.0000        3.4927        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .78454        .24933        .77019E-05   -1.0064    
   4  Prefactor     1.1175        .84342E-01    .12150E-05   -.88908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00081e-11
Minuit parameter uncertainties:
  1  0.296653
  2  3.95701e-06
  3  0.249698
  4  0.0843518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/476133': 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) = 10196.570913
delta logL = 0.243612782795

Extracting fit parameters...

4FGL J0309.0+1029
   Spectrum: LogParabola
285         norm:  1.905e-01  2.967e-01  1.000e-04  1.000e+04 ( 1.000e-12)
286        alpha:  5.000e+00  3.957e-06  0.000e+00  5.000e+00 ( 1.000e+00)
287         beta:  1.147e-01  0.000e+00  0.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:  1.118e+00  8.435e-02  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:  7.845e-01  2.497e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 47.262 10.493

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/476133/cmap_HighResolution_671414401_671673601_4FGL_J0309.0+1029_daily_bin1667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.25e-05', job_status='DONE', photon_flux_upper_limit='8.32e-08', time_completed='2022-04-15 03:30:31.545887', job_id='476133', GAL2='1.12', fit_tolerance='1e-08', EG2='0.78', EG='0.84', time_epoch_completed='1650018631.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.44e-01', ts2='0.54', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1667' AND source_name='4FGL J0309.0+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Apr 15 03:30:31 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 476132: <4FGL_J0309.0+1029_daily_bin1667> in cluster <slac> Done

Job <4FGL_J0309.0+1029_daily_bin1667> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Apr 15 00:05:53 2022
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:10:05 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:10:05 2022
Terminated at Fri Apr 15 03:30:21 2022
Results reported at Fri Apr 15 03:30:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0309.0+1029_daily_bin1667 47.2617 10.4927 671414401 671673601 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 :                                   1158.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1216 sec.
    Turnaround time :                            12268 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 476133: <4FGL_J0309.0+1029_daily_bin1667> in cluster <slac> Done

Job <4FGL_J0309.0+1029_daily_bin1667> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Apr 15 00:05:53 2022
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:10:05 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:10:05 2022
Terminated at Fri Apr 15 03:30:32 2022
Results reported at Fri Apr 15 03:30:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0309.0+1029_daily_bin1667 47.2617 10.4927 671414401 671673601 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 :                                   1165.00 sec.
    Max Memory :                                 1003 MB
    Average Memory :                             310.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1226 sec.
    Turnaround time :                            12279 sec.

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

