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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin949
RA = 196.172, Dec = -3.8139
tmin = 485308801, tmax = 485568001
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='214871', job_status='RUN', time_executed='2021-09-06 21:11:18.251871', time_epoch_executed='1630987878.25' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='949'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/214871

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/214871/ft1_4FGL_J1304.6-0348_daily_bin949.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/214871/ft2_4FGL_J1304.6-0348_daily_bin949.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/214871/ft1_4FGL_J1304.6-0348_daily_bin949.fits outfile=/scratch/kocevski/214871/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin949.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=485308801.0 tmax=485568001.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.87
user 5.53
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/214871/ft2_4FGL_J1304.6-0348_daily_bin949.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/214871/ft2_4FGL_J1304.6-0348_daily_bin949.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/214871/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin949.fits evtable="EVENTS" outfile="/scratch/kocevski/214871/ft1_filtered_4FGL_J1304.6-0348_daily_bin949.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.56
user 0.37
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/214871/ft1_filtered_4FGL_J1304.6-0348_daily_bin949.fits" evtable="EVENTS" scfile=/scratch/kocevski/214871/ft2_4FGL_J1304.6-0348_daily_bin949.fits sctable="SC_DATA" outfile=/scratch/kocevski/214871/ltcube_485308801_485568001_4FGL_J1304.6-0348_daily_bin949.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/214871/ft2_4FGL_J1304.6-0348_daily_bin949.fits
.....................!
real 19.45
user 19.00
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/214871/ft1_filtered_4FGL_J1304.6-0348_daily_bin949.fits evtable="EVENTS" scfile=/scratch/kocevski/214871/ft2_4FGL_J1304.6-0348_daily_bin949.fits sctable="SC_DATA" expcube=/scratch/kocevski/214871/ltcube_485308801_485568001_4FGL_J1304.6-0348_daily_bin949.fits outfile=/scratch/kocevski/214871/expmap_485308801_485568001_4FGL_J1304.6-0348_daily_bin949.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/214871/ltcube_485308801_485568001_4FGL_J1304.6-0348_daily_bin949.fits
.....................!
real 195.51
user 190.00
sys 4.96

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1304.6-0348 @ 196.172 -3.8139

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/214871/ft1_filtered_4FGL_J1304.6-0348_daily_bin949.fits scfile=/scratch/kocevski/214871/ft2_4FGL_J1304.6-0348_daily_bin949.fits outfile=/scratch/kocevski/214871/cmap_485308801_485568001_4FGL_J1304.6-0348_daily_bin949.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=196.172 yref=-3.8139 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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/214871/ft1_filtered_4FGL_J1304.6-0348_daily_bin949.fits scfile=/scratch/kocevski/214871/ft2_4FGL_J1304.6-0348_daily_bin949.fits outfile=/scratch/kocevski/214871/cmap_HighResolution_485308801_485568001_4FGL_J1304.6-0348_daily_bin949.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=196.172 yref=-3.8139 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.60
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/214871/ft1_filtered_4FGL_J1304.6-0348_daily_bin949.fits evtable="EVENTS" scfile=/scratch/kocevski/214871/ft2_4FGL_J1304.6-0348_daily_bin949.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/214871/Model_4FGL_J1304.6-0348_daily_bin949.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/214871/ft1_filtered_4FGL_J1304.6-0348_daily_bin949.fits.....................!
real 58.01
user 56.53
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/214871/ft1_filtered_4FGL_J1304.6-0348_daily_bin949.fits', '/scratch/kocevski/214871/ft2_4FGL_J1304.6-0348_daily_bin949.fits', expMap='/scratch/kocevski/214871/expmap_485308801_485568001_4FGL_J1304.6-0348_daily_bin949.fits', expCube='/scratch/kocevski/214871/ltcube_485308801_485568001_4FGL_J1304.6-0348_daily_bin949.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/214871/Model_4FGL_J1304.6-0348_daily_bin949.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1304.6-0348'

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  2.667e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  2.075e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/214871/ft1_filtered_4FGL_J1304.6-0348_daily_bin949.fits
Spacecraft file(s): /scratch/kocevski/214871/ft2_4FGL_J1304.6-0348_daily_bin949.fits
Exposure map: /scratch/kocevski/214871/expmap_485308801_485568001_4FGL_J1304.6-0348_daily_bin949.fits
Exposure cube: /scratch/kocevski/214871/ltcube_485308801_485568001_4FGL_J1304.6-0348_daily_bin949.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/214871/Model_4FGL_J1304.6-0348_daily_bin949.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) = 7047.78241575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3139       1.0000         .10000E-03   10000.    
     2 'norm      '    .23123       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.278       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.727       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1189       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.550       1.0000         .10000E-03   10000.    
     9 'norm      '    19.020       1.0000         .10000E-03   10000.    
    10 'norm      '    .89752       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.7019       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9346       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.299       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0428       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .38445       1.0000         .10000E-03   10000.    
    19 'norm      '    15.821       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.7341       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .65830       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7047.776     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2926 TOTAL
                     EDM=   .74E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3140        3.3258        .11232E-07   -.16143E-05
   2  norm          .23119        .42324        .73833E-07   -.28143E-04
   3  Prefactor     10.278        6.7523        .28741E-07    .11449E-05
   4  Prefactor     18.727        12.360        .31124E-06   -.47299E-05
   5  norm          1.1189        1.0988        .19294E-07    .19917E-04
   6  Prefactor     .10000E-03    5.3969       -.35373E-07** at limit **
   7  Prefactor     .10000E-03    44.363       -.29147E-06** at limit **
   8  Prefactor     24.529        30.963        .23164E-05    .18173E-04
   9  norm          19.023        20.599       -.10970E-06   -.21506E-05
  10  norm          .89761        .24429       -.13934E-08    .97603E-03
  11  Prefactor     .10000E-03    17.891       -.21934E-07** at limit **
  12  norm          8.7011        8.5356        .54462E-07   -.40655E-05
  13  norm          .10000E-03    3.0983       -.33594E-09** at limit **
  14  Prefactor     2.9331        6.9199        .41117E-05   -.22391E-04
  15  Prefactor     11.299        14.011        .11818E-06   -.25182E-06
  16  Prefactor     5.0423        5.0371        .18766E-07   -.95464E-06
  17  Prefactor     .10000E-03    31.804        .45108E-06** at limit **
  18  norm          .38461        1.1107        .26940E-06    .14356E-04
  19  norm          15.813        4.8900       -.13560E-06   -.17523E-03
  20  norm          .10000E-03    9.5810        .62502E-08** at limit **
  21  Normalizat    1.7341        .22362       -.27340E-06   -.11466E-04
  22  Prefactor     .65828        .14830       -.63357E-06   -.22174E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.314
  norm       = 0.231187
  Prefactor  = 10.2779
  Prefactor  = 18.7271
  norm       = 1.11893
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.5288
  norm       = 19.0231
  norm       = 0.897614
  Prefactor  = 0.0001
  norm       = 8.70106
  norm       = 0.0001
  Prefactor  = 2.93309
  Prefactor  = 11.2992
  Prefactor  = 5.04234
  Prefactor  = 0.0001
  norm       = 0.384612
  norm       = 15.8128
  norm       = 0.0001
  Normalizat = 1.73406
  Prefactor  = 0.658275
 **********
 **   18 **HESSE 
 **********

 FCN=   7047.776     FROM HESSE     STATUS=OK           350 CALLS     3276 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3140        3.3243        .10816E-03   -1.5205    
   2  norm          .23119        .41165        .70903E-04   -1.5612    
   3  Prefactor     10.278        6.7501        .12498E-03   -1.5067    
   4  Prefactor     18.727        12.373        .46276E-03   -1.4842    
   5  norm          1.1189        1.1006        .84604E-04   -1.5496    
   6  Prefactor     .10000E-03    5.4733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    44.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.529        30.958        .80846E-04   -1.4717    
   9  norm          19.023        20.589        .91838E-04   -1.4835    
  10  norm          .89761        .24484        .20406E-04   -1.5518    
  11  Prefactor     .10000E-03    17.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.7011        8.5333        .13588E-03   -1.5118    
  13  norm          .10000E-03    3.1034        .14432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.9331        6.9201        .11856E-02   -1.5365    
  15  Prefactor     11.299        14.028        .11918E-03   -1.5036    
  16  Prefactor     5.0423        5.0397        .17906E-03   -1.5259    
  17  Prefactor     .10000E-03    31.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .38461        1.1055        .14228E-03   -1.5584    
  19  norm          15.813        4.8790        .98819E-04   -1.4912    
  20  norm          .10000E-03    9.5824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.7341        .26593        .26832E-03   -.71398    
  22  Prefactor     .65828        .17541        .27809E-03   -1.0519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84067e-10
