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


Performing analysis on: 4FGL_J0304.5+3349_daily_bin1198
RA = 46.1379, Dec = 33.8261
tmin = 549849601, tmax = 550108801
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='163900', job_status='RUN', time_executed='2021-08-17 15:34:19.206727', time_epoch_executed='1629239659.21' WHERE source_name='4FGL J0304.5+3349' and cadence='daily' and bin_id='1198'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163900

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163900/ft1_4FGL_J0304.5+3349_daily_bin1198.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163900/ft2_4FGL_J0304.5+3349_daily_bin1198.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/163900/ft1_4FGL_J0304.5+3349_daily_bin1198.fits outfile=/scratch/kocevski/163900/ft1_filteredMKT_4FGL_J0304.5+3349_daily_bin1198.fits ra=46.1379 dec=33.8261 rad=12.0 tmin=549849601.0 tmax=550108801.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 7.59
user 2.38
sys 5.04

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/163900/ft2_4FGL_J0304.5+3349_daily_bin1198.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/163900/ft2_4FGL_J0304.5+3349_daily_bin1198.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/163900/ft1_filteredMKT_4FGL_J0304.5+3349_daily_bin1198.fits evtable="EVENTS" outfile="/scratch/kocevski/163900/ft1_filtered_4FGL_J0304.5+3349_daily_bin1198.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.51
user 0.34
sys 4.85

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/163900/ft1_filtered_4FGL_J0304.5+3349_daily_bin1198.fits" evtable="EVENTS" scfile=/scratch/kocevski/163900/ft2_4FGL_J0304.5+3349_daily_bin1198.fits sctable="SC_DATA" outfile=/scratch/kocevski/163900/ltcube_549849601_550108801_4FGL_J0304.5+3349_daily_bin1198.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/163900/ft2_4FGL_J0304.5+3349_daily_bin1198.fits
.....................!
real 19.45
user 13.29
sys 5.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163900/ft1_filtered_4FGL_J0304.5+3349_daily_bin1198.fits evtable="EVENTS" scfile=/scratch/kocevski/163900/ft2_4FGL_J0304.5+3349_daily_bin1198.fits sctable="SC_DATA" expcube=/scratch/kocevski/163900/ltcube_549849601_550108801_4FGL_J0304.5+3349_daily_bin1198.fits outfile=/scratch/kocevski/163900/expmap_549849601_550108801_4FGL_J0304.5+3349_daily_bin1198.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/163900/ltcube_549849601_550108801_4FGL_J0304.5+3349_daily_bin1198.fits
.....................!
real 202.43
user 187.95
sys 11.28

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 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J0304.5+3349 @ 46.1379 33.8261

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/163900/ft1_filtered_4FGL_J0304.5+3349_daily_bin1198.fits scfile=/scratch/kocevski/163900/ft2_4FGL_J0304.5+3349_daily_bin1198.fits outfile=/scratch/kocevski/163900/cmap_549849601_550108801_4FGL_J0304.5+3349_daily_bin1198.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=46.1379 yref=33.8261 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 5.58
user 0.37
sys 4.87

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/163900/ft1_filtered_4FGL_J0304.5+3349_daily_bin1198.fits scfile=/scratch/kocevski/163900/ft2_4FGL_J0304.5+3349_daily_bin1198.fits outfile=/scratch/kocevski/163900/cmap_HighResolution_549849601_550108801_4FGL_J0304.5+3349_daily_bin1198.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=46.1379 yref=33.8261 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 5.59
user 0.39
sys 4.87

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/163900/ft1_filtered_4FGL_J0304.5+3349_daily_bin1198.fits evtable="EVENTS" scfile=/scratch/kocevski/163900/ft2_4FGL_J0304.5+3349_daily_bin1198.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/163900/Model_4FGL_J0304.5+3349_daily_bin1198.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/163900/ft1_filtered_4FGL_J0304.5+3349_daily_bin1198.fits......................!
real 52.46
user 40.31
sys 7.56

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/163900/ft1_filtered_4FGL_J0304.5+3349_daily_bin1198.fits', '/scratch/kocevski/163900/ft2_4FGL_J0304.5+3349_daily_bin1198.fits', expMap='/scratch/kocevski/163900/expmap_549849601_550108801_4FGL_J0304.5+3349_daily_bin1198.fits', expCube='/scratch/kocevski/163900/ltcube_549849601_550108801_4FGL_J0304.5+3349_daily_bin1198.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/163900/Model_4FGL_J0304.5+3349_daily_bin1198.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0304.5+3349'

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  3.979e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  2.863e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  3.847e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/163900/ft1_filtered_4FGL_J0304.5+3349_daily_bin1198.fits
Spacecraft file(s): /scratch/kocevski/163900/ft2_4FGL_J0304.5+3349_daily_bin1198.fits
Exposure map: /scratch/kocevski/163900/expmap_549849601_550108801_4FGL_J0304.5+3349_daily_bin1198.fits
Exposure cube: /scratch/kocevski/163900/ltcube_549849601_550108801_4FGL_J0304.5+3349_daily_bin1198.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/163900/Model_4FGL_J0304.5+3349_daily_bin1198.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) = 2031.49608432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.5088       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    43.245       1.0000         .10000E-03   10000.    
     7 'norm      '    49.184       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    109.00       1.0000         .10000E-03   10000.    
    11 'Prefactor '    331.26       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.808       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .12952E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8931.6       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .84697       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0151       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2031.024     FROM MIGRAD    STATUS=CONVERGED    395 CALLS     2190 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.6685       -.42350E-06** at limit **
   2  Prefactor     .10000E-03    13.164        .63743E-06** at limit **
   3  norm          1.5086        1.2029        .58697E-07    .28193E-04
   4  Prefactor     .10000E-03    5.1121       -.20723E-06** at limit **
   5  norm          .10000E-03    6.0928        .42023E-07** at limit **
   6  Prefactor     43.235        74.286       -.89332E-05    .30307E-05
   7  norm          49.183        8.7356       -.25676E-05   -.16270E-03
   8  Prefactor     .10000E-03    32.625        .20469E-04** at limit **
   9  Prefactor     .10000E-03    72.855       -.44121E-04** at limit **
  10  norm          109.06        111.29        .45363E-04    .43840E-04
  11  Prefactor     331.33        199.75        .32872E-04    .31705E-04
  12  Prefactor     .10000E-03    328.23       -.51267E-04** at limit **
  13  norm          12.809        9.2918        .29710E-05    .80735E-04
  14  Prefactor     .10003E-03    30.256       -.12397E-04** at limit **
  15  norm          .10000E-03    90.755        .56521E-04** at limit **
  16  norm          .10000E-03    19.316        .21068E-05** at limit **
  17  Prefactor     8926.1        7898.9       -.17885E-02    .25728E-05
  18  Normalizat    .84757        .65731        .40124E-05   -.24828E-04
  19  Prefactor     1.0150        .24838       -.35221E-06   -.36047E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.50856
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 43.2348
  norm       = 49.1828
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 109.056
  Prefactor  = 331.325
  Prefactor  = 0.0001
  norm       = 12.8092
  Prefactor  = 0.000100029
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 8926.12
  Normalizat = 0.847572
  Prefactor  = 1.01495
 **********
 **   18 **HESSE 
 **********

 FCN=   2031.024     FROM HESSE     STATUS=OK           258 CALLS     2448 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.6941        .84185E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.214        .15965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5086        1.1866        .40999E-04   -1.5462    
   4  Prefactor     .10000E-03    5.1302        .99483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.0982        .10865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     43.235        74.235        .60963E-04   -1.4392    
   7  norm          49.183        8.7186        .52424E-04   -1.4304    
   8  Prefactor     .10000E-03    33.421        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    72.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          109.06        111.54        .19262E-03   -1.3616    
  11  Prefactor     331.33        199.86        .11175E-03   -1.2047    
  12  Prefactor     .10000E-03    328.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.809        9.2934        .10730E-03   -1.4992    
  14  Prefactor     .10003E-03    31.059        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    90.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    19.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8926.1        7990.0        .64745E-04    .90306    
  18  Normalizat    .84757        .69252        .56521E-03   -.98328    
  19  Prefactor     1.0150        .26664        .21104E-03   -.92233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1563e-09
