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


Performing analysis on: 4FGL_J0304.5+3349_daily_bin1268
RA = 46.1379, Dec = 33.8261
tmin = 567993601, tmax = 568252801
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='163982', job_status='RUN', time_executed='2021-08-17 15:33:34.994059', time_epoch_executed='1629239614.99' WHERE source_name='4FGL J0304.5+3349' and cadence='daily' and bin_id='1268'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163982

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163982/ft1_4FGL_J0304.5+3349_daily_bin1268.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163982/ft2_4FGL_J0304.5+3349_daily_bin1268.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/163982/ft1_4FGL_J0304.5+3349_daily_bin1268.fits outfile=/scratch/kocevski/163982/ft1_filteredMKT_4FGL_J0304.5+3349_daily_bin1268.fits ra=46.1379 dec=33.8261 rad=12.0 tmin=567993601.0 tmax=568252801.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.66
user 2.18
sys 0.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/163982/ft2_4FGL_J0304.5+3349_daily_bin1268.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/163982/ft1_filteredMKT_4FGL_J0304.5+3349_daily_bin1268.fits evtable="EVENTS" outfile="/scratch/kocevski/163982/ft1_filtered_4FGL_J0304.5+3349_daily_bin1268.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.13
user 0.33
sys 0.41

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/163982/ft1_filtered_4FGL_J0304.5+3349_daily_bin1268.fits" evtable="EVENTS" scfile=/scratch/kocevski/163982/ft2_4FGL_J0304.5+3349_daily_bin1268.fits sctable="SC_DATA" outfile=/scratch/kocevski/163982/ltcube_567993601_568252801_4FGL_J0304.5+3349_daily_bin1268.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/163982/ft2_4FGL_J0304.5+3349_daily_bin1268.fits
.....................!
real 16.45
user 15.56
sys 0.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163982/ft1_filtered_4FGL_J0304.5+3349_daily_bin1268.fits evtable="EVENTS" scfile=/scratch/kocevski/163982/ft2_4FGL_J0304.5+3349_daily_bin1268.fits sctable="SC_DATA" expcube=/scratch/kocevski/163982/ltcube_567993601_568252801_4FGL_J0304.5+3349_daily_bin1268.fits outfile=/scratch/kocevski/163982/expmap_567993601_568252801_4FGL_J0304.5+3349_daily_bin1268.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/163982/ltcube_567993601_568252801_4FGL_J0304.5+3349_daily_bin1268.fits
.....................!
real 192.80
user 186.95
sys 4.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/163982/ft1_filtered_4FGL_J0304.5+3349_daily_bin1268.fits scfile=/scratch/kocevski/163982/ft2_4FGL_J0304.5+3349_daily_bin1268.fits outfile=/scratch/kocevski/163982/cmap_567993601_568252801_4FGL_J0304.5+3349_daily_bin1268.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=46.1379 yref=33.8261 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.32
user 0.36
sys 0.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/163982/ft1_filtered_4FGL_J0304.5+3349_daily_bin1268.fits scfile=/scratch/kocevski/163982/ft2_4FGL_J0304.5+3349_daily_bin1268.fits outfile=/scratch/kocevski/163982/cmap_HighResolution_567993601_568252801_4FGL_J0304.5+3349_daily_bin1268.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=46.1379 yref=33.8261 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.05
user 0.39
sys 0.43

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12183E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.4955       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4081       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .43270       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.885       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7532       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.4495       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.4960       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2550       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    120.90       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.5807       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .91769       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6260.337     FROM MIGRAD    STATUS=CONVERGED     74 CALLS     1570 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.1250        .20018E-05** at limit **
   2  Prefactor     7.5088        5.0517        .14879E-04   -.10205E-02
   3  norm          1.4070        .81792       -.42216E-06   -.11889E-02
   4  Prefactor     .10000E-03    5.4842       -.37908E-05** at limit **
   5  norm          .53584        28.839       -.80227E-04   -.56698E-03
   6  Prefactor     .10027E-03    13.522        .21766E-04** at limit **
   7  norm          11.887        3.4189       -.74929E-06    .67286E-04
   8  Prefactor     4.7660        4.1289        .15031E-04   -.15793E-03
   9  Prefactor     .10013E-03    22.482       -.48938E-04** at limit **
  10  norm          .10000E-03    13.167       -.69997E-05** at limit **
  11  Prefactor     9.4506        1.3121        .22912E-05   -.22777E-03
  12  Prefactor     .10002E-03    14.570       -.20150E-04** at limit **
  13  norm          2.4962        .97797       -.22952E-07    .16528E-02
  14  Prefactor     4.2562        3.1709       -.27538E-06   -.35926E-03
  15  norm          .10000E-03    8.6461        .38751E-05** at limit **
  16  norm          .10000E-03    2.9519        .99224E-06** at limit **
  17  Prefactor     120.90        1.0331        .19713E-06   -.13704E-02
  18  Normalizat    1.5797        .33773       -.10929E-05   -.39860E-04
  19  Prefactor     .91781        .11198       -.19111E-06    .17619E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 7.50878
  norm       = 1.40701
  Prefactor  = 0.0001
  norm       = 0.535837
  Prefactor  = 0.000100267
  norm       = 11.8872
  Prefactor  = 4.76604
  Prefactor  = 0.000100128
  norm       = 0.0001
  Prefactor  = 9.45057
  Prefactor  = 0.000100022
  norm       = 2.49616
  Prefactor  = 4.25623
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 120.896
  Normalizat = 1.57971
  Prefactor  = 0.917812
 **********
 **   18 **HESSE 
 **********

 FCN=   6260.337     FROM HESSE     STATUS=OK           312 CALLS     1882 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.9592        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.5088        15.153        .36622E-02   -1.5160    
   3  norm          1.4070        .83790        .91309E-02   -1.5471    
   4  Prefactor     .10000E-03    5.4444        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .53584        8.4882        .76935E-01   -1.5562    
   6  Prefactor     .10027E-03    40.418        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.887        3.4159        .29050E-02   -1.5018    
   8  Prefactor     4.7660        14.262        .46138E-02   -1.5271    
   9  Prefactor     .10013E-03    46.293        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    13.160        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.4506        13.854        .32592E-02   -1.5093    
  12  Prefactor     .10002E-03    43.778        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.4962        1.0022        .64674E-02   -1.5392    
  14  Prefactor     4.2562        3.1934        .48832E-02   -1.5295    
  15  norm          .10000E-03    8.6328        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.8595        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     120.90        123.08        .91504E-03   -1.3504    
  18  Normalizat    1.5797        .33414        .94705E-01   -.75563    
  19  Prefactor     .91781        .10197        .45230E-01   -.95521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.64949e-08
