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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin974
RA = 196.172, Dec = -3.8139
tmin = 491788801, tmax = 492048001
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='214906', job_status='RUN', time_executed='2021-09-06 21:15:45.015658', time_epoch_executed='1630988145.02' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/214906

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/214906/ft1_4FGL_J1304.6-0348_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/214906/ft2_4FGL_J1304.6-0348_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/214906/ft1_4FGL_J1304.6-0348_daily_bin974.fits outfile=/scratch/kocevski/214906/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin974.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=491788801.0 tmax=492048001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.24
user 3.99
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/214906/ft2_4FGL_J1304.6-0348_daily_bin974.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/214906/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin974.fits evtable="EVENTS" outfile="/scratch/kocevski/214906/ft1_filtered_4FGL_J1304.6-0348_daily_bin974.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.49
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/214906/ft1_filtered_4FGL_J1304.6-0348_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/214906/ft2_4FGL_J1304.6-0348_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/214906/ltcube_491788801_492048001_4FGL_J1304.6-0348_daily_bin974.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/214906/ft2_4FGL_J1304.6-0348_daily_bin974.fits
.....................!
real 13.04
user 12.70
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/214906/ft1_filtered_4FGL_J1304.6-0348_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/214906/ft2_4FGL_J1304.6-0348_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/214906/ltcube_491788801_492048001_4FGL_J1304.6-0348_daily_bin974.fits outfile=/scratch/kocevski/214906/expmap_491788801_492048001_4FGL_J1304.6-0348_daily_bin974.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/214906/ltcube_491788801_492048001_4FGL_J1304.6-0348_daily_bin974.fits
.....................!
real 192.30
user 186.42
sys 5.38

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/214906/ft1_filtered_4FGL_J1304.6-0348_daily_bin974.fits scfile=/scratch/kocevski/214906/ft2_4FGL_J1304.6-0348_daily_bin974.fits outfile=/scratch/kocevski/214906/cmap_491788801_492048001_4FGL_J1304.6-0348_daily_bin974.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.59
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/214906/ft1_filtered_4FGL_J1304.6-0348_daily_bin974.fits scfile=/scratch/kocevski/214906/ft2_4FGL_J1304.6-0348_daily_bin974.fits outfile=/scratch/kocevski/214906/cmap_HighResolution_491788801_492048001_4FGL_J1304.6-0348_daily_bin974.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/214906/ft1_filtered_4FGL_J1304.6-0348_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/214906/ft2_4FGL_J1304.6-0348_daily_bin974.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/214906/Model_4FGL_J1304.6-0348_daily_bin974.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/214906/ft1_filtered_4FGL_J1304.6-0348_daily_bin974.fits.....................!
real 54.58
user 53.09
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/214906/ft1_filtered_4FGL_J1304.6-0348_daily_bin974.fits', '/scratch/kocevski/214906/ft2_4FGL_J1304.6-0348_daily_bin974.fits', expMap='/scratch/kocevski/214906/expmap_491788801_492048001_4FGL_J1304.6-0348_daily_bin974.fits', expCube='/scratch/kocevski/214906/ltcube_491788801_492048001_4FGL_J1304.6-0348_daily_bin974.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/214906/Model_4FGL_J1304.6-0348_daily_bin974.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/214906/ft1_filtered_4FGL_J1304.6-0348_daily_bin974.fits
Spacecraft file(s): /scratch/kocevski/214906/ft2_4FGL_J1304.6-0348_daily_bin974.fits
Exposure map: /scratch/kocevski/214906/expmap_491788801_492048001_4FGL_J1304.6-0348_daily_bin974.fits
Exposure cube: /scratch/kocevski/214906/ltcube_491788801_492048001_4FGL_J1304.6-0348_daily_bin974.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/214906/Model_4FGL_J1304.6-0348_daily_bin974.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) = 6472.03652258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3899       1.0000         .10000E-03   10000.    
     2 'norm      '    2.3327       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .90917       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.9365       1.0000         .10000E-03   10000.    
     5 'norm      '    .17441E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.0651       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    56.778       1.0000         .10000E-03   10000.    
     9 'norm      '    52.782       1.0000         .10000E-03   10000.    
    10 'norm      '    .73553       1.0000         .10000E-03   10000.    
    11 'Prefactor '    41.043       1.0000         .10000E-03   10000.    
    12 'norm      '    5.6564       1.0000         .10000E-03   10000.    
    13 'norm      '    3.4721       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.367       1.0000         .10000E-03   10000.    
    18 'norm      '    .11886       1.0000         .10000E-03   10000.    
    19 'norm      '    16.735       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5625       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83087       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=   6472.035     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2431 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3899        3.6378       -.24083E-07   -.14252E-03
   2  norm          2.3326        .90887       -.83576E-07   -.30399E-02
   3  Prefactor     .91035        10.155        .25119E-05    .56555E-04
   4  Prefactor     8.9370        9.3202        .19648E-06   -.10354E-04
   5  norm          .10006E-03    11.868        .80689E-05** at limit **
   6  Prefactor     9.0645        10.016        .16608E-07   -.10260E-03
   7  Prefactor     .10000E-03    46.935       -.43669E-06** at limit **
   8  Prefactor     56.779        39.909        .36838E-06    .17315E-04
   9  norm          52.781        34.101       -.10711E-06   -.51070E-04
  10  norm          .73555        .27214        .12421E-07   -.46099E-03
  11  Prefactor     41.038        64.015       -.12941E-05   -.56523E-04
  12  norm          5.6585        13.575        .50112E-06   -.11441E-04
  13  norm          3.4721        5.9143       -.26670E-05   -.87148E-03
  14  Prefactor     .10000E-03    9.6386       -.21558E-06** at limit **
  15  Prefactor     .10000E-03    8.9260       -.21093E-06** at limit **
  16  Prefactor     .10006E-03    8.4814       -.24824E-05** at limit **
  17  Prefactor     36.374        31.139        .69089E-06   -.22295E-03
  18  norm          .12005        1.1176        .58628E-06    .39134E-03
  19  norm          16.735        6.9653       -.28713E-06   -.64690E-03
  20  norm          .10000E-03    14.078       -.17379E-05** at limit **
  21  Normalizat    1.5624        .26721        .40828E-06   -.63466E-03
  22  Prefactor     .83097        .16751       -.11242E-05   -.78321E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.3899
  norm       = 2.33262
  Prefactor  = 0.910353
  Prefactor  = 8.93702
  norm       = 0.000100057
  Prefactor  = 9.06451
  Prefactor  = 0.0001
  Prefactor  = 56.7795
  norm       = 52.7807
  norm       = 0.735549
  Prefactor  = 41.0384
  norm       = 5.65851
  norm       = 3.47205
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100063
  Prefactor  = 36.3738
  norm       = 0.120054
  norm       = 16.7353
  norm       = 0.000100001
  Normalizat = 1.56238
  Prefactor  = 0.83097
 **********
 **   18 **HESSE 
 **********

 FCN=   6472.035     FROM HESSE     STATUS=OK           348 CALLS     2779 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3899        3.6301        .13448E-03   -1.5289    
   2  norm          2.3326        .89459        .44348E-04   -1.5402    
   3  Prefactor     .91035        30.507        .45711E-02   -1.5517    
   4  Prefactor     8.9370        9.3362        .13408E-03   -1.5110    
   5  norm          .10006E-03    15.553        .16631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.0645        9.9285        .13312E-03   -1.5106    
   7  Prefactor     .10000E-03    47.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     56.779        40.023        .53238E-04   -1.4199    
   9  norm          52.781        34.090        .27603E-03   -1.4254    
  10  norm          .73555        .27187        .23520E-04   -1.5536    
  11  Prefactor     41.038        63.909        .62570E-04   -1.4426    
  12  norm          5.6585        13.539        .16890E-03   -1.5232    
  13  norm          3.4721        6.1859        .10851E-02   -1.5335    
  14  Prefactor     .10000E-03    9.9341        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.9298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10006E-03    13.822        .33027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     36.374        31.124        .66457E-04   -1.4501    
  18  norm          .12005        2.7647        .16160E-02   -1.5639    
  19  norm          16.735        6.9828        .97904E-04   -1.4890    
  20  norm          .10000E-03    14.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5624        .31513        .30933E-03   -.76040    
  22  Prefactor     .83097        .19863        .26770E-03   -.98597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08829e-08
