/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 17 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 = 7363
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0304.5+3349_daily_bin1418
RA = 46.1379, Dec = 33.8261
tmin = 606873601, tmax = 607132801
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='164984', job_status='RUN', time_executed='2021-08-17 15:37:08.594905', time_epoch_executed='1629239828.59' WHERE source_name='4FGL J0304.5+3349' and cadence='daily' and bin_id='1418'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164984

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164984/ft1_4FGL_J0304.5+3349_daily_bin1418.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164984/ft2_4FGL_J0304.5+3349_daily_bin1418.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164984/ft1_4FGL_J0304.5+3349_daily_bin1418.fits outfile=/scratch/kocevski/164984/ft1_filteredMKT_4FGL_J0304.5+3349_daily_bin1418.fits ra=46.1379 dec=33.8261 rad=12.0 tmin=606873601.0 tmax=607132801.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 6.50
user 5.07
sys 0.86

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164984/ft1_filtered_4FGL_J0304.5+3349_daily_bin1418.fits" evtable="EVENTS" scfile=/scratch/kocevski/164984/ft2_4FGL_J0304.5+3349_daily_bin1418.fits sctable="SC_DATA" outfile=/scratch/kocevski/164984/ltcube_606873601_607132801_4FGL_J0304.5+3349_daily_bin1418.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/164984/ft2_4FGL_J0304.5+3349_daily_bin1418.fits
.....................!
real 13.12
user 11.18
sys 1.03

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164984/ft1_filtered_4FGL_J0304.5+3349_daily_bin1418.fits evtable="EVENTS" scfile=/scratch/kocevski/164984/ft2_4FGL_J0304.5+3349_daily_bin1418.fits sctable="SC_DATA" expcube=/scratch/kocevski/164984/ltcube_606873601_607132801_4FGL_J0304.5+3349_daily_bin1418.fits outfile=/scratch/kocevski/164984/expmap_606873601_607132801_4FGL_J0304.5+3349_daily_bin1418.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/164984/ltcube_606873601_607132801_4FGL_J0304.5+3349_daily_bin1418.fits
.....................!
real 199.48
user 187.71
sys 6.22

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/164984/ft1_filtered_4FGL_J0304.5+3349_daily_bin1418.fits scfile=/scratch/kocevski/164984/ft2_4FGL_J0304.5+3349_daily_bin1418.fits outfile=/scratch/kocevski/164984/cmap_606873601_607132801_4FGL_J0304.5+3349_daily_bin1418.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.34
user 0.37
sys 0.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164984/ft1_filtered_4FGL_J0304.5+3349_daily_bin1418.fits scfile=/scratch/kocevski/164984/ft2_4FGL_J0304.5+3349_daily_bin1418.fits outfile=/scratch/kocevski/164984/cmap_HighResolution_606873601_607132801_4FGL_J0304.5+3349_daily_bin1418.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.90
user 0.39
sys 0.76

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2877       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .23399       1.0000         .10000E-03   10000.    
     3 'norm      '    1.8505       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4011       1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .15904E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.072       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.222       1.0000         .10000E-03   10000.    
    10 'norm      '    12.734       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.700       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.8059       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    19.213       1.0000         .10000E-03   10000.    
    16 'norm      '    3.8220       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .87897       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1089       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=   10904.28     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     1926 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2881        3.1119       -.12750E-05    .10177E-03
   2  Prefactor     .21509        47.720        .16272E-04   -.11090E-04
   3  norm          1.8505        .80106        .58766E-07    .27648E-03
   4  Prefactor     3.4017        6.6560       -.35722E-05    .26086E-05
   5  norm          .10000E-03    2.5188       -.45134E-06** at limit **
   6  Prefactor     .10000E-03    20.575       -.98011E-07** at limit **
   7  norm          .10000E-03    .92376       -.57962E-06** at limit **
   8  Prefactor     12.060        15.591       -.86593E-06   -.14751E-04
   9  Prefactor     12.213        120.96        .96669E-06    .22361E-04
  10  norm          12.665        30.416       -.15252E-05    .74404E-04
  11  Prefactor     24.699        14.397       -.64108E-06   -.72212E-04
  12  Prefactor     .10000E-03    29.859        .31977E-06** at limit **
  13  norm          1.8060        .67966       -.82147E-07   -.57246E-03
  14  Prefactor     .10000E-03    .55227        .43925E-06** at limit **
  15  norm          19.214        14.354        .60311E-07   -.28830E-04
  16  norm          3.8223        2.3910       -.61182E-06   -.42498E-03
  17  Prefactor     .10000E-03    28.390       -.75024E-06** at limit **
  18  Normalizat    .87901        .28389        .73900E-05    .11581E-03
  19  Prefactor     1.1089        .81786E-01   -.11395E-05    .70539E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.28806
  Prefactor  = 0.215091
  norm       = 1.8505
  Prefactor  = 3.40174
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 12.0605
  Prefactor  = 12.2129
  norm       = 12.6653
  Prefactor  = 24.6988
  Prefactor  = 0.0001
  norm       = 1.80599
  Prefactor  = 0.0001
  norm       = 19.2136
  norm       = 3.82231
  Prefactor  = 0.000100001
  Normalizat = 0.879006
  Prefactor  = 1.10892
 **********
 **   18 **HESSE 
 **********

 FCN=   10904.28     FROM HESSE     STATUS=OK           276 CALLS     2202 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2881        3.1241        .19067E-03   -1.5405    
   2  Prefactor     .21509        46.287        .41100E-02   -1.5615    
   3  norm          1.8505        .80658        .53978E-04   -1.5436    
   4  Prefactor     3.4017        6.5996        .21937E-03   -1.5339    
   5  norm          .10000E-03    2.5088        .16122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.5403        .18963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.060        15.552        .11530E-03   -1.5013    
   9  Prefactor     12.213        120.56        .11458E-03   -1.5009    
  10  norm          12.665        30.329        .11225E-03   -1.4996    
  11  Prefactor     24.699        14.374        .80601E-04   -1.4714    
  12  Prefactor     .10000E-03    29.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.8060        .67887        .47046E-04   -1.5439    
  14  Prefactor     .10000E-03    .56486        .15113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          19.214        14.364        .91374E-04   -1.4831    
  16  norm          3.8223        2.4196        .12172E-03   -1.5317    
  17  Prefactor     .10000E-03    28.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .87901        .29310        .54821E-03   -.97202    
  19  Prefactor     1.1089        .86646E-01    .15791E-03   -.89182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.61718e-08
