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


Performing analysis on: 4FGL_J0304.5+3349_daily_bin1317
RA = 46.1379, Dec = 33.8261
tmin = 580694401, tmax = 580953601
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='164054', job_status='RUN', time_executed='2021-08-17 15:37:58.110849', time_epoch_executed='1629239878.11' WHERE source_name='4FGL J0304.5+3349' and cadence='daily' and bin_id='1317'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164054

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164054/ft1_4FGL_J0304.5+3349_daily_bin1317.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164054/ft2_4FGL_J0304.5+3349_daily_bin1317.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164054/ft1_4FGL_J0304.5+3349_daily_bin1317.fits outfile=/scratch/kocevski/164054/ft1_filteredMKT_4FGL_J0304.5+3349_daily_bin1317.fits ra=46.1379 dec=33.8261 rad=12.0 tmin=580694401.0 tmax=580953601.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 5.74
user 2.60
sys 2.36

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164054/ft1_filtered_4FGL_J0304.5+3349_daily_bin1317.fits" evtable="EVENTS" scfile=/scratch/kocevski/164054/ft2_4FGL_J0304.5+3349_daily_bin1317.fits sctable="SC_DATA" outfile=/scratch/kocevski/164054/ltcube_580694401_580953601_4FGL_J0304.5+3349_daily_bin1317.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/164054/ft2_4FGL_J0304.5+3349_daily_bin1317.fits
.....................!
real 17.90
user 14.49
sys 2.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164054/ft1_filtered_4FGL_J0304.5+3349_daily_bin1317.fits evtable="EVENTS" scfile=/scratch/kocevski/164054/ft2_4FGL_J0304.5+3349_daily_bin1317.fits sctable="SC_DATA" expcube=/scratch/kocevski/164054/ltcube_580694401_580953601_4FGL_J0304.5+3349_daily_bin1317.fits outfile=/scratch/kocevski/164054/expmap_580694401_580953601_4FGL_J0304.5+3349_daily_bin1317.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/164054/ltcube_580694401_580953601_4FGL_J0304.5+3349_daily_bin1317.fits
.....................!
real 204.90
user 190.05
sys 8.92

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/164054/ft1_filtered_4FGL_J0304.5+3349_daily_bin1317.fits scfile=/scratch/kocevski/164054/ft2_4FGL_J0304.5+3349_daily_bin1317.fits outfile=/scratch/kocevski/164054/cmap_580694401_580953601_4FGL_J0304.5+3349_daily_bin1317.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 2.89
user 0.37
sys 2.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164054/ft1_filtered_4FGL_J0304.5+3349_daily_bin1317.fits scfile=/scratch/kocevski/164054/ft2_4FGL_J0304.5+3349_daily_bin1317.fits outfile=/scratch/kocevski/164054/cmap_HighResolution_580694401_580953601_4FGL_J0304.5+3349_daily_bin1317.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 3.04
user 0.39
sys 2.26

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32643E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.114       1.0000         .10000E-03   10000.    
     3 'norm      '    .57873       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.287       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3784       1.0000         .10000E-03   10000.    
     7 'norm      '    7.9254       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .90342       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11137E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.3425       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    468.64       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .35915       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.4282       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=   4778.037     FROM MIGRAD    STATUS=CONVERGED    666 CALLS     2479 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    13.642        .21244E-02** at limit **
   2  Prefactor     26.113        18.974        .78393E-04   -.22101E-03
   3  norm          .57887        .77740        .67538E-03   -.31916E-02
   4  Prefactor     15.289        11.896        .10244E-03   -.39375E-03
   5  norm          .10000E-03    9.7200        .18142E-02** at limit **
   6  Prefactor     5.4051        126.87        .17328E-03    .13122E-05
   7  norm          7.9257        3.6963        .85237E-04   -.31917E-03
   8  Prefactor     .90931        77.144        .50924E-02   -.28038E-03
   9  Prefactor     .10000E-03    137.92        .18142E-02** at limit **
  10  norm          .10000E-03    18.875        .18142E-02** at limit **
  11  Prefactor     .10000E-03    10.346        .18142E-02** at limit **
  12  Prefactor     .10000E-03    61.106        .18142E-02** at limit **
  13  norm          2.3424        1.1194        .48569E-04   -.24250E-03
  14  Prefactor     .10000E-03    1.2240        .74563E-03** at limit **
  15  norm          .10000E-03    20.733        .18142E-02** at limit **
  16  norm          .10000E-03    2.6468        .10965E-02** at limit **
  17  Prefactor     468.66        320.15        .94631E-04    .86498E-07
  18  Normalizat    .35916        .49028        .85092E-03   -.13193E-03
  19  Prefactor     1.4282        .16375        .17368E-03   -.37110E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100037
  Prefactor  = 26.1133
  norm       = 0.578872
  Prefactor  = 15.2893
  norm       = 0.0001
  Prefactor  = 5.40506
  norm       = 7.92568
  Prefactor  = 0.909314
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.34241
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 468.661
  Normalizat = 0.359156
  Prefactor  = 1.42823
 **********
 **   18 **HESSE 
 **********

 FCN=   4778.037     FROM HESSE     STATUS=OK           250 CALLS     2729 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10004E-03    13.659        .42487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     26.113        18.949        .31357E-05   -1.4685    
   3  norm          .57887        .77406        .27015E-04   -1.5556    
   4  Prefactor     15.289        11.878        .40976E-05   -1.4926    
   5  norm          .10000E-03    9.7223        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.4051        126.85        .69313E-05   -1.5243    
   7  norm          7.9257        3.6959        .34095E-05   -1.5145    
   8  Prefactor     .90931        76.967        .20369E-03   -1.5517    
   9  Prefactor     .10000E-03    137.93        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    18.876        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.347        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    61.106        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3424        1.1192        .19428E-05   -1.5402    
  14  Prefactor     .10000E-03    1.2240        .14913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    20.734        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.6469        .21930E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     468.66        320.08        .94631E-04   -1.1344    
  18  Normalizat    .35916        .48847        .34037E-04   -1.1947    
  19  Prefactor     1.4282        .16347        .34735E-04   -.79570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.68051e-09
