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


Performing analysis on: 4FGL_J0304.5+3349_daily_bin1318
RA = 46.1379, Dec = 33.8261
tmin = 580953601, tmax = 581212801
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='164055', job_status='RUN', time_executed='2021-08-17 15:37:37.427421', time_epoch_executed='1629239857.43' WHERE source_name='4FGL J0304.5+3349' and cadence='daily' and bin_id='1318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164055

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164055/ft1_4FGL_J0304.5+3349_daily_bin1318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164055/ft2_4FGL_J0304.5+3349_daily_bin1318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164055/ft1_4FGL_J0304.5+3349_daily_bin1318.fits outfile=/scratch/kocevski/164055/ft1_filteredMKT_4FGL_J0304.5+3349_daily_bin1318.fits ra=46.1379 dec=33.8261 rad=12.0 tmin=580953601.0 tmax=581212801.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 4.50
user 2.81
sys 0.92

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/164055/ft2_4FGL_J0304.5+3349_daily_bin1318.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/164055/ft1_filteredMKT_4FGL_J0304.5+3349_daily_bin1318.fits evtable="EVENTS" outfile="/scratch/kocevski/164055/ft1_filtered_4FGL_J0304.5+3349_daily_bin1318.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.73
user 0.33
sys 0.87

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164055/ft1_filtered_4FGL_J0304.5+3349_daily_bin1318.fits" evtable="EVENTS" scfile=/scratch/kocevski/164055/ft2_4FGL_J0304.5+3349_daily_bin1318.fits sctable="SC_DATA" outfile=/scratch/kocevski/164055/ltcube_580953601_581212801_4FGL_J0304.5+3349_daily_bin1318.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/164055/ft2_4FGL_J0304.5+3349_daily_bin1318.fits
.....................!
real 15.78
user 13.44
sys 1.17

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164055/ft1_filtered_4FGL_J0304.5+3349_daily_bin1318.fits evtable="EVENTS" scfile=/scratch/kocevski/164055/ft2_4FGL_J0304.5+3349_daily_bin1318.fits sctable="SC_DATA" expcube=/scratch/kocevski/164055/ltcube_580953601_581212801_4FGL_J0304.5+3349_daily_bin1318.fits outfile=/scratch/kocevski/164055/expmap_580953601_581212801_4FGL_J0304.5+3349_daily_bin1318.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/164055/ltcube_580953601_581212801_4FGL_J0304.5+3349_daily_bin1318.fits
.....................!
real 201.29
user 185.62
sys 6.04

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/164055/ft1_filtered_4FGL_J0304.5+3349_daily_bin1318.fits scfile=/scratch/kocevski/164055/ft2_4FGL_J0304.5+3349_daily_bin1318.fits outfile=/scratch/kocevski/164055/cmap_580953601_581212801_4FGL_J0304.5+3349_daily_bin1318.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 1.43
user 0.37
sys 0.85

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164055/ft1_filtered_4FGL_J0304.5+3349_daily_bin1318.fits scfile=/scratch/kocevski/164055/ft2_4FGL_J0304.5+3349_daily_bin1318.fits outfile=/scratch/kocevski/164055/cmap_HighResolution_580953601_581212801_4FGL_J0304.5+3349_daily_bin1318.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 1.42
user 0.38
sys 0.85

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/164055/ft1_filtered_4FGL_J0304.5+3349_daily_bin1318.fits', '/scratch/kocevski/164055/ft2_4FGL_J0304.5+3349_daily_bin1318.fits', expMap='/scratch/kocevski/164055/expmap_580953601_581212801_4FGL_J0304.5+3349_daily_bin1318.fits', expCube='/scratch/kocevski/164055/ltcube_580953601_581212801_4FGL_J0304.5+3349_daily_bin1318.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/164055/Model_4FGL_J0304.5+3349_daily_bin1318.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/164055/ft1_filtered_4FGL_J0304.5+3349_daily_bin1318.fits
Spacecraft file(s): /scratch/kocevski/164055/ft2_4FGL_J0304.5+3349_daily_bin1318.fits
Exposure map: /scratch/kocevski/164055/expmap_580953601_581212801_4FGL_J0304.5+3349_daily_bin1318.fits
Exposure cube: /scratch/kocevski/164055/ltcube_580953601_581212801_4FGL_J0304.5+3349_daily_bin1318.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/164055/Model_4FGL_J0304.5+3349_daily_bin1318.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) = 3794.14922173

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .28910E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.715       1.0000         .10000E-03   10000.    
     3 'norm      '    3.5056       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.399       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.268       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.881       1.0000         .10000E-03   10000.    
    10 'norm      '    108.42       1.0000         .10000E-03   10000.    
    11 'Prefactor '    58.513       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1695       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.5895       1.0000         .10000E-03   10000.    
    15 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .54230       1.0000         .10000E-03   10000.    
    17 'Prefactor '    265.66       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.7639       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .84133       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=   3794.135     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     1954 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10103E-03    3.4471       -.75565E-06** at limit **
   2  Prefactor     11.726        18.126        .22011E-06   -.69339E-04
   3  norm          3.5043        1.2150        .48274E-06   -.11554E-02
   4  Prefactor     .10000E-03    6.0969       -.61887E-06** at limit **
   5  norm          .10000E-03    2.8027       -.16496E-06** at limit **
   6  Prefactor     .10000E-03    24.889       -.16937E-06** at limit **
   7  norm          10.402        5.1963        .67636E-07   -.16286E-03
   8  Prefactor     19.315        27.168        .95160E-07   -.19531E-04
   9  Prefactor     28.181        245.10       -.12953E-05    .14088E-04
  10  norm          108.47        86.909        .46986E-06   -.32284E-05
  11  Prefactor     58.534        26.885        .46657E-07   -.32756E-04
  12  Prefactor     .10000E-03    128.18        .12418E-06** at limit **
  13  norm          1.1697        1.0272       -.26375E-08   -.10721E-03
  14  Prefactor     6.5921        5.1944        .73071E-07   -.14219E-03
  15  norm          .10000E-03    42.023       -.16094E-06** at limit **
  16  norm          .53643        6.0208        .18524E-06   -.15119E-03
  17  Prefactor     265.71        304.19        .13631E-06   -.34610E-05
  18  Normalizat    1.7631        .48221        .12660E-05   -.26709E-04
  19  Prefactor     .84146        .16213       -.45071E-07   -.44883E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000101034
  Prefactor  = 11.726
  norm       = 3.50429
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.4016
  Prefactor  = 19.3153
  Prefactor  = 28.1808
  norm       = 108.473
  Prefactor  = 58.5343
  Prefactor  = 0.0001
  norm       = 1.16969
  Prefactor  = 6.59212
  norm       = 0.0001
  norm       = 0.536425
  Prefactor  = 265.709
  Normalizat = 1.76306
  Prefactor  = 0.841457
 **********
 **   18 **HESSE 
 **********

 FCN=   3794.135     FROM HESSE     STATUS=OK           276 CALLS     2230 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10103E-03    55.241        .21615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.726        18.331        .11704E-03   -1.5023    
   3  norm          3.5043        1.2218        .36593E-04   -1.5334    
   4  Prefactor     .10000E-03    6.1636        .14825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.8053        .10068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.402        5.1983        .91443E-04   -1.5063    
   8  Prefactor     19.315        27.191        .91244E-04   -1.4829    
   9  Prefactor     28.181        242.29        .37936E-03   -1.4646    
  10  norm          108.47        86.720        .19313E-03   -1.3621    
  11  Prefactor     58.534        26.691        .52447E-04   -1.4176    
  12  Prefactor     .10000E-03    128.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1697        1.0171        .53386E-04   -1.5492    
  14  Prefactor     6.5921        5.1447        .11598E-03   -1.5194    
  15  norm          .10000E-03    42.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .53643        24.902        .28264E-02   -1.5561    
  17  Prefactor     265.71        304.75        .12437E-03   -1.2433    
  18  Normalizat    1.7631        .54856        .43429E-03   -.70632    
  19  Prefactor     .84146        .18403        .21518E-03   -.98218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84568e-08
