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


Performing analysis on: 4FGL_J0304.5+3349_daily_bin1598
RA = 46.1379, Dec = 33.8261
tmin = 653529601, tmax = 653788801
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='719856', job_status='RUN', time_executed='2021-09-20 00:09:32.310194', time_epoch_executed='1632121772.31' WHERE source_name='4FGL J0304.5+3349' and cadence='daily' and bin_id='1598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/719856

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/719856/ft1_4FGL_J0304.5+3349_daily_bin1598.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/719856/ft2_4FGL_J0304.5+3349_daily_bin1598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/719856/ft1_4FGL_J0304.5+3349_daily_bin1598.fits outfile=/scratch/kocevski/719856/ft1_filteredMKT_4FGL_J0304.5+3349_daily_bin1598.fits ra=46.1379 dec=33.8261 rad=12.0 tmin=653529601.0 tmax=653788801.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.16
user 3.87
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/719856/ft2_4FGL_J0304.5+3349_daily_bin1598.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/719856/ft1_filteredMKT_4FGL_J0304.5+3349_daily_bin1598.fits evtable="EVENTS" outfile="/scratch/kocevski/719856/ft1_filtered_4FGL_J0304.5+3349_daily_bin1598.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.27
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/719856/ft1_filtered_4FGL_J0304.5+3349_daily_bin1598.fits evtable="EVENTS" scfile=/scratch/kocevski/719856/ft2_4FGL_J0304.5+3349_daily_bin1598.fits sctable="SC_DATA" expcube=/scratch/kocevski/719856/ltcube_653529601_653788801_4FGL_J0304.5+3349_daily_bin1598.fits outfile=/scratch/kocevski/719856/expmap_653529601_653788801_4FGL_J0304.5+3349_daily_bin1598.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/719856/ltcube_653529601_653788801_4FGL_J0304.5+3349_daily_bin1598.fits
.....................!
real 149.21
user 145.55
sys 3.39

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/719856/ft1_filtered_4FGL_J0304.5+3349_daily_bin1598.fits scfile=/scratch/kocevski/719856/ft2_4FGL_J0304.5+3349_daily_bin1598.fits outfile=/scratch/kocevski/719856/cmap_653529601_653788801_4FGL_J0304.5+3349_daily_bin1598.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.46
user 0.31
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/719856/ft1_filtered_4FGL_J0304.5+3349_daily_bin1598.fits scfile=/scratch/kocevski/719856/ft2_4FGL_J0304.5+3349_daily_bin1598.fits outfile=/scratch/kocevski/719856/cmap_HighResolution_653529601_653788801_4FGL_J0304.5+3349_daily_bin1598.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.46
user 0.32
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73704       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.9311       1.0000         .10000E-03   10000.    
     3 'norm      '    1.6955       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.5274       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.4542       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1374       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.7403       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .58700       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.8894       1.0000         .10000E-03   10000.    
    17 'Prefactor '    59.320       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0463       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0233       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=   11991.21     FROM MIGRAD    STATUS=CONVERGED    392 CALLS     1897 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73651        2.2942       -.42574E-06   -.65392E-03
   2  Prefactor     6.9310        8.0597       -.85636E-06   -.56788E-03
   3  norm          1.6957        .71705        .52644E-07   -.28025E-02
   4  Prefactor     9.5265        5.7354        .10512E-06   -.20581E-02
   5  norm          .10000E-03    4.4397       -.66317E-08** at limit **
   6  Prefactor     .10000E-03    17.125        .60784E-07** at limit **
   7  norm          6.4542        2.4023       -.98164E-09   -.30481E-03
   8  Prefactor     1.1375        11.868       -.89758E-06   -.11681E-03
   9  Prefactor     .10002E-03    46.684       -.60601E-06** at limit **
  10  norm          .10000E-03    8.8440       -.90907E-07** at limit **
  11  Prefactor     .10000E-03    5.9726        .69947E-07** at limit **
  12  Prefactor     .10000E-03    21.674        .72364E-07** at limit **
  13  norm          2.7404        .63138       -.97608E-08    .64817E-03
  14  Prefactor     .58693        1.2428       -.24509E-06    .32190E-03
  15  norm          .10000E-03    4.9436       -.12454E-06** at limit **
  16  norm          1.8894        1.8917       -.17032E-07   -.44803E-03
  17  Prefactor     59.320        59.103       -.15507E-06    .54502E-04
  18  Normalizat    1.0462        .23246        .54547E-06   -.28431E-03
  19  Prefactor     1.0233        .71536E-01    .39160E-07   -.78031E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.73651
  Prefactor  = 6.93102
  norm       = 1.69568
  Prefactor  = 9.52645
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.45419
  Prefactor  = 1.13747
  Prefactor  = 0.000100018
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.74039
  Prefactor  = 0.586929
  norm       = 0.000100001
  norm       = 1.88938
  Prefactor  = 59.3204
  Normalizat = 1.04622
  Prefactor  = 1.0233
 **********
 **   18 **HESSE 
 **********

 FCN=   11991.21     FROM HESSE     STATUS=OK           268 CALLS     2165 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .73651        2.4532        .28184E-03   -1.5536    
   2  Prefactor     6.9310        10.804        .76194E-03   -1.5181    
   3  norm          1.6957        .72107        .53082E-04   -1.5448    
   4  Prefactor     9.5265        5.7323        .12983E-03   -1.5091    
   5  norm          .10000E-03    4.5019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.4542        2.4031        .98631E-04   -1.5200    
   8  Prefactor     1.1375        14.026        .43659E-03   -1.5495    
   9  Prefactor     .10002E-03    46.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    8.8516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.0193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.7404        .63103        .40038E-04   -1.5377    
  14  Prefactor     .58693        1.2942        .17202E-03   -1.5555    
  15  norm          .10000E-03    4.9479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8894        1.8690        .13939E-03   -1.5433    
  17  Prefactor     59.320        59.148        .52091E-04   -1.4166    
  18  Normalizat    1.0462        .26033        .48491E-03   -.91498    
  19  Prefactor     1.0233        .79441E-01    .15655E-03   -.91957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84999e-09
