/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 7 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 = 7683
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1304.6-0348_daily_bin378
RA = 196.172, Dec = -3.8139
tmin = 337305601, tmax = 337564801
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='209736', job_status='RUN', time_executed='2021-09-06 20:56:15.180181', time_epoch_executed='1630986975.18' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='378'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209736

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209736/ft1_4FGL_J1304.6-0348_daily_bin378.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209736/ft2_4FGL_J1304.6-0348_daily_bin378.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209736/ft1_4FGL_J1304.6-0348_daily_bin378.fits outfile=/scratch/kocevski/209736/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin378.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=337305601.0 tmax=337564801.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 7.59
user 7.27
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209736/ft1_filtered_4FGL_J1304.6-0348_daily_bin378.fits" evtable="EVENTS" scfile=/scratch/kocevski/209736/ft2_4FGL_J1304.6-0348_daily_bin378.fits sctable="SC_DATA" outfile=/scratch/kocevski/209736/ltcube_337305601_337564801_4FGL_J1304.6-0348_daily_bin378.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/209736/ft2_4FGL_J1304.6-0348_daily_bin378.fits
.....................!
real 14.54
user 14.16
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209736/ft1_filtered_4FGL_J1304.6-0348_daily_bin378.fits evtable="EVENTS" scfile=/scratch/kocevski/209736/ft2_4FGL_J1304.6-0348_daily_bin378.fits sctable="SC_DATA" expcube=/scratch/kocevski/209736/ltcube_337305601_337564801_4FGL_J1304.6-0348_daily_bin378.fits outfile=/scratch/kocevski/209736/expmap_337305601_337564801_4FGL_J1304.6-0348_daily_bin378.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/209736/ltcube_337305601_337564801_4FGL_J1304.6-0348_daily_bin378.fits
.....................!
real 192.09
user 186.24
sys 4.95

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/209736/ft1_filtered_4FGL_J1304.6-0348_daily_bin378.fits scfile=/scratch/kocevski/209736/ft2_4FGL_J1304.6-0348_daily_bin378.fits outfile=/scratch/kocevski/209736/cmap_337305601_337564801_4FGL_J1304.6-0348_daily_bin378.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/209736/ft1_filtered_4FGL_J1304.6-0348_daily_bin378.fits scfile=/scratch/kocevski/209736/ft2_4FGL_J1304.6-0348_daily_bin378.fits outfile=/scratch/kocevski/209736/cmap_HighResolution_337305601_337564801_4FGL_J1304.6-0348_daily_bin378.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/209736/ft1_filtered_4FGL_J1304.6-0348_daily_bin378.fits evtable="EVENTS" scfile=/scratch/kocevski/209736/ft2_4FGL_J1304.6-0348_daily_bin378.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/209736/Model_4FGL_J1304.6-0348_daily_bin378.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/209736/ft1_filtered_4FGL_J1304.6-0348_daily_bin378.fits.....................!
real 73.78
user 72.27
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2285       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .99010       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.326       1.0000         .10000E-03   10000.    
     5 'norm      '    15.943       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6022       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.3791       1.0000         .10000E-03   10000.    
     9 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.4381       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .43687E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .13934E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10922E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.4259       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10639E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.2135       1.0000         .10000E-03   10000.    
    20 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4214       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96170       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=   9910.953     FROM MIGRAD    STATUS=CONVERGED    845 CALLS     2430 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6249        .24390E-03** at limit **
   2  norm          1.2285        .53178        .45694E-04   -.16321E-03
   3  Prefactor     .99453        10.050        .26261E-02   -.10853E-02
   4  Prefactor     13.324        9.8862        .10972E-03   -.33570E-04
   5  norm          15.943        2.4249        .57778E-04   -.80280E-04
   6  Prefactor     2.6030        5.4856        .12645E-02   -.45816E-03
   7  Prefactor     .10000E-03    6.9449        .18142E-02** at limit **
   8  Prefactor     9.4204        28.396        .13086E-03   -.30754E-04
   9  norm          .10000E-03    14.110        .18142E-02** at limit **
  10  norm          1.4378        .26624        .20365E-04   -.16189E-02
  11  Prefactor     .10008E-03    92.771        .70818E-02** at limit **
  12  norm          .10000E-03    6.8066        .30965E-02** at limit **
  13  norm          .10000E-03    2.4653        .15261E-02** at limit **
  14  Prefactor     .10001E-03    21.704        .42550E-02** at limit **
  15  Prefactor     .10000E-03    6.3420        .18142E-02** at limit **
  16  Prefactor     9.4338        7.7510        .13053E-03   -.28375E-03
  17  Prefactor     .10000E-03    43.079        .36285E-03** at limit **
  18  norm          .10000E-03    .39507        .12069E-03** at limit **
  19  norm          1.2148        2.5315        .22458E-03   -.29361E-03
  20  norm          .10000E-03    13.603        .18142E-02** at limit **
  21  Normalizat    1.4216        .23110        .30398E-03   -.24224E-03
  22  Prefactor     .96174        .15887        .25435E-03   -.45252E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.22851
  Prefactor  = 0.994532
  Prefactor  = 13.3236
  norm       = 15.9427
  Prefactor  = 2.603
  Prefactor  = 0.0001
  Prefactor  = 9.42042
  norm       = 0.0001
  norm       = 1.43779
  Prefactor  = 0.00010008
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 9.43376
  Prefactor  = 0.000100005
  norm       = 0.0001
  norm       = 1.21483
  norm       = 0.0001
  Normalizat = 1.42161
  Prefactor  = 0.961739
 **********
 **   18 **HESSE 
 **********

 FCN=   9910.953     FROM HESSE     STATUS=OK           322 CALLS     2752 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6249        .48781E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2285        .53155        .18278E-05   -1.5486    
   3  Prefactor     .99453        10.017        .10505E-03   -1.5509    
   4  Prefactor     13.324        9.8858        .43890E-05   -1.4978    
   5  norm          15.943        2.4248        .23111E-05   -1.4909    
   6  Prefactor     2.6030        5.4803        .50581E-04   -1.5385    
   7  Prefactor     .10000E-03    6.9452        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.4204        28.401        .52344E-05   -1.5094    
   9  norm          .10000E-03    14.112        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4378        .26623        .81462E-06   -1.5468    
  11  Prefactor     .10008E-03    95.211        .28327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.8665        .61929E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.4653        .30521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    21.931        .85099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.3426        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.4338        7.7494        .52213E-05   -1.5094    
  17  Prefactor     .10000E-03    43.081        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .39507        .24138E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.2148        2.5313        .89831E-05   -1.5488    
  20  norm          .10000E-03    13.604        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4216        .23127        .60796E-04   -.80006    
  22  Prefactor     .96174        .15899        .50870E-04   -.94016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.90841e-09