Minuit parameter uncertainties:
  1  0.0151302
  2  18.3402
  3  1.22179
  4  8.11711e-06
  5  3.30452e-06
  6  8.26047e-06
  7  5.19853
  8  27.208
  9  166.177
  10  86.8217
  11  26.6965
  12  2.99995e-05
  13  1.01709
  14  5.145
  15  8.9788e-07
  16  7.31231
  17  306.603
  18  0.550482
  19  0.184161
Done.

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

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  1.085e+02  8.682e+01  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:  8.415e-01  1.842e-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:  1.763e+00  5.505e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.04
Ra Dec: 46.138 33.826
Photon Index (Fixed Index): 2.86 +/- 0.00
Photon Flux (Fixed Index): 1.55e-07 +/- 1.24e-07
Energy Flux (Fixed Index): 5.09e-05 +/- 4.08e-05

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

Saving results to:
/scratch/kocevski/164055/likelihoodResults_580953601_581212801_4FGL_J0304.5+3349_daily_bin1318.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) = 3794.13127566
delta logL = 0.00396567488906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3794.12767814
delta logL = 0.00756319753282

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    100.03       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9836       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7521       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84258       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=   3794.128     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      262 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          100.00        114.67        .40196E-04    .48856E-03
   2  alpha         2.9843        1.0276        .13389E-01    .14270E-03
   3  Normalizat    1.7513        .49038        .43533E-03   -.16112E-03
   4  Prefactor     .84285        .17481        .21500E-03   -.68674E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 100.003
  alpha      = 2.98428
  Normalizat = 1.75134
  Prefactor  = 0.842852
 **********
 **   18 **HESSE 
 **********

 FCN=   3794.128     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          100.00        105.27        .80392E-05   -1.3705    
   2  alpha         2.9843        .94654        .53556E-03    .19494    
   3  Normalizat    1.7513        .48897        .87066E-04   -.70941    
   4  Prefactor     .84285        .17469        .43001E-04   -.98168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84245e-09
