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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin345
RA = 196.172, Dec = -3.8139
tmin = 328752001, tmax = 329011201
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='209689', job_status='RUN', time_executed='2021-09-06 20:58:01.475243', time_epoch_executed='1630987081.48' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209689

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209689/ft1_4FGL_J1304.6-0348_daily_bin345.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209689/ft2_4FGL_J1304.6-0348_daily_bin345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209689/ft1_4FGL_J1304.6-0348_daily_bin345.fits outfile=/scratch/kocevski/209689/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin345.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=328752001.0 tmax=329011201.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.47
user 3.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209689/ft1_filtered_4FGL_J1304.6-0348_daily_bin345.fits" evtable="EVENTS" scfile=/scratch/kocevski/209689/ft2_4FGL_J1304.6-0348_daily_bin345.fits sctable="SC_DATA" outfile=/scratch/kocevski/209689/ltcube_328752001_329011201_4FGL_J1304.6-0348_daily_bin345.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/209689/ft2_4FGL_J1304.6-0348_daily_bin345.fits
.....................!
real 15.12
user 14.75
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209689/ft1_filtered_4FGL_J1304.6-0348_daily_bin345.fits evtable="EVENTS" scfile=/scratch/kocevski/209689/ft2_4FGL_J1304.6-0348_daily_bin345.fits sctable="SC_DATA" expcube=/scratch/kocevski/209689/ltcube_328752001_329011201_4FGL_J1304.6-0348_daily_bin345.fits outfile=/scratch/kocevski/209689/expmap_328752001_329011201_4FGL_J1304.6-0348_daily_bin345.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/209689/ltcube_328752001_329011201_4FGL_J1304.6-0348_daily_bin345.fits
.....................!
real 191.37
user 186.75
sys 4.13

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/209689/ft1_filtered_4FGL_J1304.6-0348_daily_bin345.fits scfile=/scratch/kocevski/209689/ft2_4FGL_J1304.6-0348_daily_bin345.fits outfile=/scratch/kocevski/209689/cmap_328752001_329011201_4FGL_J1304.6-0348_daily_bin345.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/209689/ft1_filtered_4FGL_J1304.6-0348_daily_bin345.fits scfile=/scratch/kocevski/209689/ft2_4FGL_J1304.6-0348_daily_bin345.fits outfile=/scratch/kocevski/209689/cmap_HighResolution_328752001_329011201_4FGL_J1304.6-0348_daily_bin345.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/209689/ft1_filtered_4FGL_J1304.6-0348_daily_bin345.fits evtable="EVENTS" scfile=/scratch/kocevski/209689/ft2_4FGL_J1304.6-0348_daily_bin345.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/209689/Model_4FGL_J1304.6-0348_daily_bin345.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/209689/ft1_filtered_4FGL_J1304.6-0348_daily_bin345.fits.....................!
real 60.98
user 59.56
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1759       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9287       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.978       1.0000         .10000E-03   10000.    
     5 'norm      '    7.2511       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    35.984       1.0000         .10000E-03   10000.    
    10 'norm      '    4.3297       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.5773       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2802       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.482       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10299E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.0039       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3315       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81354       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=   7693.433     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2776 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3135        .57188E-08** at limit **
   2  norm          1.1759        .56768        .58963E-08   -.60438E-04
   3  Prefactor     3.9286        5.3380        .10017E-06   -.46805E-03
   4  Prefactor     13.979        12.350        .13546E-06   -.24022E-03
   5  norm          7.2512        2.2048       -.19096E-08    .10448E-04
   6  Prefactor     .10000E-03    3.7532       -.26608E-07** at limit **
   7  Prefactor     .10000E-03    8.2941       -.89624E-06** at limit **
   8  Prefactor     .10000E-03    16.349        .54111E-05** at limit **
   9  norm          35.987        26.883        .25350E-05    .88482E-04
  10  norm          4.3297        .44889       -.50950E-08   -.91405E-05
  11  Prefactor     .10000E-03    37.187       -.14848E-05** at limit **
  12  norm          5.5772        5.5717       -.12269E-06    .62812E-03
  13  norm          .10000E-03    3.3032       -.69812E-07** at limit **
  14  Prefactor     3.2793        4.1635        .85101E-06   -.15995E-02
  15  Prefactor     .10000E-03    13.193       -.74103E-05** at limit **
  16  Prefactor     10.484        9.8960       -.21955E-06   -.53793E-04
  17  Prefactor     .10000E-03    10.266        .35766E-05** at limit **
  18  norm          .10000E-03    .61163        .25325E-07** at limit **
  19  norm          .10000E-03    1.4858       -.10272E-06** at limit **
  20  norm          9.0031        24.065       -.80464E-06   -.10984E-04
  21  Normalizat    1.3313        .22803        .46398E-07    .38171E-04
  22  Prefactor     .81366        .15020       -.12005E-06    .29913E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.17586
  Prefactor  = 3.9286
  Prefactor  = 13.9787
  norm       = 7.25124
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 35.9873
  norm       = 4.32969
  Prefactor  = 0.0001
  norm       = 5.57718
  norm       = 0.0001
  Prefactor  = 3.2793
  Prefactor  = 0.000100001
  Prefactor  = 10.4842
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.00313
  Normalizat = 1.33135
  Prefactor  = 0.813661
 **********
 **   18 **HESSE 
 **********

 FCN=   7693.433     FROM HESSE     STATUS=OK           344 CALLS     3120 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3829        .26047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1759        .55891        .44061E-04   -1.5491    
   3  Prefactor     3.9286        5.4116        .10177E-02   -1.5312    
   4  Prefactor     13.979        12.437        .53565E-03   -1.4960    
   5  norm          7.2512        2.2054        .69112E-04   -1.5169    
   6  Prefactor     .10000E-03    3.7782        .16591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.2983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          35.987        26.902        .66809E-04   -1.4507    
  10  norm          4.3297        .45081        .18018E-04   -1.5292    
  11  Prefactor     .10000E-03    37.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.5772        5.6667        .85057E-03   -1.5236    
  13  norm          .10000E-03    3.3061        .15569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.2793        7.3429        .11179E-02   -1.5346    
  15  Prefactor     .10000E-03    13.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.484        9.9526        .12376E-03   -1.5060    
  17  Prefactor     .10000E-03    10.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.8813        .13149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.5165        .10438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.0031        24.094        .13357E-03   -1.5108    
  21  Normalizat    1.3313        .27228        .31579E-03   -.82635    
  22  Prefactor     .81366        .17979        .26545E-03   -.99227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72457e-09
