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


Performing analysis on: 4FGL_J1351.7-2912_daily_bin1186
RA = 207.943, Dec = -29.2106
tmin = 546739201, tmax = 546998401
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='31854', job_status='RUN', time_executed='2021-09-08 16:13:19.887627', time_epoch_executed='1631142799.89' WHERE source_name='4FGL J1351.7-2912' and cadence='daily' and bin_id='1186'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31854

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31854/ft1_4FGL_J1351.7-2912_daily_bin1186.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31854/ft2_4FGL_J1351.7-2912_daily_bin1186.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31854/ft1_4FGL_J1351.7-2912_daily_bin1186.fits outfile=/scratch/kocevski/31854/ft1_filteredMKT_4FGL_J1351.7-2912_daily_bin1186.fits ra=207.943 dec=-29.2106 rad=12.0 tmin=546739201.0 tmax=546998401.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.67
user 3.42
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/31854/ft2_4FGL_J1351.7-2912_daily_bin1186.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/31854/ft2_4FGL_J1351.7-2912_daily_bin1186.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/31854/ft1_filteredMKT_4FGL_J1351.7-2912_daily_bin1186.fits evtable="EVENTS" outfile="/scratch/kocevski/31854/ft1_filtered_4FGL_J1351.7-2912_daily_bin1186.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/31854/ft1_filtered_4FGL_J1351.7-2912_daily_bin1186.fits" evtable="EVENTS" scfile=/scratch/kocevski/31854/ft2_4FGL_J1351.7-2912_daily_bin1186.fits sctable="SC_DATA" outfile=/scratch/kocevski/31854/ltcube_546739201_546998401_4FGL_J1351.7-2912_daily_bin1186.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/31854/ft2_4FGL_J1351.7-2912_daily_bin1186.fits
.....................!
real 16.79
user 16.31
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31854/ft1_filtered_4FGL_J1351.7-2912_daily_bin1186.fits evtable="EVENTS" scfile=/scratch/kocevski/31854/ft2_4FGL_J1351.7-2912_daily_bin1186.fits sctable="SC_DATA" expcube=/scratch/kocevski/31854/ltcube_546739201_546998401_4FGL_J1351.7-2912_daily_bin1186.fits outfile=/scratch/kocevski/31854/expmap_546739201_546998401_4FGL_J1351.7-2912_daily_bin1186.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/31854/ltcube_546739201_546998401_4FGL_J1351.7-2912_daily_bin1186.fits
.....................!
real 194.81
user 188.81
sys 5.00

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
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 205 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1351.7-2912 @ 207.943 -29.2106

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/31854/ft1_filtered_4FGL_J1351.7-2912_daily_bin1186.fits scfile=/scratch/kocevski/31854/ft2_4FGL_J1351.7-2912_daily_bin1186.fits outfile=/scratch/kocevski/31854/cmap_546739201_546998401_4FGL_J1351.7-2912_daily_bin1186.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=207.943 yref=-29.2106 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31854/ft1_filtered_4FGL_J1351.7-2912_daily_bin1186.fits scfile=/scratch/kocevski/31854/ft2_4FGL_J1351.7-2912_daily_bin1186.fits outfile=/scratch/kocevski/31854/cmap_HighResolution_546739201_546998401_4FGL_J1351.7-2912_daily_bin1186.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=207.943 yref=-29.2106 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/31854/ft1_filtered_4FGL_J1351.7-2912_daily_bin1186.fits evtable="EVENTS" scfile=/scratch/kocevski/31854/ft2_4FGL_J1351.7-2912_daily_bin1186.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31854/Model_4FGL_J1351.7-2912_daily_bin1186.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/31854/ft1_filtered_4FGL_J1351.7-2912_daily_bin1186.fits.....................!
real 85.34
user 82.73
sys 1.44

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/31854/ft1_filtered_4FGL_J1351.7-2912_daily_bin1186.fits', '/scratch/kocevski/31854/ft2_4FGL_J1351.7-2912_daily_bin1186.fits', expMap='/scratch/kocevski/31854/expmap_546739201_546998401_4FGL_J1351.7-2912_daily_bin1186.fits', expCube='/scratch/kocevski/31854/ltcube_546739201_546998401_4FGL_J1351.7-2912_daily_bin1186.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/31854/Model_4FGL_J1351.7-2912_daily_bin1186.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1351.7-2912'

4FGL J1351.7-2912
   Spectrum: LogParabola