Minuit parameter uncertainties:
  1  2.4535
  2  10.8068
  3  0.721074
  4  5.73267
  5  2.60293e-05
  6  0.000137183
  7  2.40317
  8  7.99062
  9  0.00182762
  10  0.000119154
  11  8.9372e-05
  12  0.000153082
  13  0.631034
  14  1.29431
  15  0.000121223
  16  1.86904
  17  59.2063
  18  0.260652
  19  0.07945
Done.

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

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  1.000e-04  1.192e-04  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.023e+00  7.945e-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:  1.046e+00  2.607e-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: 5.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.88e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/719856/likelihoodResults_653529601_653788801_4FGL_J0304.5+3349_daily_bin1598.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) = 11991.2064452
delta logL = -0.000538357242476

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11991.2059071
delta logL = -2.05725882552e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10509E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8379       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0461       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0233       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=   11991.20     FROM MIGRAD    STATUS=FAILED       178 CALLS      319 TOTAL
                     EDM=   .58E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .89599        719.68        .18142        .52617E-03
   2  alpha         .72680        2.6250        .16655       -.51776E-04
   3  Normalizat    1.0467        .59836E-01    .48491E-03   -.33339E-04
   4  Prefactor     1.0230        .19328E-01    .15655E-03   -.76251E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   11991.20     FROM SIMPLEX   STATUS=UNCHANGED     78 CALLS      397 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .89599        719.68        .66988E-03    .52617E-03
   2  alpha         .72680        2.6250        .96814E-02   -.51776E-04
   3  Normalizat    1.0467        .59836E-01    .24561E-04   -.33339E-04
   4  Prefactor     1.0230        .19328E-01    .76108E-05   -.76251E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11991.20     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      442 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .89595        51.062         .0000        .21507E-02
   2  alpha         .72677        3.4120         .0000        .78296E-06
   3  Normalizat    1.0467        .23607         .0000       -.33292E-04
   4  Prefactor     1.0230        .76230E-01     .0000       -.79882E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.895951
  alpha      = 0.726774
  Normalizat = 1.04672
  Prefactor  = 1.02303
 **********
 **   18 **HESSE 
 **********

 FCN=   11991.20     FROM HESSE     STATUS=OK            27 CALLS      469 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .89595        50.454        .13157E-02   -1.5519    
   2  alpha         .72677        3.3733        .13324E-02   -.78849    
   3  Normalizat    1.0467        .23586        .38793E-05   -.91481    
   4  Prefactor     1.0230        .76152E-01    .12524E-05   -.91966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93382e-11
Minuit parameter uncertainties:
  1  13.458
  2  4.12813
  3  0.236096
  4  0.0761599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/719856': 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) = 11991.2034397
delta logL = 0.00246719271308

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  8.960e-01  1.346e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  7.268e-01  4.128e+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.023e+00  7.616e-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:  1.047e+00  2.361e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/719856/cmap_HighResolution_653529601_653788801_4FGL_J0304.5+3349_daily_bin1598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.88e-05', job_status='DONE', photon_flux_upper_limit='5.75e-08', time_completed='2021-09-20 00:21:41.880439', job_id='719856', GAL2='1.02', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1632122501.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.47e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1598' AND source_name='4FGL J0304.5+3349' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 00:21:41 PDT 2021


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

Job <4FGL_J0304.5+3349_daily_bin1598> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 20 00:05:28 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 20 00:05:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 20 00:05:31 2021
Terminated at Mon Sep 20 00:21:42 2021
Results reported at Mon Sep 20 00:21:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0304.5+3349_daily_bin1598 46.1379 33.8261 653529601 653788801 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 :                                   731.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             309.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            974 sec.

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