Minuit parameter uncertainties:
  1  3.63029
  2  0.894597
  3  10.5452
  4  9.33776
  5  0.00189138
  6  9.93027
  7  1.42971e-06
  8  40.0416
  9  34.1024
  10  0.271868
  11  64.0158
  12  13.5467
  13  6.18706
  14  0.00022361
  15  7.44106e-06
  16  0.001866
  17  31.1383
  18  1.15182
  19  6.98311
  20  0.000190545
  21  0.315529
  22  0.198804
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  4.104e+01  6.402e+01  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:  8.310e-01  1.988e-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.562e+00  3.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.65
Ra Dec: 196.172 -3.814
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/214906/likelihoodResults_491788801_492048001_4FGL_J1304.6-0348_daily_bin974.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): 0
logL (Free Index) = 6471.99114797
delta logL = 0.0442839856605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6471.98862405
delta logL = 0.0468079092461

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.891       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8872       1.0000          .0000       10.000    
     3 'Normalizat'    1.5722       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82689       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6471.989     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      286 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.886        78.923        .55675E-04    .15686E-03
   2  Index         1.8871        .91770        .99549E-02    .11797E-03
   3  Normalizat    1.5721        .30041        .30856E-03   -.18967E-03
   4  Prefactor     .82693        .19772        .26828E-03   -.25129E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.8855
  Index      = 1.88715
  Normalizat = 1.57211
  Prefactor  = 0.826927
 **********
 **   18 **HESSE 
 **********

 FCN=   6471.989     FROM HESSE     STATUS=OK            23 CALLS      309 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.886        78.042        .11135E-04   -1.4266    
   2  Index         1.8871        .90757        .39820E-03   -.67202    
   3  Normalizat    1.5721        .30057        .61713E-04   -.75772    
   4  Prefactor     .82693        .19787        .10731E-04   -.98743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.58068e-10
Minuit parameter uncertainties:
  1  78.1965
  2  0.915916
  3  0.300915
  4  0.198043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/214906': 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) = 6471.98862402
delta logL = 0.0468079394486

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  5.189e+01  7.820e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  1.887e+00  9.159e-01  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:  8.269e-01  1.980e-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.572e+00  3.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/214906/cmap_HighResolution_491788801_492048001_4FGL_J1304.6-0348_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.60e-03', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-09-06 21:27:18.603698', job_id='214906', GAL2='0.83', fit_tolerance='1e-08', EG2='1.57', EG='1.56', time_epoch_completed='1630988838.6', return_code2='0', ts='0.65', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='4.68e-02', ts2='0.75', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='974' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:27:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 214906: <4FGL_J1304.6-0348_daily_bin974> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin974> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 21:10:45 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 21:11:40 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:40 2021
Terminated at Mon Sep  6 21:27:19 2021
Results reported at Mon Sep  6 21:27:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin974 196.172 -3.8139 491788801 492048001 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 :                                   688.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            994 sec.

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

