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


Performing analysis on: 4FGL_J0309.0+1029_daily_bin1499
RA = 47.2617, Dec = 10.4927
tmin = 627868801, tmax = 628128001
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='218342', job_status='RUN', time_executed='2021-08-17 18:22:05.833127', time_epoch_executed='1629249725.83' WHERE source_name='4FGL J0309.0+1029' and cadence='daily' and bin_id='1499'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/218342

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/218342/ft1_4FGL_J0309.0+1029_daily_bin1499.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/218342/ft2_4FGL_J0309.0+1029_daily_bin1499.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/218342/ft1_4FGL_J0309.0+1029_daily_bin1499.fits outfile=/scratch/kocevski/218342/ft1_filteredMKT_4FGL_J0309.0+1029_daily_bin1499.fits ra=47.2617 dec=10.4927 rad=12.0 tmin=627868801.0 tmax=628128001.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 5.87
user 2.29
sys 2.62

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/218342/ft2_4FGL_J0309.0+1029_daily_bin1499.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/218342/ft1_filteredMKT_4FGL_J0309.0+1029_daily_bin1499.fits evtable="EVENTS" outfile="/scratch/kocevski/218342/ft1_filtered_4FGL_J0309.0+1029_daily_bin1499.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 5.95
user 0.34
sys 2.57

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/218342/ft1_filtered_4FGL_J0309.0+1029_daily_bin1499.fits" evtable="EVENTS" scfile=/scratch/kocevski/218342/ft2_4FGL_J0309.0+1029_daily_bin1499.fits sctable="SC_DATA" outfile=/scratch/kocevski/218342/ltcube_627868801_628128001_4FGL_J0309.0+1029_daily_bin1499.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/218342/ft2_4FGL_J0309.0+1029_daily_bin1499.fits
.....................!
real 21.09
user 14.35
sys 3.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/218342/ft1_filtered_4FGL_J0309.0+1029_daily_bin1499.fits evtable="EVENTS" scfile=/scratch/kocevski/218342/ft2_4FGL_J0309.0+1029_daily_bin1499.fits sctable="SC_DATA" expcube=/scratch/kocevski/218342/ltcube_627868801_628128001_4FGL_J0309.0+1029_daily_bin1499.fits outfile=/scratch/kocevski/218342/expmap_627868801_628128001_4FGL_J0309.0+1029_daily_bin1499.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/218342/ltcube_627868801_628128001_4FGL_J0309.0+1029_daily_bin1499.fits
.....................!
real 211.07
user 186.05
sys 8.47

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/218342/ft1_filtered_4FGL_J0309.0+1029_daily_bin1499.fits scfile=/scratch/kocevski/218342/ft2_4FGL_J0309.0+1029_daily_bin1499.fits outfile=/scratch/kocevski/218342/cmap_627868801_628128001_4FGL_J0309.0+1029_daily_bin1499.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 4.61
user 0.40
sys 2.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/218342/ft1_filtered_4FGL_J0309.0+1029_daily_bin1499.fits scfile=/scratch/kocevski/218342/ft2_4FGL_J0309.0+1029_daily_bin1499.fits outfile=/scratch/kocevski/218342/cmap_HighResolution_627868801_628128001_4FGL_J0309.0+1029_daily_bin1499.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 3.19
user 0.41
sys 2.50

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/218342/ft1_filtered_4FGL_J0309.0+1029_daily_bin1499.fits', '/scratch/kocevski/218342/ft2_4FGL_J0309.0+1029_daily_bin1499.fits', expMap='/scratch/kocevski/218342/expmap_627868801_628128001_4FGL_J0309.0+1029_daily_bin1499.fits', expCube='/scratch/kocevski/218342/ltcube_627868801_628128001_4FGL_J0309.0+1029_daily_bin1499.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/218342/Model_4FGL_J0309.0+1029_daily_bin1499.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/218342/ft1_filtered_4FGL_J0309.0+1029_daily_bin1499.fits
Spacecraft file(s): /scratch/kocevski/218342/ft2_4FGL_J0309.0+1029_daily_bin1499.fits
Exposure map: /scratch/kocevski/218342/expmap_627868801_628128001_4FGL_J0309.0+1029_daily_bin1499.fits
Exposure cube: /scratch/kocevski/218342/ltcube_627868801_628128001_4FGL_J0309.0+1029_daily_bin1499.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/218342/Model_4FGL_J0309.0+1029_daily_bin1499.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) = 802.998564527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    399.75       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .46529       1.0000         .10000E-03   10000.    
     6 'Prefactor '    75.814       1.0000         .10000E-03   10000.    
     7 'Prefactor '    75.070       1.0000         .10000E-03   10000.    
     8 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    118.56       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    16.795       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10386E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.061       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13069E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.757       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10634E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    98.620       1.0000         .10000E-03   10000.    
    28 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .67613       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=   802.9775     FROM MIGRAD    STATUS=CONVERGED   1389 CALLS     4526 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    81.083        .18142E-02** at limit **
   2  Prefactor     .10000E-03    23.514        .13428E-02** at limit **
   3  Prefactor     400.04        443.88        .10209E-03   -.12681E-04
   4  Prefactor     .10000E-03    34.504        .16269E-02** at limit **
   5  Prefactor     .10044E-03    569.26        .12354    ** at limit **
   6  Prefactor     75.894        88.531        .23058E-03   -.26372E-04
   7  Prefactor     75.078        95.859        .23171E-03    .13063E-05
   8  norm          .10000E-03    3.0879        .48526E-03** at limit **
   9  Prefactor     .10000E-03    185.66        .18142E-02** at limit **
  10  Prefactor     .10000E-03    32.118        .15689E-02** at limit **
  11  norm          .10000E-03    39.057        .17311E-02** at limit **
  12  Prefactor     118.50        225.24        .18478E-03    .53682E-05
  13  Prefactor     .10000E-03    178.59        .18142E-02** at limit **
  14  Prefactor     .10000E-03    326.15        .18142E-02** at limit **
  15  Prefactor     .10000E-03    14.176        .10397E-02** at limit **
  16  norm          .10000E-03    92.703        .18142E-02** at limit **
  17  norm          .10000E-03    17.478        .11575E-02** at limit **
  18  norm          16.797        19.339        .97730E-04    .18234E-04
  19  Prefactor     .10000E-03    8.7172        .81632E-03** at limit **
  20  norm          .10000E-03    78.099        .18142E-02** at limit **
  21  Prefactor     .10002E-03    1386.0        .18142E-02** at limit **
  22  Prefactor     21.040        35.396        .87277E-04   -.17748E-05
  23  Prefactor     .10000E-03    98.056        .18142E-02** at limit **
  24  Prefactor     22.749        30.361        .83967E-04    .80391E-05
  25  Prefactor     .10000E-03    57.699        .18142E-02** at limit **
  26  Prefactor     .10000E-03    213.32        .18142E-02** at limit **
  27  Prefactor     98.609        58.103        .40480E-04    .77655E-05
  28  norm          .10000E-03    12.916        .99503E-03** at limit **
  29  Normalizat    .10000E-01    .69741        .11331E-01** at limit **
  30  Prefactor     .67625        .14872        .13401E-03    .26195E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 400.042
  Prefactor  = 0.0001
  Prefactor  = 0.000100439
  Prefactor  = 75.8939
  Prefactor  = 75.0784
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 118.503
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 16.7973
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 21.0401
  Prefactor  = 0.0001
  Prefactor  = 22.7492
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 98.6087
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.676253
 **********
 **   18 **HESSE 
 **********

 FCN=   802.9775     FROM HESSE     STATUS=OK           566 CALLS     5092 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    81.083        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.514        .26857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     400.04        443.89        .20419E-04   -1.1681    
   4  Prefactor     .10000E-03    34.504        .32538E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10044E-03    525.05        .12911       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     75.894        88.357        .92231E-05   -1.3963    
   7  Prefactor     75.078        95.870        .92684E-05   -1.3973    
   8  norm          .10000E-03    3.0879        .97051E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    185.66        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    32.118        .31378E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    39.057        .34622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     118.50        225.26        .73911E-05   -1.3526    
  13  Prefactor     .10000E-03    178.59        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    326.15        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.177        .20793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    92.703        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    17.478        .23150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.797        19.339        .39092E-05   -1.4888    
  19  Prefactor     .10000E-03    8.7173        .16326E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    78.105        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10002E-03    1386.0        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.040        35.393        .34911E-05   -1.4790    
  23  Prefactor     .10000E-03    98.060        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     22.749        30.361        .33587E-05   -1.4754    
  25  Prefactor     .10000E-03    57.699        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    213.32        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     98.609        58.103        .80959E-05   -1.3719    
  28  norm          .10000E-03    12.916        .19901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .69777        .22663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .67625        .14864        .26802E-04   -1.0447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22484e-11