297         norm:  2.032e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        alpha:  2.530e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
299         beta:  2.530e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  1.678e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/31854/ft1_filtered_4FGL_J1351.7-2912_daily_bin1186.fits
Spacecraft file(s): /scratch/kocevski/31854/ft2_4FGL_J1351.7-2912_daily_bin1186.fits
Exposure map: /scratch/kocevski/31854/expmap_546739201_546998401_4FGL_J1351.7-2912_daily_bin1186.fits
Exposure cube: /scratch/kocevski/31854/ltcube_546739201_546998401_4FGL_J1351.7-2912_daily_bin1186.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/31854/Model_4FGL_J1351.7-2912_daily_bin1186.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) = 4790.9387169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4393       1.0000         .10000E-03   10000.    
     2 'norm      '    .56410       1.0000         .10000E-03   10000.    
     3 'norm      '    25.009       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.668       1.0000         .10000E-03   10000.    
     5 'Prefactor '    50.344       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.513       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    51.976       1.0000         .10000E-03   10000.    
    10 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    104.63       1.0000         .10000E-03   10000.    
    12 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3827       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12780E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.691       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.902       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .47750E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .65090       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0468       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4790.928     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3042 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4396        5.7756        .35917E-05   -.16535E-04
   2  norm          .56438        2.5476       -.92064E-06   -.11828E-02
   3  norm          25.011        11.587        .19451E-06   -.27182E-04
   4  Prefactor     21.678        19.492        .14590E-05   -.21437E-03
   5  Prefactor     50.349        37.449       -.19049E-05   -.44420E-04
   6  Prefactor     14.516        16.197        .16906E-05   -.22654E-04
   7  Prefactor     .10000E-03    16.529        .11400E-04** at limit **
   8  norm          .10000E-03    6.2805       -.24589E-06** at limit **
   9  Prefactor     51.979        80.560        .22418E-05    .84271E-06
  10  norm          .10000E-03    19.577       -.15921E-05** at limit **
  11  norm          104.64        98.677        .35690E-05   -.44291E-05
  12  norm          .10000E-03    7.5365       -.17265E-06** at limit **
  13  Prefactor     3.3842        6.3665       -.18309E-05   -.48718E-03
  14  Prefactor     .10000E-03    36.243        .17710E-04** at limit **
  15  Prefactor     .10000E-03    83.158       -.76163E-06** at limit **
  16  Prefactor     .10000E-03    27.351       -.85358E-06** at limit **
  17  Prefactor     .10000E-03    532.92       -.98621E-04** at limit **
  18  Prefactor     .10000E-03    10.451        .22798E-07** at limit **
  19  Prefactor     .10000E-03    37.937       -.16873E-04** at limit **
  20  norm          .10000E-03    3.9734       -.26383E-06** at limit **
  21  Prefactor     14.678        48.634        .44507E-05    .81950E-05
  22  Prefactor     12.891        40.543        .11304E-04   -.12302E-05
  23  Prefactor     .10000E-03    16.394       -.96972E-05** at limit **
  24  Prefactor     .10000E-03    265.94        .16122E-03** at limit **
  25  Normalizat    .65058        .35872       -.99774E-06   -.70003E-04
  26  Prefactor     1.0469        .14117       -.57060E-06   -.32754E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.43958
  norm       = 0.564376
  norm       = 25.0106
  Prefactor  = 21.6784
  Prefactor  = 50.3486
  Prefactor  = 14.516
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 51.9794
  norm       = 0.0001
  norm       = 104.636
  norm       = 0.0001
  Prefactor  = 3.38419
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.678
  Prefactor  = 12.8908
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.650584
  Prefactor  = 1.0469
 **********
 **   18 **HESSE 
 **********

 FCN=   4790.928     FROM HESSE     STATUS=OK           450 CALLS     3492 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4396        5.7675        .18463E-03   -1.5287    
   2  norm          .56438        2.5175        .21528E-03   -1.5558    
   3  norm          25.011        11.572        .80103E-04   -1.4707    
   4  Prefactor     21.678        19.424        .86047E-04   -1.4776    
   5  Prefactor     50.349        37.421        .56520E-04   -1.4288    
   6  Prefactor     14.516        16.165        .10514E-03   -1.4946    
   7  Prefactor     .10000E-03    16.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.3382        .16935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     51.979        80.559        .55630E-04   -1.4265    
  10  norm          .10000E-03    19.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          104.64        98.776        .39312E-04   -1.3659    
  12  norm          .10000E-03    7.5489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3842        6.3360        .21865E-03   -1.5340    
  14  Prefactor     .10000E-03    36.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    83.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    532.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    38.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.9902        .13461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.678        48.560        .10450E-03   -1.4942    
  22  Prefactor     12.891        40.500        .11152E-03   -1.4990    
  23  Prefactor     .10000E-03    16.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    264.71        .21180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .65058        .39411        .49156E-03   -1.0588    
  26  Prefactor     1.0469        .15909        .16088E-03   -.91182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82764e-09