Minuit parameter uncertainties:
  1  0.00141791
  2  18.9535
  3  0.77407
  4  11.8798
  5  4.41439e-05
  6  52.4939
  7  3.69597
  8  16.753
  9  5.68366e-05
  10  1.83312e-06
  11  2.85817e-06
  12  8.63348e-06
  13  1.11922
  14  2.20746e-07
  15  7.50052e-06
  16  1.63316e-06
  17  321.32
  18  0.49443
  19  0.163534
Done.

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

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  1.000e-04  1.833e-06  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.428e+00  1.635e-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:  3.592e-01  4.944e-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.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.45e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/164054/likelihoodResults_580694401_580953601_4FGL_J0304.5+3349_daily_bin1317.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) = 4778.0372995
delta logL = -0.000250201563176

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4778.03705474
delta logL = -5.44311751582e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7368       1.0000          .0000       5.0000    
     3 'Normalizat'    .35917       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4282       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=   4778.037     FROM MIGRAD    STATUS=FAILED       105 CALLS      278 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    853.99        .17355E-01** at limit **
   2  alpha         1.8268        3.2070        .20000        .71964E-07
   3  Normalizat    .35918        .56054E-01    .85095E-03    .87919E-03
   4  Prefactor     1.4282        .21769E-01    .17368E-03    .43278E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4778.037     FROM SIMPLEX   STATUS=UNCHANGED    167 CALLS      445 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    853.99        .11706E-02** at limit **
   2  alpha         1.8268        3.2070        .38306E-06    .71964E-07
   3  Normalizat    .35918        .56054E-01    .32462E-07    .87919E-03
   4  Prefactor     1.4282        .21769E-01    .30009E-08    .43278E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4778.037     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      473 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    33.410        .34711E-02** at limit **
   2  alpha         1.8146        3.0761        .80000E-02    .30411E-07
   3  Normalizat    .35918        .39268        .34038E-04    .87735E-03
   4  Prefactor     1.4282        .15361        .34735E-04    .43192E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100005
  alpha      = 1.81464
  Normalizat = 0.359176
  Prefactor  = 1.42823
 **********
 **   18 **HESSE 
 **********

 FCN=   4778.037     FROM HESSE     STATUS=OK            23 CALLS      496 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    31.859        .69421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8146        2.8759        .16000E-02   -.27770    
   3  Normalizat    .35918        .39268        .68076E-05   -1.1947    
   4  Prefactor     1.4282        .15362        .69471E-05   -.79570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38735e-08
Minuit parameter uncertainties:
  1  0.000787256
  2  860.32
  3  0.395744
  4  0.153667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164054': 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) = 4778.03704822
delta logL = 1.07174582809e-06

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  1.000e-04  7.873e-04  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.815e+00  8.603e+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:  1.428e+00  1.537e-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:  3.592e-01  3.957e-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/164054/cmap_HighResolution_580694401_580953601_4FGL_J0304.5+3349_daily_bin1317.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.45e-05', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2021-08-17 15:48:27.928386', job_id='164054', GAL2='1.43', fit_tolerance='1e-08', EG2='0.36', EG='0.36', time_epoch_completed='1629240507.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.43', dlogl='1.07e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1317' AND source_name='4FGL J0304.5+3349' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 15:48:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 164054: <4FGL_J0304.5+3349_daily_bin1317> in cluster <slac> Done

Job <4FGL_J0304.5+3349_daily_bin1317> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 17 15:32:09 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 15:33:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 17 15:33:36 2021
Terminated at Tue Aug 17 15:48:29 2021
Results reported at Tue Aug 17 15:48:29 2021

Your job looked like:

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

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

