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


Performing analysis on: 4FGL_J0304.5+3349_daily_bin1199
RA = 46.1379, Dec = 33.8261
tmin = 550108801, tmax = 550368001
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='163901', job_status='RUN', time_executed='2021-08-17 15:39:11.978867', time_epoch_executed='1629239951.98' WHERE source_name='4FGL J0304.5+3349' and cadence='daily' and bin_id='1199'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163901

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163901/ft1_4FGL_J0304.5+3349_daily_bin1199.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163901/ft2_4FGL_J0304.5+3349_daily_bin1199.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/163901/ft1_4FGL_J0304.5+3349_daily_bin1199.fits outfile=/scratch/kocevski/163901/ft1_filteredMKT_4FGL_J0304.5+3349_daily_bin1199.fits ra=46.1379 dec=33.8261 rad=12.0 tmin=550108801.0 tmax=550368001.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 12.91
user 2.73
sys 9.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/163901/ft1_filtered_4FGL_J0304.5+3349_daily_bin1199.fits" evtable="EVENTS" scfile=/scratch/kocevski/163901/ft2_4FGL_J0304.5+3349_daily_bin1199.fits sctable="SC_DATA" outfile=/scratch/kocevski/163901/ltcube_550108801_550368001_4FGL_J0304.5+3349_daily_bin1199.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/163901/ft2_4FGL_J0304.5+3349_daily_bin1199.fits
.....................!
real 23.45
user 12.67
sys 9.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163901/ft1_filtered_4FGL_J0304.5+3349_daily_bin1199.fits evtable="EVENTS" scfile=/scratch/kocevski/163901/ft2_4FGL_J0304.5+3349_daily_bin1199.fits sctable="SC_DATA" expcube=/scratch/kocevski/163901/ltcube_550108801_550368001_4FGL_J0304.5+3349_daily_bin1199.fits outfile=/scratch/kocevski/163901/expmap_550108801_550368001_4FGL_J0304.5+3349_daily_bin1199.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/163901/ltcube_550108801_550368001_4FGL_J0304.5+3349_daily_bin1199.fits
.....................!
real 206.20
user 185.70
sys 17.21

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/163901/ft1_filtered_4FGL_J0304.5+3349_daily_bin1199.fits scfile=/scratch/kocevski/163901/ft2_4FGL_J0304.5+3349_daily_bin1199.fits outfile=/scratch/kocevski/163901/cmap_550108801_550368001_4FGL_J0304.5+3349_daily_bin1199.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 9.80
user 0.37
sys 9.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/163901/ft1_filtered_4FGL_J0304.5+3349_daily_bin1199.fits scfile=/scratch/kocevski/163901/ft2_4FGL_J0304.5+3349_daily_bin1199.fits outfile=/scratch/kocevski/163901/cmap_HighResolution_550108801_550368001_4FGL_J0304.5+3349_daily_bin1199.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 10.37
user 0.39
sys 9.09

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .81476       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    112.34       1.0000         .10000E-03   10000.    
     7 'norm      '    43.565       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    58.536       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .29445E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .13248E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.6302       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .23144E-01   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2500       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .83915       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=   1641.791     FROM MIGRAD    STATUS=CONVERGED    372 CALLS     1822 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.7802        .19548E-06** at limit **
   2  Prefactor     .10000E-03    8.2833        .12245E-06** at limit **
   3  norm          .81514        1.1191        .13143E-06    .39772E-04
   4  Prefactor     .10000E-03    14.396        .77523E-06** at limit **
   5  norm          .10000E-03    10.185        .19672E-06** at limit **
   6  Prefactor     112.37        133.82       -.69267E-06   -.44061E-05
   7  norm          43.567        9.5669        .26612E-07   -.11253E-04
   8  Prefactor     .10000E-03    22.421        .55262E-06** at limit **
   9  Prefactor     .10000E-03    58.077        .17902E-07** at limit **
  10  norm          .10000E-03    29.439       -.11849E-06** at limit **
  11  Prefactor     58.429        68.484       -.49950E-07    .51736E-04
  12  Prefactor     .10000E-03    237.19       -.29142E-05** at limit **
  13  norm          .10000E-03    2.7159       -.28077E-05** at limit **
  14  Prefactor     .10000E-03    2.3323       -.22032E-06** at limit **
  15  norm          .10000E-03    29.903        .55089E-07** at limit **
  16  norm          7.6280        8.9993       -.70425E-07    .61866E-05
  17  Prefactor     .10001E-03    6358.5       -.85769E-05** at limit **
  18  Normalizat    1.2499        .59492       -.76159E-07    .30969E-05
  19  Prefactor     .83909        .20771       -.46777E-06    .30624E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.815143
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 112.371
  norm       = 43.5666
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 58.4291
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.62799
  Prefactor  = 0.000100015
  Normalizat = 1.24993
  Prefactor  = 0.839088
 **********
 **   18 **HESSE 
 **********

 FCN=   1641.791     FROM HESSE     STATUS=OK           262 CALLS     2084 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.7851        .76849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.2884        .11390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .81514        1.0815        .47073E-03   -1.5527    
   4  Prefactor     .10000E-03    14.489        .15006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    10.203        .12631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     112.37        133.93        .18977E-03   -1.3584    
   7  norm          43.567        9.5844        .54621E-04   -1.4387    
   8  Prefactor     .10000E-03    22.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    58.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    29.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     58.429        68.397        .26219E-03   -1.4178    
  12  Prefactor     .10000E-03    237.32        .21398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.7097        .64810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.3346        .60429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    29.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.6280        9.0164        .12754E-03   -1.5156    
  17  Prefactor     .10001E-03    6361.9        .18276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2499        .65031        .44802E-03   -.85074    
  19  Prefactor     .83909        .22768        .19596E-03   -.98303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19357e-11