Minuit parameter uncertainties:
  1  3.99593e-05
  2  6.8859e-06
  3  447.779
  4  5.28019e-06
  5  0.0306499
  6  88.5106
  7  96.0685
  8  1.27486e-06
  9  0.000149438
  10  7.72395e-06
  11  1.23278e-05
  12  226.921
  13  0.000440305
  14  6.73697e-05
  15  6.85839e-07
  16  0.000119381
  17  6.12815e-06
  18  19.3461
  19  9.89557e-07
  20  0.000159864
  21  0.0110792
  22  35.4279
  23  5.90172e-05
  24  30.3811
  25  6.514e-06
  26  0.000780034
  27  58.1366
  28  1.7827e-07
  29  2.48323e-06
  30  0.148726
Done.

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

Extracting fit parameters...

4FGL J0309.0+1029
   Spectrum: LogParabola
285         norm:  1.000e-04  1.599e-04  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:  6.763e-01  1.487e-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:  1.000e-02  2.483e-06  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.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.25e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/218342/likelihoodResults_627868801_628128001_4FGL_J0309.0+1029_daily_bin1499.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) = 802.977544053
delta logL = -6.70820933237e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 802.977482818
delta logL = -5.8470394606e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10708E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9504       1.0000          .0000       5.0000    
     3 'Normalizat'    .10007E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67626       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=   802.9775     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      287 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1823.8        .16229E-01** at limit **
   2  alpha         1.9626        3.7944        .16812        .11631E-07
   3  Normalizat    .10000E-01    .33445E-01    .11322E-01** at limit **
   4  Prefactor     .67625        .26351E-01    .13400E-03   -.64429E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.96259
  Normalizat = 0.01
  Prefactor  = 0.676249
 **********
 **   18 **HESSE 
 **********

 FCN=   802.9775     FROM HESSE     STATUS=OK            23 CALLS      310 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    90.466        .25775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9626        3.4812        .67246E-02   -.21665    
   3  Normalizat    .10000E-01    .69784        .22643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .67625        .12151        .26801E-04   -1.0447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0253e-09
