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


Performing analysis on: 4FGL_J0304.5+3349_daily_bin1605
RA = 46.1379, Dec = 33.8261
tmin = 655344001, tmax = 655603201
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='169706', job_status='RUN', time_executed='2021-12-07 13:47:24.029901', time_epoch_executed='1638913644.03' WHERE source_name='4FGL J0304.5+3349' and cadence='daily' and bin_id='1605'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/169706

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/169706/ft1_4FGL_J0304.5+3349_daily_bin1605.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/169706/ft2_4FGL_J0304.5+3349_daily_bin1605.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/169706/ft1_4FGL_J0304.5+3349_daily_bin1605.fits outfile=/scratch/kocevski/169706/ft1_filteredMKT_4FGL_J0304.5+3349_daily_bin1605.fits ra=46.1379 dec=33.8261 rad=12.0 tmin=655344001.0 tmax=655603201.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 2.28
user 2.06
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/169706/ft2_4FGL_J0304.5+3349_daily_bin1605.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/169706/ft1_filteredMKT_4FGL_J0304.5+3349_daily_bin1605.fits evtable="EVENTS" outfile="/scratch/kocevski/169706/ft1_filtered_4FGL_J0304.5+3349_daily_bin1605.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.42
user 0.28
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/169706/ft1_filtered_4FGL_J0304.5+3349_daily_bin1605.fits" evtable="EVENTS" scfile=/scratch/kocevski/169706/ft2_4FGL_J0304.5+3349_daily_bin1605.fits sctable="SC_DATA" outfile=/scratch/kocevski/169706/ltcube_655344001_655603201_4FGL_J0304.5+3349_daily_bin1605.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/169706/ft2_4FGL_J0304.5+3349_daily_bin1605.fits
.....................!
real 10.30
user 9.98
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/169706/ft1_filtered_4FGL_J0304.5+3349_daily_bin1605.fits evtable="EVENTS" scfile=/scratch/kocevski/169706/ft2_4FGL_J0304.5+3349_daily_bin1605.fits sctable="SC_DATA" expcube=/scratch/kocevski/169706/ltcube_655344001_655603201_4FGL_J0304.5+3349_daily_bin1605.fits outfile=/scratch/kocevski/169706/expmap_655344001_655603201_4FGL_J0304.5+3349_daily_bin1605.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/169706/ltcube_655344001_655603201_4FGL_J0304.5+3349_daily_bin1605.fits
.....................!
real 154.49
user 150.06
sys 4.14

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/169706/ft1_filtered_4FGL_J0304.5+3349_daily_bin1605.fits scfile=/scratch/kocevski/169706/ft2_4FGL_J0304.5+3349_daily_bin1605.fits outfile=/scratch/kocevski/169706/cmap_655344001_655603201_4FGL_J0304.5+3349_daily_bin1605.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.47
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/169706/ft1_filtered_4FGL_J0304.5+3349_daily_bin1605.fits scfile=/scratch/kocevski/169706/ft2_4FGL_J0304.5+3349_daily_bin1605.fits outfile=/scratch/kocevski/169706/cmap_HighResolution_655344001_655603201_4FGL_J0304.5+3349_daily_bin1605.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.47
user 0.31
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .39026E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.114       1.0000         .10000E-03   10000.    
     3 'norm      '    .12198E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.071       1.0000         .10000E-03   10000.    
     5 'norm      '    15.959       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.3429       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7972       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.615       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.7564       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    18.051       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2037       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1368       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97713       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=   5377.297     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     2002 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.3158       -.32599E-06** at limit **
   2  Prefactor     17.112        41.765       -.70133E-06   -.41678E-05
   3  norm          .10000E-03    1.2684        .12346E-06** at limit **
   4  Prefactor     16.074        20.461        .24983E-06    .68826E-04
   5  norm          15.962        18.706        .85708E-06    .10893E-03
   6  Prefactor     .10000E-03    255.73       -.34119E-05** at limit **
   7  norm          5.3446        4.9497        .15987E-05   -.19063E-02
   8  Prefactor     6.8029        46.604       -.94575E-06   -.70584E-05
   9  Prefactor     .10000E-03    34.049        .31786E-06** at limit **
  10  norm          .10000E-03    14.775        .40402E-06** at limit **
  11  Prefactor     22.616        17.968       -.50232E-07   -.64846E-04
  12  Prefactor     .10003E-03    63.581        .16268E-04** at limit **
  13  norm          2.7563        .99059        .24195E-07   -.29574E-03
  14  Prefactor     .10000E-03    1.6515        .80242E-07** at limit **
  15  norm          18.051        21.371        .28793E-06    .15246E-04
  16  norm          1.2026        3.2942        .35682E-06   -.30410E-03
  17  Prefactor     .10003E-03    61.267       -.14613E-04** at limit **
  18  Normalizat    1.1367        .44223       -.12815E-05   -.86918E-06
  19  Prefactor     .97718        .10768       -.68086E-07    .20561E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 17.1118
  norm       = 0.0001
  Prefactor  = 16.0744
  norm       = 15.9619
  Prefactor  = 0.000100002
  norm       = 5.34458
  Prefactor  = 6.80287
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.6161
  Prefactor  = 0.000100032
  norm       = 2.75629
  Prefactor  = 0.0001
  norm       = 18.0506
  norm       = 1.20256
  Prefactor  = 0.000100025
  Normalizat = 1.1367
  Prefactor  = 0.977182
 **********
 **   18 **HESSE 
 **********

 FCN=   5377.297     FROM HESSE     STATUS=OK           274 CALLS     2276 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    20.725        .38293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.112        41.329        .96816E-04   -1.4880    
   3  norm          .10000E-03    2.4412        .15030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.074        20.233        .99908E-04   -1.4906    
   5  norm          15.962        18.679        .10026E-03   -1.4909    
   6  Prefactor     .10000E-03    256.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.3446        7.0596        .86934E-03   -1.5246    
   8  Prefactor     6.8029        47.113        .15390E-03   -1.5186    
   9  Prefactor     .10000E-03    34.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    14.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.616        18.032        .84230E-04   -1.4756    
  12  Prefactor     .10003E-03    66.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.7563        .99107        .39781E-04   -1.5376    
  14  Prefactor     .10000E-03    1.7012        .18330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.051        21.386        .94268E-04   -1.4858    
  16  norm          1.2026        3.2920        .19869E-03   -1.5489    
  17  Prefactor     .10003E-03    63.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1367        .48231        .55218E-03   -.88582    
  19  Prefactor     .97718        .11870        .15573E-03   -.93494    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39296e-09
