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


Performing analysis on: 4FGL_J0309.0+1029_daily_bin1215
RA = 47.2617, Dec = 10.4927
tmin = 554256001, tmax = 554515201
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='214262', job_status='RUN', time_executed='2021-08-17 18:13:54.940427', time_epoch_executed='1629249234.94' WHERE source_name='4FGL J0309.0+1029' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/214262

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/214262/ft1_4FGL_J0309.0+1029_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/214262/ft2_4FGL_J0309.0+1029_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/214262/ft1_4FGL_J0309.0+1029_daily_bin1215.fits outfile=/scratch/kocevski/214262/ft1_filteredMKT_4FGL_J0309.0+1029_daily_bin1215.fits ra=47.2617 dec=10.4927 rad=12.0 tmin=554256001.0 tmax=554515201.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.99
user 3.80
sys 0.99

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/214262/ft1_filtered_4FGL_J0309.0+1029_daily_bin1215.fits" evtable="EVENTS" scfile=/scratch/kocevski/214262/ft2_4FGL_J0309.0+1029_daily_bin1215.fits sctable="SC_DATA" outfile=/scratch/kocevski/214262/ltcube_554256001_554515201_4FGL_J0309.0+1029_daily_bin1215.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/214262/ft2_4FGL_J0309.0+1029_daily_bin1215.fits
.....................!
real 14.76
user 12.68
sys 1.18

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/214262/ft1_filtered_4FGL_J0309.0+1029_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/214262/ft2_4FGL_J0309.0+1029_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/214262/ltcube_554256001_554515201_4FGL_J0309.0+1029_daily_bin1215.fits outfile=/scratch/kocevski/214262/expmap_554256001_554515201_4FGL_J0309.0+1029_daily_bin1215.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/214262/ltcube_554256001_554515201_4FGL_J0309.0+1029_daily_bin1215.fits
.....................!
real 200.84
user 185.79
sys 6.29

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/214262/ft1_filtered_4FGL_J0309.0+1029_daily_bin1215.fits scfile=/scratch/kocevski/214262/ft2_4FGL_J0309.0+1029_daily_bin1215.fits outfile=/scratch/kocevski/214262/cmap_554256001_554515201_4FGL_J0309.0+1029_daily_bin1215.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 1.54
user 0.38
sys 0.91

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/214262/ft1_filtered_4FGL_J0309.0+1029_daily_bin1215.fits scfile=/scratch/kocevski/214262/ft2_4FGL_J0309.0+1029_daily_bin1215.fits outfile=/scratch/kocevski/214262/cmap_HighResolution_554256001_554515201_4FGL_J0309.0+1029_daily_bin1215.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 1.53
user 0.39
sys 0.89

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11706E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    48.247       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    72.994       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    16.639       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    25.123       1.0000         .10000E-03   10000.    
    21 'Prefactor '    468.77       1.0000         .10000E-03   10000.    
    22 'Prefactor '    191.37       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .14149E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    314.56       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3415       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .35557E-07   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=   225.6446     FROM MIGRAD    STATUS=CONVERGED    701 CALLS     4422 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    105.17        .53008E-06** at limit **
   2  Prefactor     .10000E-03    26.930       -.14017E-05** at limit **
   3  Prefactor     .10000E-03    251.80       -.53228E-07** at limit **
   4  Prefactor     .10000E-03    32.428       -.42238E-05** at limit **
   5  Prefactor     .10000E-03    66.460       -.13162E-05** at limit **
   6  Prefactor     .10000E-03    43.119       -.33354E-05** at limit **
   7  Prefactor     .10000E-03    32.076       -.17537E-05** at limit **
   8  norm          .10000E-03    1.4899       -.61026E-06** at limit **
   9  Prefactor     .10000E-03    300.82       -.12457E-04** at limit **
  10  Prefactor     .10000E-03    76.601       -.96620E-06** at limit **
  11  norm          .10022E-03    606.81       -.16004E-03** at limit **
  12  Prefactor     .10000E-03    52.858       -.16200E-06** at limit **
  13  Prefactor     47.766        272.51        .26074E-05    .66854E-04
  14  Prefactor     .10000E-03    92.320       -.17169E-06** at limit **
  15  Prefactor     73.022        66.365       -.50674E-06    .80783E-04
  16  norm          .10000E-03    45.802        .66013E-06** at limit **
  17  norm          .10000E-03    58.532       -.44215E-07** at limit **
  18  norm          16.658        49.723        .21069E-06    .94748E-04
  19  Prefactor     .10000E-03    69.305       -.50965E-07** at limit **
  20  norm          25.159        121.46       -.34709E-05    .77475E-04
  21  Prefactor     470.48        5207.0        .14532E-04    .23418E-04
  22  Prefactor     191.34        157.07       -.18806E-05   -.51118E-05
  23  Prefactor     .10000E-03    266.70        .33889E-06** at limit **
  24  Prefactor     .10000E-03    36.033       -.28878E-06** at limit **
  25  Prefactor     .10000E-03    101.04        .84955E-05** at limit **
  26  Prefactor     314.64        354.36       -.12185E-05    .94700E-04
  27  Prefactor     .10001E-03    293.07        .18071E-07** at limit **
  28  norm          .10000E-03    40.548       -.10442E-06** at limit **
  29  Normalizat    1.3410        .73186        .64763E-05    .89409E-04
  30  Prefactor     .83211E-12    .12688        .28971E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 0.000100224
  Prefactor  = 0.000100001
  Prefactor  = 47.7656
  Prefactor  = 0.0001
  Prefactor  = 73.0218
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 16.6578
  Prefactor  = 0.000100001
  norm       = 25.1592
  Prefactor  = 470.484
  Prefactor  = 191.339
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 314.643
  Prefactor  = 0.000100005
  norm       = 0.0001
  Normalizat = 1.34098
  Prefactor  = 8.32112e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   225.6446     FROM HESSE     STATUS=OK           558 CALLS     4980 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    105.21        .15089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.939        .76243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    251.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    32.473        .83673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    66.478        .11986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    43.165        .96503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.095        .83219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.4904        .17926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    301.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    76.626        .12870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10022E-03    608.00        .41311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    52.870        .10687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     47.766        278.98        .28865E-03   -1.4325    
  14  Prefactor     .10000E-03    92.325        .14132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     73.022        66.503        .23496E-03   -1.3997    
  16  norm          .10000E-03    45.807        .99471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    58.532        .11246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.658        49.661        .98188E-04   -1.4891    
  19  Prefactor     .10000E-03    69.405        .12237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          25.159        122.37        .79920E-04   -1.4704    
  21  Prefactor     470.48        5204.5        .94618E-04   -1.1335    
  22  Prefactor     191.34        157.82        .14598E-03   -1.2933    
  23  Prefactor     .10000E-03    266.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    36.043        .88197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    100.83        .14774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     314.64        356.42        .11458E-03   -1.2141    
  27  Prefactor     .10001E-03    294.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    40.547        .93578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.3410        .74906        .24266E-03   -.82351    
  30  Prefactor     .83211E-12    .12805        .32799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44822e-09
