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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin1006
RA = 196.172, Dec = -3.8139
tmin = 500083201, tmax = 500342401
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='214951', job_status='RUN', time_executed='2021-09-06 21:12:11.402184', time_epoch_executed='1630987931.4' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/214951

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/214951/ft1_4FGL_J1304.6-0348_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/214951/ft2_4FGL_J1304.6-0348_daily_bin1006.fits


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

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

Done.
real 5.73
user 5.46
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/214951/ft2_4FGL_J1304.6-0348_daily_bin1006.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/214951/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin1006.fits evtable="EVENTS" outfile="/scratch/kocevski/214951/ft1_filtered_4FGL_J1304.6-0348_daily_bin1006.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/214951/ft1_filtered_4FGL_J1304.6-0348_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/214951/ft2_4FGL_J1304.6-0348_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/214951/ltcube_500083201_500342401_4FGL_J1304.6-0348_daily_bin1006.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/214951/ft2_4FGL_J1304.6-0348_daily_bin1006.fits
.....................!
real 19.66
user 19.23
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/214951/ft1_filtered_4FGL_J1304.6-0348_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/214951/ft2_4FGL_J1304.6-0348_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/214951/ltcube_500083201_500342401_4FGL_J1304.6-0348_daily_bin1006.fits outfile=/scratch/kocevski/214951/expmap_500083201_500342401_4FGL_J1304.6-0348_daily_bin1006.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/214951/ltcube_500083201_500342401_4FGL_J1304.6-0348_daily_bin1006.fits
.....................!
real 191.92
user 186.93
sys 4.12

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/214951/ft1_filtered_4FGL_J1304.6-0348_daily_bin1006.fits scfile=/scratch/kocevski/214951/ft2_4FGL_J1304.6-0348_daily_bin1006.fits outfile=/scratch/kocevski/214951/cmap_500083201_500342401_4FGL_J1304.6-0348_daily_bin1006.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/214951/ft1_filtered_4FGL_J1304.6-0348_daily_bin1006.fits scfile=/scratch/kocevski/214951/ft2_4FGL_J1304.6-0348_daily_bin1006.fits outfile=/scratch/kocevski/214951/cmap_HighResolution_500083201_500342401_4FGL_J1304.6-0348_daily_bin1006.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/214951/ft1_filtered_4FGL_J1304.6-0348_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/214951/ft2_4FGL_J1304.6-0348_daily_bin1006.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/214951/Model_4FGL_J1304.6-0348_daily_bin1006.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/214951/ft1_filtered_4FGL_J1304.6-0348_daily_bin1006.fits.....................!
real 52.25
user 50.76
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .55266       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .70860E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.238       1.0000         .10000E-03   10000.    
     5 'norm      '    7.0774       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    33.144       1.0000         .10000E-03   10000.    
    10 'norm      '    .83929       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.3149       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.1612       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.900       1.0000         .10000E-03   10000.    
    18 'norm      '    .45848E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .44324E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    22.706       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0255       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0104       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=   6211.309     FROM MIGRAD    STATUS=CONVERGED    858 CALLS     2836 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1943        .83914E-03** at limit **
   2  norm          .55280        .57683        .58770E-03    .66452E-03
   3  Prefactor     .79822E-01    11.180        .62206E-01    .19635E-03
   4  Prefactor     32.238        12.702        .70572E-04   -.17076E-04
   5  norm          7.0774        2.3502        .66562E-04   -.18019E-03
   6  Prefactor     .10000E-03    4.3392        .15922E-02** at limit **
   7  Prefactor     .10000E-03    7.3447        .18142E-02** at limit **
   8  Prefactor     .10000E-03    59.418        .18142E-02** at limit **
   9  norm          33.144        28.087        .69603E-04   -.13067E-04
  10  norm          .83940        .26162        .21434E-04   -.81256E-03
  11  Prefactor     .10000E-03    43.733        .18142E-02** at limit **
  12  norm          5.3143        9.9497        .17433E-03   -.36584E-04
  13  norm          .10000E-03    4.0178        .15416E-02** at limit **
  14  Prefactor     .10000E-03    3.3156        .13991E-02** at limit **
  15  Prefactor     6.1652        17.205        .16174E-03   -.16940E-04
  16  Prefactor     .10000E-03    3.8388        .15003E-02** at limit **
  17  Prefactor     14.916        15.037        .51881E-03    .29813E-03
  18  norm          .47099E-01    4.4161        .11289E-02    .20666E-03
  19  norm          .10005E-03    13.739        .19538E-02** at limit **
  20  norm          22.649        34.320        .84059E-04   -.43279E-05
  21  Normalizat    1.0251        .25525        .30442E-03    .15088E-04
  22  Prefactor     1.0107        .17641        .21878E-03   -.67604E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.552795
  Prefactor  = 0.0798221
  Prefactor  = 32.2384
  norm       = 7.07745
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 33.1437
  norm       = 0.8394
  Prefactor  = 0.0001
  norm       = 5.31427
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.1652
  Prefactor  = 0.0001
  Prefactor  = 14.9155
  norm       = 0.0470991
  norm       = 0.000100047
  norm       = 22.6492
  Normalizat = 1.02514
  Prefactor  = 1.01068
 **********
 **   18 **HESSE 
 **********

 FCN=   6211.309     FROM HESSE     STATUS=OK           334 CALLS     3170 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1943        .16783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .55280        .57622        .23508E-04   -1.5559    
   3  Prefactor     .79822E-01    9.5072        .69423E-01   -1.5651    
   4  Prefactor     32.238        12.700        .28229E-05   -1.4572    
   5  norm          7.0774        2.3497        .26625E-05   -1.5176    
   6  Prefactor     .10000E-03    4.3410        .31844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.3447        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    59.428        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          33.144        28.084        .27841E-05   -1.4556    
  10  norm          .83940        .26158        .85738E-06   -1.5525    
  11  Prefactor     .10000E-03    43.735        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.3143        9.9485        .69733E-05   -1.5247    
  13  norm          .10000E-03    4.0180        .30833E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.3159        .27983E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.1652        17.204        .64695E-05   -1.5211    
  16  Prefactor     .10000E-03    3.8398        .30007E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.916        14.959        .20752E-04   -1.4935    
  18  norm          .47099E-01    4.4378        .45156E-04   -1.5665    
  19  norm          .10005E-03    13.761        .39075E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          22.649        34.316        .33624E-05   -1.4756    
  21  Normalizat    1.0251        .25530        .12177E-04   -.92193    
  22  Prefactor     1.0107        .17651        .87514E-05   -.92374    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70224e-09