Minuit parameter uncertainties:
  1  105.466
  2  0.971763
  3  0.490336
  4  0.174807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164055': 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) = 3794.12767661
delta logL = 0.00756472936791

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  1.000e+02  1.055e+02  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  2.984e+00  9.718e-01  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:  8.429e-01  1.748e-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:  1.751e+00  4.903e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.02
Ra Dec: 46.138 33.826
Photon Index (Free Index): 2.98 +/- 0.97
Photon Flux (Free Index): 1.72e-07 +/- 1.83e-07
Energy Flux (Free Index): 5.23e-05 +/- 4.01e-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/164055/cmap_HighResolution_580953601_581212801_4FGL_J0304.5+3349_daily_bin1318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.36e-04', comment='SUCCESS', photon_flux='1.55e-07', energy_flux2='5.23e-05', photon_flux_error='1.24e-07', dlogl='7.56e-03', energy_flux='5.09e-05', photon_flux2='1.72e-07', job_status='DONE', time_completed='2021-08-17 15:46:34.302770', photon_index_error2='0.97', photon_index2='2.98', ts='3.04', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='4.16e-07', energy_flux_error2='4.01e-05', EG='1.76', time_epoch_completed='1629240394.3', return_code='0', job_id='164055', GAL2='0.84', EG2='1.75', return_code2='0', energy_flux_error='4.08e-05', photon_flux_error2='1.83e-07', ts2='3.02', photon_index='2.86' WHERE bin_id='1318' AND source_name='4FGL J0304.5+3349' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 15:46:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 164055: <4FGL_J0304.5+3349_daily_bin1318> in cluster <slac> Done

Job <4FGL_J0304.5+3349_daily_bin1318> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 17 15:32:09 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 15:33:36 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:33:36 2021
Terminated at Tue Aug 17 15:46:35 2021
Results reported at Tue Aug 17 15:46:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0304.5+3349_daily_bin1318 46.1379 33.8261 580953601 581212801 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 :                                   522.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            866 sec.

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

