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


Performing analysis on: 4FGL_J0304.5+3349_daily_bin1618
RA = 46.1379, Dec = 33.8261
tmin = 658713601, tmax = 658972801
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='169724', job_status='RUN', time_executed='2021-12-07 13:50:20.943840', time_epoch_executed='1638913820.94' WHERE source_name='4FGL J0304.5+3349' and cadence='daily' and bin_id='1618'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/169724

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/169724/ft1_4FGL_J0304.5+3349_daily_bin1618.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/169724/ft2_4FGL_J0304.5+3349_daily_bin1618.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/169724/ft1_4FGL_J0304.5+3349_daily_bin1618.fits outfile=/scratch/kocevski/169724/ft1_filteredMKT_4FGL_J0304.5+3349_daily_bin1618.fits ra=46.1379 dec=33.8261 rad=12.0 tmin=658713601.0 tmax=658972801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.01
user 2.78
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/169724/ft2_4FGL_J0304.5+3349_daily_bin1618.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/169724/ft1_filteredMKT_4FGL_J0304.5+3349_daily_bin1618.fits evtable="EVENTS" outfile="/scratch/kocevski/169724/ft1_filtered_4FGL_J0304.5+3349_daily_bin1618.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.54
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/169724/ft1_filtered_4FGL_J0304.5+3349_daily_bin1618.fits" evtable="EVENTS" scfile=/scratch/kocevski/169724/ft2_4FGL_J0304.5+3349_daily_bin1618.fits sctable="SC_DATA" outfile=/scratch/kocevski/169724/ltcube_658713601_658972801_4FGL_J0304.5+3349_daily_bin1618.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/169724/ft2_4FGL_J0304.5+3349_daily_bin1618.fits
.....................!
real 14.04
user 13.65
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/169724/ft1_filtered_4FGL_J0304.5+3349_daily_bin1618.fits evtable="EVENTS" scfile=/scratch/kocevski/169724/ft2_4FGL_J0304.5+3349_daily_bin1618.fits sctable="SC_DATA" expcube=/scratch/kocevski/169724/ltcube_658713601_658972801_4FGL_J0304.5+3349_daily_bin1618.fits outfile=/scratch/kocevski/169724/expmap_658713601_658972801_4FGL_J0304.5+3349_daily_bin1618.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/169724/ltcube_658713601_658972801_4FGL_J0304.5+3349_daily_bin1618.fits
.....................!
real 192.11
user 185.99
sys 5.45

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/169724/ft1_filtered_4FGL_J0304.5+3349_daily_bin1618.fits scfile=/scratch/kocevski/169724/ft2_4FGL_J0304.5+3349_daily_bin1618.fits outfile=/scratch/kocevski/169724/cmap_658713601_658972801_4FGL_J0304.5+3349_daily_bin1618.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 0.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/169724/ft1_filtered_4FGL_J0304.5+3349_daily_bin1618.fits scfile=/scratch/kocevski/169724/ft2_4FGL_J0304.5+3349_daily_bin1618.fits outfile=/scratch/kocevski/169724/cmap_HighResolution_658713601_658972801_4FGL_J0304.5+3349_daily_bin1618.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 0.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/169724/ft1_filtered_4FGL_J0304.5+3349_daily_bin1618.fits', '/scratch/kocevski/169724/ft2_4FGL_J0304.5+3349_daily_bin1618.fits', expMap='/scratch/kocevski/169724/expmap_658713601_658972801_4FGL_J0304.5+3349_daily_bin1618.fits', expCube='/scratch/kocevski/169724/ltcube_658713601_658972801_4FGL_J0304.5+3349_daily_bin1618.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/169724/Model_4FGL_J0304.5+3349_daily_bin1618.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/169724/ft1_filtered_4FGL_J0304.5+3349_daily_bin1618.fits
Spacecraft file(s): /scratch/kocevski/169724/ft2_4FGL_J0304.5+3349_daily_bin1618.fits
Exposure map: /scratch/kocevski/169724/expmap_658713601_658972801_4FGL_J0304.5+3349_daily_bin1618.fits
Exposure cube: /scratch/kocevski/169724/ltcube_658713601_658972801_4FGL_J0304.5+3349_daily_bin1618.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/169724/Model_4FGL_J0304.5+3349_daily_bin1618.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 488.290965357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 486.749751979

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14570E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.432       1.0000         .10000E-03   10000.    
     5 'norm      '    19.002       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .81612E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    42.844       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .81088E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.0440       1.0000         .10000E-03   10000.    
    10 'norm      '    4.4670       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9773       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1926       1.0000         .10000E-03   10000.    
    13 'norm      '    11.864       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9693       1.0000         .10000E-03   10000.    
    15 'norm      '    4.1069       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0726       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.1914       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.5007       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   485.0851     FROM MIGRAD    STATUS=CONVERGED    343 CALLS      648 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.7664        .46891E-06** at limit **
   2  Prefactor     .10000E-03    23.474       -.16981E-05** at limit **
   3  norm          .10000E-03    1.4325       -.36541E-06** at limit **
   4  Prefactor     20.516        62.402        .50961E-05   -.22471E-03
   5  norm          21.402        72.576       -.31718E-05   -.13080E-03
   6  Prefactor     .10005E-03    106.21        .66806E-06** at limit **
   7  norm          40.181        30.507        .20385E-05   -.30114E-03
   8  Prefactor     .10021E-03    139.70        .61081E-06** at limit **
   9  Prefactor     736.39        1488.2        .20218E-05    .30937E-04
  10  norm          .10858E-03    6234.4        .35503E-04** at limit **
  11  Prefactor     42.512        375.69        .11836E-05    .89692E-04
  12  Prefactor     .11462E-03    6300.8        .25777E-04** at limit **
  13  norm          10.695        12.077        .31475E-06   -.24940E-03
  14  Prefactor    10000.0        6979.4       -.41708E-04** at limit **
  15  norm          4.1069        1.0076         .0000         .0000    
  16  norm          1.0726        1.2120         .0000         .0000    
  17  Prefactor     19.197        22.737       -.19796E-05   -.22078E-02
  18  Normalizat    .10000E-01    1.7243        .28341E-04** at limit **
  19  Prefactor     1.3696        .43585       -.32451E-05   -.38629E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.5158
  norm       = 21.4024
  Prefactor  = 0.000100048
  norm       = 40.1811
  Prefactor  = 0.000100214
  Prefactor  = 736.386
  norm       = 0.000108576
  Prefactor  = 42.5124
  Prefactor  = 0.000114621
  norm       = 10.6948
  Prefactor  = 10000
  norm       = 4.10689
  norm       = 1.07257
  Prefactor  = 19.1967
  Normalizat = 0.01
  Prefactor  = 1.36964
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   485.0851     FROM HESSE     STATUS=FAILED        67 CALLS      715 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.854        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.641        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.3868        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.516        30.691        .22152E-02   -1.4802    
   5  norm          21.402        36.562        .22970E-02   -1.4782    
   6  Prefactor     .10005E-03    108.82        .94232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          40.181        27.492        .15312E-02   -1.4439    
   8  Prefactor     .10021E-03    140.87        .94207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     736.39        1382.0        .33319E-02   -1.0212    
  10  norm          .10858E-03    6237.6        .47628E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     42.512        278.33        .50560E-02   -1.7013    
  12  Prefactor     .11462E-03    6305.0        .56694E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.695        10.989        .29075E-02   -1.5054    
  14  Prefactor    10000.0        7001.9        .73874E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          540.95        536.78         .0000       -1.5303    
  16  norm          1.0726        1.2120         .0000       -1.5501    
  17  Prefactor     19.197        1.4466       -.19796E-05   -1.4831    
  18  Normalizat    .10000E-01    .25505        .28341E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.3696        1.0095       -.32451E-05   -.81259    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.87052e-11
