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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin890
RA = 196.172, Dec = -3.8139
tmin = 470016001, tmax = 470275201
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='212897', job_status='RUN', time_executed='2021-09-06 21:08:24.058618', time_epoch_executed='1630987704.06' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='890'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212897

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212897/ft1_4FGL_J1304.6-0348_daily_bin890.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212897/ft2_4FGL_J1304.6-0348_daily_bin890.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212897/ft1_4FGL_J1304.6-0348_daily_bin890.fits outfile=/scratch/kocevski/212897/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin890.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=470016001.0 tmax=470275201.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.60
user 3.31
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/212897/ft2_4FGL_J1304.6-0348_daily_bin890.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/212897/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin890.fits evtable="EVENTS" outfile="/scratch/kocevski/212897/ft1_filtered_4FGL_J1304.6-0348_daily_bin890.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.53
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212897/ft1_filtered_4FGL_J1304.6-0348_daily_bin890.fits" evtable="EVENTS" scfile=/scratch/kocevski/212897/ft2_4FGL_J1304.6-0348_daily_bin890.fits sctable="SC_DATA" outfile=/scratch/kocevski/212897/ltcube_470016001_470275201_4FGL_J1304.6-0348_daily_bin890.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/212897/ft2_4FGL_J1304.6-0348_daily_bin890.fits
.....................!
real 15.50
user 15.06
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212897/ft1_filtered_4FGL_J1304.6-0348_daily_bin890.fits evtable="EVENTS" scfile=/scratch/kocevski/212897/ft2_4FGL_J1304.6-0348_daily_bin890.fits sctable="SC_DATA" expcube=/scratch/kocevski/212897/ltcube_470016001_470275201_4FGL_J1304.6-0348_daily_bin890.fits outfile=/scratch/kocevski/212897/expmap_470016001_470275201_4FGL_J1304.6-0348_daily_bin890.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/212897/ltcube_470016001_470275201_4FGL_J1304.6-0348_daily_bin890.fits
.....................!
real 191.74
user 185.61
sys 5.51

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/212897/ft1_filtered_4FGL_J1304.6-0348_daily_bin890.fits scfile=/scratch/kocevski/212897/ft2_4FGL_J1304.6-0348_daily_bin890.fits outfile=/scratch/kocevski/212897/cmap_470016001_470275201_4FGL_J1304.6-0348_daily_bin890.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=196.172 yref=-3.8139 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.59
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212897/ft1_filtered_4FGL_J1304.6-0348_daily_bin890.fits scfile=/scratch/kocevski/212897/ft2_4FGL_J1304.6-0348_daily_bin890.fits outfile=/scratch/kocevski/212897/cmap_HighResolution_470016001_470275201_4FGL_J1304.6-0348_daily_bin890.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4282       1.0000         .10000E-03   10000.    
     2 'norm      '    2.9111       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.7870       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3142       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.434       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.7596       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    25.260       1.0000         .10000E-03   10000.    
    13 'norm      '    .64621E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21162E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.7578       1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.506       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.8723       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4811       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85008       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=   7377.253     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2448 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4280        3.1717       -.80575E-08    .17563E-04
   2  norm          2.9110        .74764        .54504E-08   -.40757E-04
   3  Prefactor     .10000E-03    3.0932       -.61040E-08** at limit **
   4  Prefactor     4.7836        11.679        .24126E-06   -.28294E-04
   5  norm          2.3140        1.5558        .26855E-07   -.40317E-04
   6  Prefactor     14.432        9.7483        .32501E-06   -.15155E-03
   7  Prefactor     .10000E-03    13.622       -.19284E-05** at limit **
   8  Prefactor     .10000E-03    33.890        .87465E-06** at limit **
   9  norm          .10000E-03    12.732        .91104E-06** at limit **
  10  norm          3.7595        .45227       -.22402E-08   -.26132E-03
  11  Prefactor     .10000E-03    20.803       -.30831E-05** at limit **
  12  norm          25.259        13.844        .33794E-07   -.22705E-04
  13  norm          .10015E-03    6.5028        .91455E-06** at limit **
  14  Prefactor     .10000E-03    6.2823       -.39674E-06** at limit **
  15  Prefactor     .10000E-03    7.6213        .10826E-07** at limit **
  16  Prefactor     8.7652        9.4617        .13770E-05   -.41042E-03
  17  Prefactor     40.510        47.409       -.41261E-06    .97444E-04
  18  norm          .10000E-03    .41353       -.10169E-07** at limit **
  19  norm          2.8744        8.7995        .54212E-06   -.13578E-03
  20  norm          .10000E-03    17.078        .32275E-05** at limit **
  21  Normalizat    1.4812        .24046       -.42627E-06   -.73678E-05
  22  Prefactor     .85015        .16124       -.91054E-07   -.36864E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.42802
  norm       = 2.91104
  Prefactor  = 0.0001
  Prefactor  = 4.78361
  norm       = 2.31405
  Prefactor  = 14.4318
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.7595
  Prefactor  = 0.000100002
  norm       = 25.2589
  norm       = 0.000100151
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 8.76518
  Prefactor  = 40.5098
  norm       = 0.0001
  norm       = 2.87441
  norm       = 0.000100003
  Normalizat = 1.48116
  Prefactor  = 0.850146
 **********
 **   18 **HESSE 
 **********

 FCN=   7377.253     FROM HESSE     STATUS=OK           352 CALLS     2800 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4280        3.1730        .10468E-03   -1.5201    
   2  norm          2.9110        .74871        .35868E-04   -1.5367    
   3  Prefactor     .10000E-03    3.0975        .14752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.7836        11.684        .18388E-03   -1.5271    
   5  norm          2.3140        1.5525        .84461E-04   -1.5404    
   6  Prefactor     14.432        9.8121        .52712E-03   -1.4948    
   7  Prefactor     .10000E-03    13.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    34.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    12.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.7595        .45383        .18965E-04   -1.5320    
  11  Prefactor     .10000E-03    21.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          25.259        13.836        .79703E-04   -1.4702    
  13  norm          .10015E-03    53.212        .40997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    76.697        .40881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.6416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.7652        10.285        .67723E-03   -1.5116    
  17  Prefactor     40.510        47.878        .62982E-04   -1.4434    
  18  norm          .10000E-03    .60860        .10738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.8744        8.8540        .23984E-03   -1.5369    
  20  norm          .10000E-03    17.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4812        .28236        .31839E-03   -.78309    
  22  Prefactor     .85015        .18774        .27851E-03   -.97906    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4698e-09