Minuit parameter uncertainties:
  1  1.3735e-06
  2  3.31377e-05
  3  1.18661
  4  4.51127e-06
  5  7.03876e-06
  6  74.3942
  7  8.7188
  8  0.000122354
  9  4.48123e-05
  10  111.753
  11  200.282
  12  0.000723489
  13  9.29446
  14  0.00189427
  15  0.000153115
  16  0.000371182
  17  11211.8
  18  0.699956
  19  0.266983
Done.

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

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  1.091e+02  1.118e+02  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  2.863e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  3.847e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  1.015e+00  2.670e-01  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  8.476e-01  7.000e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.68
Ra Dec: 46.138 33.826
Photon Index (Fixed Index): 2.86 +/- 0.00
Photon Flux (Fixed Index): 1.56e-07 +/- 1.60e-07
Energy Flux (Fixed Index): 5.12e-05 +/- 5.25e-05

TS (Fixed Index): 1.68
Ra Dec: 46.138 33.826
Photon Flux Upper Limit: 5.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.79e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/163900/likelihoodResults_549849601_550108801_4FGL_J0304.5+3349_daily_bin1198.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) = 2031.02114197
delta logL = 0.00281536785428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2031.00454985
delta logL = 0.019407485408

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    139.12       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2973       1.0000          .0000       5.0000    
     3 'Normalizat'    .89127       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0091       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+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=   2031.005     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      267 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          139.22        173.74        .17076E-03   -.15016E-04
   2  alpha         2.3023        1.9206        .23512E-01    .97334E-06
   3  Normalizat    .89406        .65506        .55233E-03   -.96586E-05
   4  Prefactor     1.0078        .26604        .21183E-03    .55682E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 139.223
  alpha      = 2.30234
  Normalizat = 0.894056
  Prefactor  = 1.00777
 **********
 **   18 **HESSE 
 **********

 FCN=   2031.005     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          139.22        168.57        .34152E-04   -1.3343    
   2  alpha         2.3023        1.8736        .94048E-03   -.79147E-01
   3  Normalizat    .89406        .65309        .22093E-04   -.96669    
   4  Prefactor     1.0078        .26601        .42366E-04   -.92471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52313e-11