Minuit parameter uncertainties:
  1  0.000716321
  2  708.944
  3  6.17608e-06
  4  0.121556
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/218342': 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) = 802.977476902
delta logL = 6.81703795635e-08

Extracting fit parameters...

4FGL J0309.0+1029
   Spectrum: LogParabola
285         norm:  1.000e-04  7.163e-04  1.000e-04  1.000e+04 ( 1.000e-12)
286        alpha:  1.963e+00  7.089e+02  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:  6.762e-01  1.216e-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:  1.000e-02  6.176e-06  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/218342/cmap_HighResolution_627868801_628128001_4FGL_J0309.0+1029_daily_bin1499.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.25e-04', job_status='DONE', photon_flux_upper_limit='8.33e-07', time_completed='2021-08-17 18:29:52.152110', job_id='218342', GAL2='0.68', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629250192.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='6.82e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1499' AND source_name='4FGL J0309.0+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 18:29:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 218342: <4FGL_J0309.0+1029_daily_bin1499> in cluster <slac> Done

Job <4FGL_J0309.0+1029_daily_bin1499> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Aug 17 18:17:11 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 18:17:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 17 18:17:23 2021
Terminated at Tue Aug 17 18:29:53 2021
Results reported at Tue Aug 17 18:29:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0309.0+1029_daily_bin1499 47.2617 10.4927 627868801 628128001 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 :                                   458.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             218.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            762 sec.

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

