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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin292
RA = 196.172, Dec = -3.8139
tmin = 315014401, tmax = 315273601
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='208538', job_status='RUN', time_executed='2021-09-06 20:53:07.739000', time_epoch_executed='1630986787.74' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='292'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208538

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208538/ft1_4FGL_J1304.6-0348_daily_bin292.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208538/ft2_4FGL_J1304.6-0348_daily_bin292.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208538/ft1_4FGL_J1304.6-0348_daily_bin292.fits outfile=/scratch/kocevski/208538/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin292.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=315014401.0 tmax=315273601.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 3.59
user 3.35
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/208538/ft1_filtered_4FGL_J1304.6-0348_daily_bin292.fits" evtable="EVENTS" scfile=/scratch/kocevski/208538/ft2_4FGL_J1304.6-0348_daily_bin292.fits sctable="SC_DATA" outfile=/scratch/kocevski/208538/ltcube_315014401_315273601_4FGL_J1304.6-0348_daily_bin292.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/208538/ft2_4FGL_J1304.6-0348_daily_bin292.fits
.....................!
real 14.73
user 14.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208538/ft1_filtered_4FGL_J1304.6-0348_daily_bin292.fits evtable="EVENTS" scfile=/scratch/kocevski/208538/ft2_4FGL_J1304.6-0348_daily_bin292.fits sctable="SC_DATA" expcube=/scratch/kocevski/208538/ltcube_315014401_315273601_4FGL_J1304.6-0348_daily_bin292.fits outfile=/scratch/kocevski/208538/expmap_315014401_315273601_4FGL_J1304.6-0348_daily_bin292.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/208538/ltcube_315014401_315273601_4FGL_J1304.6-0348_daily_bin292.fits
.....................!
real 192.34
user 186.52
sys 5.18

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/208538/ft1_filtered_4FGL_J1304.6-0348_daily_bin292.fits scfile=/scratch/kocevski/208538/ft2_4FGL_J1304.6-0348_daily_bin292.fits outfile=/scratch/kocevski/208538/cmap_315014401_315273601_4FGL_J1304.6-0348_daily_bin292.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/208538/ft1_filtered_4FGL_J1304.6-0348_daily_bin292.fits scfile=/scratch/kocevski/208538/ft2_4FGL_J1304.6-0348_daily_bin292.fits outfile=/scratch/kocevski/208538/cmap_HighResolution_315014401_315273601_4FGL_J1304.6-0348_daily_bin292.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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/208538/ft1_filtered_4FGL_J1304.6-0348_daily_bin292.fits evtable="EVENTS" scfile=/scratch/kocevski/208538/ft2_4FGL_J1304.6-0348_daily_bin292.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/208538/Model_4FGL_J1304.6-0348_daily_bin292.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/208538/ft1_filtered_4FGL_J1304.6-0348_daily_bin292.fits.....................!
real 70.22
user 68.67
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2683       1.0000         .10000E-03   10000.    
     2 'norm      '    3.5433       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.992       1.0000         .10000E-03   10000.    
     5 'norm      '    1.0555       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0031       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.916       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.4660       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9375       1.0000         .10000E-03   10000.    
    12 'norm      '    10.638       1.0000         .10000E-03   10000.    
    13 'norm      '    15.308       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.862       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.5078       1.0000         .10000E-03   10000.    
    19 'norm      '    5.3076       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4141       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96499       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=   9014.020     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2428 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2683        2.9166       -.12686E-06   -.92973E-04
   2  norm          3.5434        .84782       -.39894E-07    .77366E-03
   3  Prefactor     .10000E-03    2.8309       -.12052E-07** at limit **
   4  Prefactor     37.993        15.957       -.95326E-06    .49465E-04
   5  norm          1.0555        1.6079       -.54641E-06   -.14611E-02
   6  Prefactor     1.0217        7.2189       -.10273E-05   -.22726E-03
   7  Prefactor     .10000E-03    50.682        .21291E-05** at limit **
   8  Prefactor     19.918        54.530        .20849E-05    .71254E-04
   9  norm          .10000E-03    33.571       -.43695E-06** at limit **
  10  norm          2.4660        .39752        .28829E-06    .29516E-02
  11  Prefactor     4.8828        195.62       -.21156E-03    .13757E-04
  12  norm          10.641        9.0337        .45473E-05    .33619E-03
  13  norm          15.308        12.118        .66013E-07    .17706E-04
  14  Prefactor     .10000E-03    2.4203       -.46062E-07** at limit **
  15  Prefactor     .10000E-03    4.8258        .34975E-07** at limit **
  16  Prefactor     15.863        9.7524        .18593E-06    .30946E-04
  17  Prefactor     .10000E-03    7.7859       -.11759E-06** at limit **
  18  norm          2.5080        1.2298       -.11187E-06   -.78987E-04
  19  norm          5.3075        3.2180       -.20960E-06   -.16016E-03
  20  norm          .10000E-03    9.8533        .95648E-07** at limit **
  21  Normalizat    1.4140        .23730        .47722E-05    .18217E-03
  22  Prefactor     .96510        .15366       -.31970E-06    .51224E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.26832
  norm       = 3.54341
  Prefactor  = 0.0001
  Prefactor  = 37.9931
  norm       = 1.05549
  Prefactor  = 1.02172
  Prefactor  = 0.0001
  Prefactor  = 19.9178
  norm       = 0.000100001
  norm       = 2.466
  Prefactor  = 4.88284
  norm       = 10.6406
  norm       = 15.3081
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8627
  Prefactor  = 0.0001
  norm       = 2.50799
  norm       = 5.30749
  norm       = 0.0001
  Normalizat = 1.41398
  Prefactor  = 0.965096
 **********
 **   18 **HESSE 
 **********

 FCN=   9014.020     FROM HESSE     STATUS=OK           346 CALLS     2774 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2683        2.9152        .14877E-03   -1.5346    
   2  norm          3.5434        .84660        .40170E-04   -1.5331    
   3  Prefactor     .10000E-03    2.8342        .15598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     37.993        15.988        .65025E-04   -1.4474    
   5  norm          1.0555        1.5686        .14102E-03   -1.5502    
   6  Prefactor     1.0217        22.312        .47061E-02   -1.5506    
   7  Prefactor     .10000E-03    50.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.918        55.033        .89748E-04   -1.4815    
   9  norm          .10000E-03    33.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.4660        .40269        .20974E-04   -1.5394    
  11  Prefactor     4.8828        196.82        .18100E-03   -1.5266    
  12  norm          10.641        9.0319        .12284E-03   -1.5055    
  13  norm          15.308        12.121        .10237E-03   -1.4925    
  14  Prefactor     .10000E-03    2.4234        .14423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.8371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.863        9.7803        .10056E-03   -1.4911    
  17  Prefactor     .10000E-03    7.7966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.5080        1.2279        .70876E-04   -1.5391    
  19  norm          5.3075        3.2147        .12801E-03   -1.5247    
  20  norm          .10000E-03    9.8577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4140        .28259        .33375E-03   -.80225    
  22  Prefactor     .96510        .18276        .26904E-03   -.93902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36982e-09