Minuit parameter uncertainties:
  1  3.12431
  2  6.31407
  3  0.806581
  4  6.60105
  5  3.11221e-05
  6  2.86595e-05
  7  0.000264365
  8  15.5576
  9  76.944
  10  30.3659
  11  14.3759
  12  0.000215356
  13  0.678872
  14  1.70523e-06
  15  14.3665
  16  2.41964
  17  0.000330704
  18  0.293632
  19  0.0866573
Done.

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

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  1.267e+01  3.037e+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.109e+00  8.666e-02  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.790e-01  2.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.21
Ra Dec: 46.138 33.826
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.87e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/164984/likelihoodResults_606873601_607132801_4FGL_J0304.5+3349_daily_bin1418.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) = 10904.2808783
delta logL = 0.00338245954481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10904.2788063
delta logL = 0.00545444290765

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.404       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0790       1.0000          .0000       5.0000    
     3 'Normalizat'    .87680       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1092       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10904.28     FROM MIGRAD    STATUS=FAILED        89 CALLS      267 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.412        89.415        .12422E-03   -.13509E-03
   2  alpha         3.0780        3.9970        .44135E-01    .29516E-03
   3  Normalizat    .87605        .25782        .54906E-03    .40583E-04
   4  Prefactor     1.1094        .82812E-01    .15788E-03    .48265E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10904.28     FROM SIMPLEX   STATUS=UNCHANGED     79 CALLS      346 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.412        89.415        .35105E-03   -1.5062    
   2  alpha         3.0780        3.9970        .33827E-02    .23329    
   3  Normalizat    .87605        .25782        .31194E-03   -.97307    
   4  Prefactor     1.1094        .82812E-01    .10061E-03   -.89166    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10904.28     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      375 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.413        36.357        .49688E-05   -.43015E-04
   2  alpha         3.0779        1.9373        .88270E-02   -.94252E-05
   3  Normalizat    .87605        .25547        .21962E-04    .29609E-04
   4  Prefactor     1.1094        .82032E-01    .31576E-04    .30661E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.4126
  alpha      = 3.07794
  Normalizat = 0.876047
  Prefactor  = 1.10943
 **********
 **   18 **HESSE 
 **********

 FCN=   10904.28     FROM HESSE     STATUS=OK            23 CALLS      398 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.413        34.612        .99375E-06   -1.5062    
   2  alpha         3.0779        1.8640        .35308E-03    .23328    
   3  Normalizat    .87605        .25522        .43925E-05   -.97307    
   4  Prefactor     1.1094        .81973E-01    .63153E-05   -.89166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.69926e-11
Minuit parameter uncertainties:
  1  34.6792
  2  2.12382
  3  0.255567
  4  0.0819819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164984': 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) = 10904.2788014
delta logL = 0.00545934138609

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  1.041e+01  3.468e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  3.078e+00  2.124e+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.109e+00  8.198e-02  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.760e-01  2.556e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.21
Ra Dec: 46.138 33.826

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/164984/cmap_HighResolution_606873601_607132801_4FGL_J0304.5+3349_daily_bin1418.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.87e-05', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-08-17 15:51:54.691229', job_id='164984', GAL2='1.11', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1629240714.69', return_code2='0', ts='0.21', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='5.46e-03', ts2='0.22', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1418' AND source_name='4FGL J0304.5+3349' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 15:51:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 164984: <4FGL_J0304.5+3349_daily_bin1418> in cluster <slac> Done

Job <4FGL_J0304.5+3349_daily_bin1418> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Aug 17 15:35:38 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 15:35:55 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:35:55 2021
Terminated at Tue Aug 17 15:51:55 2021
Results reported at Tue Aug 17 15:51:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0304.5+3349_daily_bin1418 46.1379 33.8261 606873601 607132801 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 :                                   878.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            977 sec.

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