Minuit parameter uncertainties:
  1  3.0381e-05
  2  15.1609
  3  0.837906
  4  1.66922e-05
  5  4.26566
  6  0.00656905
  7  3.416
  8  14.2724
  9  0.00486468
  10  0.000130374
  11  13.8586
  12  0.00196398
  13  1.00223
  14  3.19357
  15  8.84683e-05
  16  1.36675e-06
  17  123.338
  18  0.334609
  19  0.101994
Done.

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

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  1.000e-04  1.304e-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:  9.178e-01  1.020e-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.580e+00  3.346e-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: 9.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.12e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/163982/likelihoodResults_567993601_568252801_4FGL_J0304.5+3349_daily_bin1268.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) = 6260.33750011
delta logL = -0.000361664038792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6260.33713841
delta logL = 2.98214217764e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8455       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5797       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91781       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=   6260.337     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      245 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    796.70        .18142E-01** at limit **
   2  alpha         1.7623        3.1065        .16664       -.54579E-09
   3  Normalizat    1.5797        .59922E-01    .41943E-03    .54196E-03
   4  Prefactor     .91781        .20604E-01    .18126E-03    .11034E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.76228
  Normalizat = 1.57971
  Prefactor  = 0.917812
 **********
 **   18 **HESSE 
 **********

 FCN=   6260.337     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    19.486        .34016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7623        3.7999        .66655E-02   -.29955    
   3  Normalizat    1.5797        .31987        .83887E-04   -.75562    
   4  Prefactor     .91781        .11009        .36253E-04   -.95521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.80225e-10
Minuit parameter uncertainties:
  1  1.76474e-05
  2  762.711
  3  0.320282
  4  0.110121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163982': 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) = 6260.33713723
delta logL = 1.21631455841e-06

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  1.000e-04  1.765e-05  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.762e+00  7.627e+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.178e-01  1.101e-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.580e+00  3.203e-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/163982/cmap_HighResolution_567993601_568252801_4FGL_J0304.5+3349_daily_bin1268.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.12e-05', job_status='DONE', photon_flux_upper_limit='9.51e-08', time_completed='2021-08-17 15:43:53.099970', job_id='163982', GAL2='0.92', fit_tolerance='1e-08', EG2='1.58', EG='1.58', time_epoch_completed='1629240233.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.22e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1268' AND source_name='4FGL J0304.5+3349' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 15:43:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0185>
Subject: Job 163982: <4FGL_J0304.5+3349_daily_bin1268> in cluster <slac> Done

Job <4FGL_J0304.5+3349_daily_bin1268> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 17 15:32:04 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 15:33:02 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:02 2021
Terminated at Tue Aug 17 15:43:53 2021
Results reported at Tue Aug 17 15:43:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0304.5+3349_daily_bin1268 46.1379 33.8261 567993601 568252801 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 :                                   606.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             397.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   651 sec.
    Turnaround time :                            709 sec.

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