Minuit parameter uncertainties:
  1  9.68896e-07
  2  0.57623
  3  1.74147
  4  12.7007
  5  2.34972
  6  6.45255e-07
  7  1.00971e-06
  8  3.69669e-05
  9  28.0951
  10  0.261581
  11  9.23232e-06
  12  9.95155
  13  1.38346e-06
  14  2.78107e-06
  15  17.2174
  16  5.44815e-06
  17  14.9623
  18  0.913469
  19  0.00161515
  20  34.3458
  21  0.255606
  22  0.17661
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  9.232e-06  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:  1.011e+00  1.766e-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.025e+00  2.556e-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: 8.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/214951/likelihoodResults_500083201_500342401_4FGL_J1304.6-0348_daily_bin1006.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) = 6211.30886899
delta logL = -0.00010886815744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6211.30876016
delta logL = -4.26480255555e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2378       1.0000          .0000       10.000    
     3 'Normalizat'    1.0251       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0107       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=   6211.309     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      236 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7447.1        .90712E-02** at limit **
   2  Index         2.2232        6.3776        .50000        .28785E-05
   3  Normalizat    1.0251        .80163E-01    .68810E-01   -.43010E-04
   4  Prefactor     1.0107        .57507E-01    .43229E-01    .17857E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.22319
  Normalizat = 1.02514
  Prefactor  = 1.01068
 **********
 **   18 **HESSE 
 **********

 FCN=   6211.309     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8033.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2232        6.0342        .50000       -.58880    
   3  Normalizat    1.0251        .11021        .30442E-03   -.92193    
   4  Prefactor     1.0107        .79215E-01    .21878E-03   -.92374    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.22609e-09
Minuit parameter uncertainties:
  1  0.00821268
  2  57.3722
  3  0.110235
  4  0.0792246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/214951': 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) = 6211.30876015
delta logL = -3.21642801282e-08

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  8.213e-03  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.223e+00  5.737e+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:  1.011e+00  7.922e-02  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.025e+00  1.102e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/214951/cmap_HighResolution_500083201_500342401_4FGL_J1304.6-0348_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.22e-03', job_status='DONE', photon_flux_upper_limit='8.17e-08', time_completed='2021-09-06 21:24:09.486240', job_id='214951', GAL2='1.01', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1630988649.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='-3.22e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1006' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:24:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 214951: <4FGL_J1304.6-0348_daily_bin1006> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin1006 196.172 -3.8139 500083201 500342401 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 :                                   711.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            802 sec.

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