Minuit parameter uncertainties:
  1  5.76821
  2  2.38391
  3  11.5729
  4  19.43
  5  37.4383
  6  16.1695
  7  7.00939e-05
  8  4.65515e-06
  9  80.7282
  10  1.95053e-06
  11  98.9315
  12  2.40999e-05
  13  6.33722
  14  9.27071e-06
  15  4.41635e-05
  16  1.81007e-05
  17  2.59205e-05
  18  6.38706e-06
  19  8.15476e-05
  20  1.52378e-05
  21  48.6912
  22  40.5866
  23  2.27986e-05
  24  0.000327414
  25  0.395837
  26  0.15916
Done.

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

Extracting fit parameters...

4FGL J1351.7-2912
   Spectrum: LogParabola
297         norm:  1.000e-04  2.410e-05  1.000e-04  1.000e+04 ( 1.000e-13)
298        alpha:  2.530e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
299         beta:  2.530e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  1.678e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  1.047e+00  1.592e-01  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  6.506e-01  3.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 207.943 -29.211
Photon Flux Upper Limit: 8.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.85e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31854/likelihoodResults_546739201_546998401_4FGL_J1351.7-2912_daily_bin1186.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) = 4790.92890174
delta logL = -0.000630358960734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4790.92827137
delta logL = 1.68265614775e-08

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 'alpha     '    2.5202       1.0000          .0000       5.0000    
     3 'Normalizat'    .65059       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0469       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+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=   4790.928     FROM MIGRAD    STATUS=FAILED        95 CALLS      235 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    417.36        .18142E-01** at limit **
   2  alpha         1.6490        3.1238        .16461        .18025E-07
   3  Normalizat    .65059        .56652E-01    .49156E-03    .20515E-04
   4  Prefactor     1.0469        .23281E-01    .16088E-03    .64729E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4790.928     FROM SIMPLEX   STATUS=UNCHANGED    160 CALLS      395 TOTAL
                     EDM=   .78E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    417.36        .45734E-03** at limit **
   2  alpha         1.6490        3.1238        .19465E-04    .18025E-07
   3  Normalizat    .65059        .56652E-01    .46974E-06    .20515E-04
   4  Prefactor     1.0469        .23281E-01    .76431E-07    .64729E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4790.928     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      423 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.2875        .20492E-02** at limit **
   2  alpha         1.6564        2.9319        .65845E-02    .79768E-07
   3  Normalizat    .65059        .37871        .19662E-04    .20700E-04
   4  Prefactor     1.0469        .15618        .64353E-05    .65365E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 1.65636
  Normalizat = 0.650588
  Prefactor  = 1.0469
 **********
 **   18 **HESSE 
 **********

 FCN=   4790.928     FROM HESSE     STATUS=OK            23 CALLS      446 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.1938        .40983E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6564        4.1340        .13169E-02   -.34421    
   3  Normalizat    .65059        .37746        .39324E-05   -1.0588    
   4  Prefactor     1.0469        .15568        .12871E-05   -.91182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.266e-10
Minuit parameter uncertainties:
  1  0.000326613
  2  527.229
  3  0.378974
  4  0.155748
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31854': 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) = 4790.9282702
delta logL = 1.18357456813e-06

Extracting fit parameters...

4FGL J1351.7-2912
   Spectrum: LogParabola
297         norm:  1.000e-04  3.266e-04  1.000e-04  1.000e+04 ( 1.000e-13)
298        alpha:  1.656e+00  5.272e+02  0.000e+00  5.000e+00 ( 1.000e+00)
299         beta:  2.530e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  1.678e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  1.047e+00  1.557e-01  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  6.506e-01  3.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 207.943 -29.211

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/31854/cmap_HighResolution_546739201_546998401_4FGL_J1351.7-2912_daily_bin1186.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.85e-05', job_status='DONE', photon_flux_upper_limit='8.67e-08', time_completed='2021-09-08 16:26:21.139197', job_id='31854', GAL2='1.05', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1631143581.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1186' AND source_name='4FGL J1351.7-2912' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 16:26:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 31854: <4FGL_J1351.7-2912_daily_bin1186> in cluster <slac> Done

Job <4FGL_J1351.7-2912_daily_bin1186> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 16:10:31 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 16:11:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 16:11:54 2021
Terminated at Wed Sep  8 16:26:21 2021
Results reported at Wed Sep  8 16:26:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.7-2912_daily_bin1186 207.943 -29.2106 546739201 546998401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1351.7-2912 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   742.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            950 sec.

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