Minuit parameter uncertainties:
  1  0.000106111
  2  41.3985
  3  5.55761e-06
  4  20.2415
  5  18.6861
  6  0.00136137
  7  7.06071
  8  35.8455
  9  4.05053e-05
  10  3.40674e-05
  11  18.0367
  12  0.00289982
  13  0.991072
  14  2.47812e-06
  15  21.3949
  16  3.29248
  17  0.00254112
  18  0.484206
  19  0.118733
Done.

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

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  1.000e-04  3.407e-05  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:  9.772e-01  1.187e-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.137e+00  4.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/169706/likelihoodResults_655344001_655603201_4FGL_J0304.5+3349_daily_bin1605.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) = 5377.29748046
delta logL = -0.000322149933709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5377.29715824
delta logL = 6.34845491732e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8396       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1367       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97717       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=   5377.297     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      254 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    916.34        .18142E-01** at limit **
   2  alpha         1.6886        3.2088        .16657        .23138E-07
   3  Normalizat    1.1367        .67957E-01    .55218E-03   -.36664E-03
   4  Prefactor     .97718        .18086E-01    .15573E-03   -.14497E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100007
  alpha      = 1.68861
  Normalizat = 1.1367
  Prefactor  = 0.977181
 **********
 **   18 **HESSE 
 **********

 FCN=   5377.297     FROM HESSE     STATUS=OK            23 CALLS      277 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    26.756        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6886        2.6376        .66627E-02   -.33054    
   3  Normalizat    1.1367        .42483        .11044E-03   -.88582    
   4  Prefactor     .97718        .11337        .31146E-04   -.93494    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30802e-09
Minuit parameter uncertainties:
  1  0.000873048
  2  787.736
  3  0.42612
  4  0.113396
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/169706': 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) = 5377.29715685
delta logL = 1.46191177919e-06

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  1.000e-04  8.730e-04  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.689e+00  7.877e+02  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:  9.772e-01  1.134e-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.137e+00  4.261e-01  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/169706/cmap_HighResolution_655344001_655603201_4FGL_J0304.5+3349_daily_bin1605.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.63e-05', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-12-07 13:55:17.515133', job_id='169706', GAL2='0.98', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1638914117.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.46e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1605' AND source_name='4FGL J0304.5+3349' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 13:55:17 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 169706: <4FGL_J0304.5+3349_daily_bin1605> in cluster <slac> Done

Job <4FGL_J0304.5+3349_daily_bin1605> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Dec  7 13:45:26 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 13:47:18 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:18 2021
Terminated at Tue Dec  7 13:55:18 2021
Results reported at Tue Dec  7 13:55:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0304.5+3349_daily_bin1605 46.1379 33.8261 655344001 655603201 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 :                                   472.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             361.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   479 sec.
    Turnaround time :                            592 sec.

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