Minuit parameter uncertainties:
  1  4.38971e-07
  2  0.558914
  3  5.41229
  4  12.4391
  5  2.20542
  6  8.90111e-06
  7  1.91725e-05
  8  0.000148065
  9  26.9109
  10  0.450813
  11  6.52855e-05
  12  5.6672
  13  6.20964e-07
  14  7.34495
  15  0.000173819
  16  9.95412
  17  7.29667e-05
  18  1.05991e-06
  19  2.35275e-06
  20  24.12
  21  0.272577
  22  0.179922
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  6.529e-05  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.137e-01  1.799e-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.331e+00  2.726e-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: 7.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/209689/likelihoodResults_328752001_329011201_4FGL_J1304.6-0348_daily_bin345.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) = 7693.43321673
delta logL = -0.000127840110508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7693.43308881
delta logL = 7.1572685556e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2429       1.0000          .0000       10.000    
     3 'Normalizat'    1.3313       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81366       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=   7693.433     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      241 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6438.6        .90712E-02** at limit **
   2  Index         2.2654        6.7649        .50000       -.51684E-05
   3  Normalizat    1.3313        .55539E-01    .71371E-01    .10133E-04
   4  Prefactor     .81366        .37711E-01    .43895E-01    .14356E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.2654
  Normalizat = 1.33135
  Prefactor  = 0.813661
 **********
 **   18 **HESSE 
 **********

 FCN=   7693.433     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2654        6.1033        .50000       -.57868    
   3  Normalizat    1.3313        .25897        .31579E-03   -.82635    
   4  Prefactor     .81366        .17606        .26545E-03   -.99227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.55236e-11
Minuit parameter uncertainties:
  1  0.000199259
  2  4.79555
  3  0.259226
  4  0.176183
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209689': 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) = 7693.43308879
delta logL = 9.86037775874e-08

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.993e-04  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.265e+00  4.796e+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:  8.137e-01  1.762e-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.331e+00  2.592e-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/209689/cmap_HighResolution_328752001_329011201_4FGL_J1304.6-0348_daily_bin345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.74e-03', job_status='DONE', photon_flux_upper_limit='7.55e-08', time_completed='2021-09-06 21:11:04.421939', job_id='209689', GAL2='0.81', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1630987864.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='9.86e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='345' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:11:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 209689: <4FGL_J1304.6-0348_daily_bin345> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin345> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 20:55:24 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 20:55:45 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:45 2021
Terminated at Mon Sep  6 21:11:05 2021
Results reported at Mon Sep  6 21:11:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin345 196.172 -3.8139 328752001 329011201 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 :                                   781.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            941 sec.

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