Minuit parameter uncertainties:
  1  3.17309
  2  0.74871
  3  2.4038e-07
  4  11.6892
  5  1.55256
  6  9.81323
  7  0.000223699
  8  0.000159279
  9  0.000101473
  10  0.453833
  11  0.000447936
  12  13.8379
  13  0.00567181
  14  0.00111402
  15  1.62655e-06
  16  10.2867
  17  47.9231
  18  5.56193e-07
  19  8.85799
  20  0.000426913
  21  0.282656
  22  0.187879
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  4.479e-04  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.501e-01  1.879e-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.481e+00  2.827e-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: 6.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/212897/likelihoodResults_470016001_470275201_4FGL_J1304.6-0348_daily_bin890.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) = 7377.2530605
delta logL = -0.000219425290197

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7377.25284456
delta logL = -3.4827107811e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12160E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9815       1.0000          .0000       10.000    
     3 'Normalizat'    1.4811       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85015       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7377.253     FROM MIGRAD    STATUS=FAILED        87 CALLS      277 TOTAL
                     EDM=   .42E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10342E-03    27.983        .18142E-01** at limit **
   2  Index         2.8824        8.4510        .20000        .20181E-04
   3  Normalizat    1.4812        .94057E-02    .31839E-03   -.29198E-03
   4  Prefactor     .85014        .64859E-02    .27851E-03   -.60566E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7377.253     FROM SIMPLEX   STATUS=PROGRESS     114 CALLS      391 TOTAL
                     EDM=   .50E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10153E-03    27.983        .42942E-03** at limit **
   2  Index         2.8566        8.4510        .78917E-02    .20181E-04
   3  Normalizat    1.4811        .94057E-02    .17087E-04   -.29198E-03
   4  Prefactor     .85013        .64859E-02    .83230E-05   -.60566E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7377.253     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      446 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    639.15        .28373E-01** at limit **
   2  Index         1.6242        5.7814        .80000E-01    .24158E-07
   3  Normalizat    1.4812        .30359E-01    .63678E-04   -.28208E-05
   4  Prefactor     .85015        .20935E-01    .55703E-04    .12580E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.62416
  Normalizat = 1.48116
  Prefactor  = 0.850148
 **********
 **   18 **HESSE 
 **********

 FCN=   7377.253     FROM HESSE     STATUS=OK            23 CALLS      469 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.540        .43458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6242        5.3946        .32000E-02   -.74119    
   3  Normalizat    1.4812        .26987        .12736E-04   -.78309    
   4  Prefactor     .85015        .18614        .11141E-04   -.97905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11597e-10
Minuit parameter uncertainties:
  1  0.000298152
  2  563.033
  3  0.270132
  4  0.186274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212897': 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) = 7377.25284063
delta logL = 4.47260390501e-07

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.982e-04  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  1.624e+00  5.630e+02  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.501e-01  1.863e-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.481e+00  2.701e-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/212897/cmap_HighResolution_470016001_470275201_4FGL_J1304.6-0348_daily_bin890.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.22e-03', job_status='DONE', photon_flux_upper_limit='6.86e-08', time_completed='2021-09-06 21:21:17.151984', job_id='212897', GAL2='0.85', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1630988477.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='4.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='890' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:21:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 212897: <4FGL_J1304.6-0348_daily_bin890> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin890> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 21:05:54 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 21:06:22 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:06:22 2021
Terminated at Mon Sep  6 21:21:17 2021
Results reported at Mon Sep  6 21:21:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin890 196.172 -3.8139 470016001 470275201 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 :                                   766.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            923 sec.

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