Minuit parameter uncertainties:
  1  3.32435
  2  0.411656
  3  6.75056
  4  12.3744
  5  1.10063
  6  4.79967e-06
  7  2.96376e-05
  8  30.9784
  9  20.597
  10  0.244839
  11  3.08641e-07
  12  8.53452
  13  7.24008e-08
  14  6.92202
  15  14.0318
  16  5.04014
  17  7.04965e-05
  18  1.10561
  19  4.87912
  20  1.07814e-06
  21  0.26615
  22  0.175553
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  3.086e-07  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  2.075e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
604    Prefactor:  6.583e-01  1.756e-01  0.000e+00  1.000e+01 ( 1.000e+00)
605        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
606        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
603   Normalization:  1.734e+00  2.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 196.172 -3.814
Photon Flux Upper Limit: 5.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/214871/likelihoodResults_485308801_485568001_4FGL_J1304.6-0348_daily_bin949.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) = 7047.77665256
delta logL = -0.000265243355898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7047.77639257
delta logL = -5.25476025359e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12104E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8532       1.0000          .0000       10.000    
     3 'Normalizat'    1.7340       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65828       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7047.776     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      251 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.726        .90712E-02** at limit **
   2  Index         2.8179        5.1719        .50000        .41367E-04
   3  Normalizat    1.7341        .11978E-01    .60679E-01   -.63147E-05
   4  Prefactor     .65828        .81543E-02    .62861E-01    .12892E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.81791
  Normalizat = 1.73406
  Prefactor  = 0.658275
 **********
 **   18 **HESSE 
 **********

 FCN=   7047.776     FROM HESSE     STATUS=OK            31 CALLS      282 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.7191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8179        6.4088        .50000       -.45161    
   3  Normalizat    1.7341        .25519        .26832E-03   -.71398    
   4  Prefactor     .65828        .17353        .27809E-03   -1.0519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80584e-09
Minuit parameter uncertainties:
  1  0.000161485
  2  4.99233
  3  0.255388
  4  0.173671
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/214871': 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) = 7047.77639084
delta logL = -3.52038114215e-06

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.615e-04  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.818e+00  4.992e+00  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  2.075e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
604    Prefactor:  6.583e-01  1.737e-01  0.000e+00  1.000e+01 ( 1.000e+00)
605        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
606        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
603   Normalization:  1.734e+00  2.554e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 196.172 -3.814

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/214871/cmap_HighResolution_485308801_485568001_4FGL_J1304.6-0348_daily_bin949.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.38e-03', job_status='DONE', photon_flux_upper_limit='5.75e-08', time_completed='2021-09-06 21:24:46.236788', job_id='214871', GAL2='0.66', fit_tolerance='1e-08', EG2='1.73', EG='1.73', time_epoch_completed='1630988686.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='-3.52e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='949' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:24:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 214871: <4FGL_J1304.6-0348_daily_bin949> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin949> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 21:10:43 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 21:11:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 21:11:08 2021
Terminated at Mon Sep  6 21:24:47 2021
Results reported at Mon Sep  6 21:24:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin949 196.172 -3.8139 485308801 485568001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1304.6-0348 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   804.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            844 sec.

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