Minuit parameter uncertainties:
  1  3.83599e-05
  2  5.76651e-05
  3  6.03372e-06
  4  30.7145
  5  36.6004
  6  0.00460239
  7  27.5002
  8  0.0110172
  9  1456.25
  10  0.304974
  11  219.052
  12  0.410032
  13  10.9915
  14  0.155239
  15  1.00761
  16  1.21206
  17  1.44661
  18  1.78762e-05
  19  1.02457
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 485.085079394

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  1.086e-04  3.050e-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:  1.370e+00  1.025e+00  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.000e-02  1.788e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 46.138 33.826
Photon Flux Upper Limit: 5.03e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/169724/likelihoodResults_658713601_658972801_4FGL_J0304.5+3349_daily_bin1618.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) = 485.085082147
delta logL = -2.752855778e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 485.085081543
delta logL = -2.1481262138e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96302E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8627       1.0000          .0000       5.0000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3696       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=   485.0851     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      183 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    6238.4       -.19534E-02** at limit **
   2  alpha         2.8624        3.6273       -.15313E-03   -.14388E-06
   3  Normalizat    .10000E-01    .92159        .62237E-06** at limit **
   4  Prefactor     1.3697        .37522        .13292E-05    .10971E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100011
  alpha      = 2.86239
  Normalizat = 0.01
  Prefactor  = 1.36965
 **********
 **   18 **HESSE 
 **********

 FCN=   485.0851     FROM HESSE     STATUS=OK            27 CALLS      210 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    1244.8        .18144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8624        3.6240        .16685        .14547    
   3  Normalizat    .10000E-01    1.0376        .14071E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3697        .33290        .20965E-03   -.81259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14999e-10
Minuit parameter uncertainties:
  1  0.00743457
  2  2.47364
  3  8.96328e-07
  4  0.333422
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/169724': 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) = 485.085079392
delta logL = 2.29454144574e-09

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  1.000e-04  7.435e-03  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  2.862e+00  2.474e+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.370e+00  3.334e-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.000e-02  8.963e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 46.138 33.826

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/169724/cmap_HighResolution_658713601_658972801_4FGL_J0304.5+3349_daily_bin1618.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.65e-03', job_status='DONE', photon_flux_upper_limit='5.03e-06', time_completed='2021-12-07 13:55:47.312874', job_id='169724', GAL2='1.37', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1638914147.31', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.37', dlogl='2.29e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1618' AND source_name='4FGL J0304.5+3349' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 13:55:47 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 169724: <4FGL_J0304.5+3349_daily_bin1618> in cluster <slac> Done

Job <4FGL_J0304.5+3349_daily_bin1618> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Dec  7 13:45:27 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 13:47:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 13:47:41 2021
Terminated at Tue Dec  7 13:55:48 2021
Results reported at Tue Dec  7 13:55:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0304.5+3349_daily_bin1618 46.1379 33.8261 658713601 658972801 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 :                                   326.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             380.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   486 sec.
    Turnaround time :                            621 sec.

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