Minuit parameter uncertainties:
  1  3.75526e-06
  2  0.531557
  3  6.31355
  4  9.88697
  5  2.42486
  6  5.4814
  7  2.89962e-06
  8  28.4416
  9  1.92113e-05
  10  0.266234
  11  0.00554014
  12  0.000195426
  13  9.89804e-07
  14  0.000852048
  15  9.5749e-06
  16  7.75022
  17  0.000917182
  18  1.99146e-06
  19  2.53148
  20  1.65805e-06
  21  0.231442
  22  0.15907
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.001e-04  5.540e-03  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:  9.617e-01  1.591e-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.422e+00  2.314e-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: 4.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/209736/likelihoodResults_337305601_337564801_4FGL_J1304.6-0348_daily_bin378.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) = 9910.95289767
delta logL = -5.00211754115e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9910.95284837
delta logL = -7.16752765584e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50255E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4812       1.0000          .0000       10.000    
     3 'Normalizat'    1.4216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96174       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=   9910.953     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      244 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    .24149E-01    .15523    ** at limit **
   2  Index         2.4835        6.2895        .50000       -.25349E-05
   3  Normalizat    1.4216        .25224E-03    .68712E-01   -.18217E-03
   4  Prefactor     .96174        .17882E-03    .45787E-01    .20793E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 2.48351
  Normalizat = 1.42161
  Prefactor  = 0.961744
 **********
 **   18 **HESSE 
 **********

 FCN=   9910.953     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      287 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    .37760E-01    .11732       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4835        7.0269        .50000       -.52741    
   3  Normalizat    1.4216        .28069E-03    .30398E-03   -.80006    
   4  Prefactor     .96174        .19910E-03    .25435E-03   -.94016    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.61963e-11
Minuit parameter uncertainties:
  1  3.1582e-05
  2  12.645
  3  0.000280688
  4  0.000199099
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209736': 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) = 9910.95284737
delta logL = 2.78332663584e-07

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  3.158e-05  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.484e+00  1.265e+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:  9.617e-01  1.991e-04  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.422e+00  2.807e-04  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/209736/cmap_HighResolution_337305601_337564801_4FGL_J1304.6-0348_daily_bin378.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.49e-03', job_status='DONE', photon_flux_upper_limit='4.59e-08', time_completed='2021-09-06 21:11:47.519955', job_id='209736', GAL2='0.96', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1630987907.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='378' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:11:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 209736: <4FGL_J1304.6-0348_daily_bin378> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin378> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 20:55:27 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 20:55:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 20:55:59 2021
Terminated at Mon Sep  6 21:11:48 2021
Results reported at Mon Sep  6 21:11:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin378 196.172 -3.8139 337305601 337564801 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 :                                   926.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            981 sec.

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