Minuit parameter uncertainties:
  1  0.00118541
  2  1.49316e-05
  3  0.0016521
  4  0.000160918
  5  0.000465708
  6  0.000302968
  7  0.000219315
  8  3.25562e-06
  9  0.00162905
  10  0.000640836
  11  0.023561
  12  0.000354453
  13  232.531
  14  0.000103616
  15  66.5706
  16  0.000378452
  17  1.59742e-05
  18  49.7847
  19  0.000614794
  20  111.341
  21  2201.06
  22  158.174
  23  0.000478088
  24  0.000448956
  25  0.000453235
  26  358.942
  27  0.0024375
  28  8.79541e-05
  29  0.75528
  30  6.54162e-07
Done.

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

Extracting fit parameters...

4FGL J0309.0+1029
   Spectrum: LogParabola
285         norm:  2.516e+01  1.113e+02  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:  8.321e-13  6.542e-07  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.341e+00  7.553e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 47.262 10.493
Photon Flux Upper Limit: 1.36e-06 ph cm-2 s-1
Energy Flux Upper Limit: 5.32e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/214262/likelihoodResults_554256001_554515201_4FGL_J0309.0+1029_daily_bin1215.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) = 223.555831067
delta logL = 2.08874016393

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 223.527719241
delta logL = 2.11685198985

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0874       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .90309       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .17194E-07   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.

 FCN=   223.5277     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      280 TOTAL
                     EDM=   .34E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0837        2.9787        .38194E-02    .24116E-05
   2  alpha         5.0000        3.5642        .22992    ** at limit **
   3  Normalizat    .90294        .54307        .44941E-01    .30156E-06
   4  Prefactor      .0000        .15035        .81726E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 3.08368
  alpha      = 5
  Normalizat = 0.902944
  Prefactor  = 0
 **********
 **   18 **HESSE 
 **********

 FCN=   223.5277     FROM HESSE     STATUS=OK            31 CALLS      311 TOTAL
                     EDM=   .22E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0837        2.1293        .16889E-04   -1.5357    
   2  alpha         5.0000        3.5052        .14415E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .90294        .53591        .26385E-03   -.96357    
   4  Prefactor      .0000        .15324        .35272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2155e-15
Minuit parameter uncertainties:
  1  2.12936
  2  2.12901e-07
  3  0.539117
  4  3.39064e-09
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/214262': 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) = 223.527714764
delta logL = 2.11685646643

Extracting fit parameters...

4FGL J0309.0+1029
   Spectrum: LogParabola
285         norm:  3.084e+00  2.129e+00  1.000e-04  1.000e+04 ( 1.000e-12)
286        alpha:  5.000e+00  2.129e-07  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:  0.000e+00  3.391e-09  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:  9.029e-01  5.391e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.36
Ra Dec: 47.262 10.493
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.16e-06 +/- 7.99e-07
Energy Flux (Free Index): 1.59e-04 +/- 1.10e-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/214262/cmap_HighResolution_554256001_554515201_4FGL_J0309.0+1029_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.32e-04', comment='SUCCESS', energy_flux2='1.59e-04', dlogl='2.12e+00', photon_flux2='1.16e-06', job_status='DONE', time_completed='2021-08-17 18:20:15.110459', photon_index_error2='0.00', photon_index2='5.00', ts='0.12', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', photon_flux_upper_limit='1.36e-06', energy_flux_error2='1.10e-04', EG='1.34', time_epoch_completed='1629249615.11', return_code='0', job_id='214262', GAL2='0.00', EG2='0.90', return_code2='0', photon_flux_error2='7.99e-07', ts2='4.36', photon_index='2.23' WHERE bin_id='1215' AND source_name='4FGL J0309.0+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 18:20:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 214262: <4FGL_J0309.0+1029_daily_bin1215> in cluster <slac> Done

Job <4FGL_J0309.0+1029_daily_bin1215> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Aug 17 18:04:11 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 18:12:52 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:12:52 2021
Terminated at Tue Aug 17 18:20:15 2021
Results reported at Tue Aug 17 18:20:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0309.0+1029_daily_bin1215 47.2617 10.4927 554256001 554515201 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 :                                   368.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   443 sec.
    Turnaround time :                            964 sec.

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