Minuit parameter uncertainties:
  1  2.91533
  2  0.846599
  3  1.73679e-06
  4  15.99
  5  1.56866
  6  9.5528
  7  4.80571e-06
  8  55.1742
  9  0.000274939
  10  0.402693
  11  62.222
  12  9.0331
  13  12.1228
  14  5.28254e-06
  15  8.2878e-06
  16  9.78124
  17  1.12045e-05
  18  1.22787
  19  3.21483
  20  5.13586e-06
  21  0.282901
  22  0.182874
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  4.883e+00  6.222e+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:  9.651e-01  1.829e-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.414e+00  2.829e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/208538/likelihoodResults_315014401_315273601_4FGL_J1304.6-0348_daily_bin292.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) = 9013.77303263
delta logL = 0.247129606181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9013.74378273
delta logL = 0.276379503737

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9584       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1287       1.0000          .0000       10.000    
     3 'Normalizat'    1.3657       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98270       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=   9013.744     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      283 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9724        462.27        .14213E-03    .47353E-04
   2  Index         3.1286        6.5409        .78516E-02    .58995E-04
   3  Normalizat    1.3657        .28729        .33827E-03   -.23795E-04
   4  Prefactor     .98271        .19319        .26671E-03   -.83118E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.97239
  Index      = 3.12857
  Normalizat = 1.36572
  Prefactor  = 0.982707
 **********
 **   18 **HESSE 
 **********

 FCN=   9013.744     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9724        23.093        .56852E-05   -1.5143    
   2  Index         3.1286        1.1442        .31406E-03   -.38363    
   3  Normalizat    1.3657        .27406        .13531E-04   -.81625    
   4  Prefactor     .98271        .18357        .10669E-04   -.93308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04858e-11
Minuit parameter uncertainties:
  1  23.1189
  2  1.15615
  3  0.274354
  4  0.183686
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208538': 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) = 9013.74378211
delta logL = 0.276380129797

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  7.972e+00  2.312e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  3.129e+00  1.156e+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:  9.827e-01  1.837e-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.366e+00  2.744e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/208538/cmap_HighResolution_315014401_315273601_4FGL_J1304.6-0348_daily_bin292.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.51e-03', job_status='DONE', photon_flux_upper_limit='9.88e-08', time_completed='2021-09-06 21:07:03.417438', job_id='208538', GAL2='0.98', fit_tolerance='1e-08', EG2='1.37', EG='1.41', time_epoch_completed='1630987623.42', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.76e-01', ts2='0.58', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='292' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:07:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 208538: <4FGL_J1304.6-0348_daily_bin292> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin292> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 20:50:46 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 20:50:52 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:50:52 2021
Terminated at Mon Sep  6 21:07:04 2021
Results reported at Mon Sep  6 21:07:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin292 196.172 -3.8139 315014401 315273601 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 :                                   832.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            978 sec.

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