Minuit parameter uncertainties:
  1  1.94478e-06
  2  8.14463e-08
  3  1.08157
  4  4.3443e-06
  5  2.00465e-06
  6  134.295
  7  9.58476
  8  1.19153e-05
  9  2.06346e-05
  10  3.89384e-06
  11  68.4894
  12  8.62192e-05
  13  5.59585e-06
  14  7.74243e-07
  15  2.90282e-06
  16  9.018
  17  0.0132787
  18  0.654615
  19  0.227938
Done.

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

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  1.000e-04  3.894e-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:  8.391e-01  2.279e-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.250e+00  6.546e-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: 2.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/163901/likelihoodResults_550108801_550368001_4FGL_J0304.5+3349_daily_bin1199.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) = 1641.79082291
delta logL = -0.00015909260128

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1641.7906661
delta logL = -2.28135763791e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8339       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2499       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83909       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=   1641.791     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      283 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    894.80        .14225E-01** at limit **
   2  alpha         1.4512        3.1716        .50000       -.20509E-07
   3  Normalizat    1.2499        .70762E-01    .44801E-03   -.17141E-04
   4  Prefactor     .83909        .26121E-01    .19596E-03   -.35091E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 1.45116
  Normalizat = 1.24993
  Prefactor  = 0.839088
 **********
 **   18 **HESSE 
 **********

 FCN=   1641.791     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      310 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8312.5        .28449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4512        4.0288        .20000       -.43293    
   3  Normalizat    1.2499        .29385        .17921E-04   -.85074    
   4  Prefactor     .83909        .10858        .39191E-04   -.98303    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.34083e-09
Minuit parameter uncertainties:
  1  0.0110779
  2  15538.9
  3  0.29424
  4  0.108608
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163901': 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): 102
logL (Free Index) = 1641.79066307
delta logL = 7.48389538785e-07

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  1.000e-04  1.108e-02  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.451e+00  1.554e+04  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:  8.391e-01  1.086e-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.250e+00  2.942e-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/163901/cmap_HighResolution_550108801_550368001_4FGL_J0304.5+3349_daily_bin1199.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.48e-05', job_status='DONE', photon_flux_upper_limit='2.28e-07', time_completed='2021-08-17 15:48:19.541439', job_id='163901', GAL2='0.84', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1629240499.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='7.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1199' AND source_name='4FGL J0304.5+3349' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 15:48:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 163901: <4FGL_J0304.5+3349_daily_bin1199> in cluster <slac> Done

Job <4FGL_J0304.5+3349_daily_bin1199> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 17 15:31:58 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 15:32:25 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:32:25 2021
Terminated at Tue Aug 17 15:48:23 2021
Results reported at Tue Aug 17 15:48:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0304.5+3349_daily_bin1199 46.1379 33.8261 550108801 550368001 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 :                                   665.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             204.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   39 MB
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            985 sec.

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