Minuit parameter uncertainties:
  1  169.159
  2  2.12029
  3  0.659002
  4  0.266356
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163900': 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) = 2031.00453286
delta logL = 0.0194244771615

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  1.392e+02  1.692e+02  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  2.302e+00  2.120e+00  0.000e+00  5.000e+00 ( 1.000e+00)
297         beta:  3.847e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  1.008e+00  2.664e-01  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  8.941e-01  6.590e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.71
Ra Dec: 46.138 33.826
Photon Index (Free Index): 2.30 +/- 2.12
Photon Flux (Free Index): 9.42e-08 +/- 2.09e-07
Energy Flux (Free Index): 4.74e-05 +/- 5.16e-05

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/163900/cmap_HighResolution_549849601_550108801_4FGL_J0304.5+3349_daily_bin1198.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-04', comment='SUCCESS', photon_flux='1.56e-07', energy_flux2='4.74e-05', photon_flux_error='1.60e-07', dlogl='1.94e-02', energy_flux='5.12e-05', photon_flux2='9.42e-08', job_status='DONE', time_completed='2021-08-17 15:42:53.430567', photon_index_error2='2.12', photon_index2='2.30', ts='1.68', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='5.47e-07', energy_flux_error2='5.16e-05', EG='0.85', time_epoch_completed='1629240173.43', return_code='0', job_id='163900', GAL2='1.01', EG2='0.89', return_code2='0', energy_flux_error='5.25e-05', photon_flux_error2='2.09e-07', ts2='1.71', photon_index='2.86' WHERE bin_id='1198' AND source_name='4FGL J0304.5+3349' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 15:42:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 163900: <4FGL_J0304.5+3349_daily_bin1198> in cluster <slac> Done

Job <4FGL_J0304.5+3349_daily_bin1198> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 17 15:31:57 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 15:32:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 17 15:32:25 2021
Terminated at Tue Aug 17 15:42:54 2021
Results reported at Tue Aug 17 15:42:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0304.5+3349_daily_bin1198 46.1379 33.8261 549849601 550108801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0304.5+3349 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   573.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   629 sec.
    Turnaround time :                            657 sec.

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

