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


Performing analysis on: 4FGL_J1352.7-2742_daily_bin557
RA = 208.19, Dec = -27.7052
tmin = 383702401, tmax = 383961601
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='38565', job_status='RUN', time_executed='2021-09-08 16:35:45.029075', time_epoch_executed='1631144145.03' WHERE source_name='4FGL J1352.7-2742' and cadence='daily' and bin_id='557'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38565

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38565/ft1_4FGL_J1352.7-2742_daily_bin557.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38565/ft2_4FGL_J1352.7-2742_daily_bin557.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38565/ft1_4FGL_J1352.7-2742_daily_bin557.fits outfile=/scratch/kocevski/38565/ft1_filteredMKT_4FGL_J1352.7-2742_daily_bin557.fits ra=208.19 dec=-27.7052 rad=12.0 tmin=383702401.0 tmax=383961601.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 4.54
user 4.28
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/38565/ft2_4FGL_J1352.7-2742_daily_bin557.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/38565/ft2_4FGL_J1352.7-2742_daily_bin557.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/38565/ft1_filteredMKT_4FGL_J1352.7-2742_daily_bin557.fits evtable="EVENTS" outfile="/scratch/kocevski/38565/ft1_filtered_4FGL_J1352.7-2742_daily_bin557.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/38565/ft1_filtered_4FGL_J1352.7-2742_daily_bin557.fits" evtable="EVENTS" scfile=/scratch/kocevski/38565/ft2_4FGL_J1352.7-2742_daily_bin557.fits sctable="SC_DATA" outfile=/scratch/kocevski/38565/ltcube_383702401_383961601_4FGL_J1352.7-2742_daily_bin557.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/38565/ft2_4FGL_J1352.7-2742_daily_bin557.fits
.....................!
real 16.51
user 16.08
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38565/ft1_filtered_4FGL_J1352.7-2742_daily_bin557.fits evtable="EVENTS" scfile=/scratch/kocevski/38565/ft2_4FGL_J1352.7-2742_daily_bin557.fits sctable="SC_DATA" expcube=/scratch/kocevski/38565/ltcube_383702401_383961601_4FGL_J1352.7-2742_daily_bin557.fits outfile=/scratch/kocevski/38565/expmap_383702401_383961601_4FGL_J1352.7-2742_daily_bin557.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/38565/ltcube_383702401_383961601_4FGL_J1352.7-2742_daily_bin557.fits
.....................!
real 194.97
user 189.10
sys 4.91

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 200 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 J1352.7-2742 @ 208.19 -27.7052

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/38565/ft1_filtered_4FGL_J1352.7-2742_daily_bin557.fits scfile=/scratch/kocevski/38565/ft2_4FGL_J1352.7-2742_daily_bin557.fits outfile=/scratch/kocevski/38565/cmap_383702401_383961601_4FGL_J1352.7-2742_daily_bin557.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=208.19 yref=-27.7052 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.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/38565/ft1_filtered_4FGL_J1352.7-2742_daily_bin557.fits scfile=/scratch/kocevski/38565/ft2_4FGL_J1352.7-2742_daily_bin557.fits outfile=/scratch/kocevski/38565/cmap_HighResolution_383702401_383961601_4FGL_J1352.7-2742_daily_bin557.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=208.19 yref=-27.7052 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/38565/ft1_filtered_4FGL_J1352.7-2742_daily_bin557.fits evtable="EVENTS" scfile=/scratch/kocevski/38565/ft2_4FGL_J1352.7-2742_daily_bin557.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/38565/Model_4FGL_J1352.7-2742_daily_bin557.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/38565/ft1_filtered_4FGL_J1352.7-2742_daily_bin557.fits.....................!
real 135.09
user 133.45
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/38565/ft1_filtered_4FGL_J1352.7-2742_daily_bin557.fits', '/scratch/kocevski/38565/ft2_4FGL_J1352.7-2742_daily_bin557.fits', expMap='/scratch/kocevski/38565/expmap_383702401_383961601_4FGL_J1352.7-2742_daily_bin557.fits', expCube='/scratch/kocevski/38565/ltcube_383702401_383961601_4FGL_J1352.7-2742_daily_bin557.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/38565/Model_4FGL_J1352.7-2742_daily_bin557.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1352.7-2742'

4FGL J1352.7-2742
   Spectrum: PowerLaw
296    Prefactor:  1.021e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  2.663e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  7.623e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/38565/ft1_filtered_4FGL_J1352.7-2742_daily_bin557.fits
Spacecraft file(s): /scratch/kocevski/38565/ft2_4FGL_J1352.7-2742_daily_bin557.fits
Exposure map: /scratch/kocevski/38565/expmap_383702401_383961601_4FGL_J1352.7-2742_daily_bin557.fits
Exposure cube: /scratch/kocevski/38565/ltcube_383702401_383961601_4FGL_J1352.7-2742_daily_bin557.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/38565/Model_4FGL_J1352.7-2742_daily_bin557.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) = 8064.51180328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9561       1.0000         .10000E-03   10000.    
     2 'norm      '    19.564       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.4185       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.4778       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.5350       1.0000         .10000E-03   10000.    
     7 'norm      '    4.5257       1.0000         .10000E-03   10000.    
     8 'Prefactor '    117.94       1.0000         .10000E-03   10000.    
     9 'norm      '    4.0454       1.0000         .10000E-03   10000.    
    10 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2358       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.630       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11548E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6597       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .73515E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.371       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10469E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    51.725       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3847       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .82770       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8064.504     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2741 TOTAL
                     EDM=   .72E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9562        2.2675       -.46969E-07    .11221E-05
   2  norm          19.565        7.5982       -.14632E-06   -.19259E-04
   3  Prefactor     8.4196        19.234       -.94204E-07    .59670E-06
   4  Prefactor     7.4796        18.210       -.20374E-06   -.65524E-06
   5  Prefactor     .10000E-03    2.9404       -.37304E-08** at limit **
   6  Prefactor     9.5374        12.000        .95745E-07    .67822E-05
   7  norm          4.5262        3.9954       -.53385E-07   -.73553E-05
   8  Prefactor     117.95        89.221        .79666E-06    .61742E-06
   9  norm          4.0451        14.328       -.45163E-05    .25900E-05
  10  norm          .10000E-03    36.851       -.82399E-06** at limit **
  11  norm          .10000E-03    4.4350       -.62331E-08** at limit **
  12  Prefactor     4.2371        3.7491       -.22449E-07    .48561E-04
  13  Prefactor     26.632        30.380        .70075E-07   -.89561E-06
  14  Prefactor     .10000E-03    118.51        .28254E-05** at limit **
  15  Prefactor     .10000E-03    137.26       -.16573E-04** at limit **
  16  Prefactor     1.6563        28.447       -.26462E-06    .16143E-04
  17  Prefactor     .10000E-03    81.916        .81046E-05** at limit **
  18  norm          11.370        5.2103        .38201E-07   -.11924E-03
  19  Prefactor     .10000E-03    17.618       -.13593E-06** at limit **
  20  Prefactor     .10000E-03    110.85        .46856E-05** at limit **
  21  Prefactor     .10000E-03    7.5403       -.57961E-07** at limit **
  22  Prefactor     51.724        45.937       -.21475E-06   -.26613E-05
  23  Normalizat    1.3844        .25530        .56034E-06   -.52650E-05
  24  Prefactor     .82776        .10122       -.28005E-06    .20244E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.95622
  norm       = 19.5647
  Prefactor  = 8.41958
  Prefactor  = 7.47956
  Prefactor  = 0.0001
  Prefactor  = 9.5374
  norm       = 4.52621
  Prefactor  = 117.951
  norm       = 4.04507
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.23709
  Prefactor  = 26.6316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.65635
  Prefactor  = 0.0001
  norm       = 11.3702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.7238
  Normalizat = 1.38437
  Prefactor  = 0.827765
 **********
 **   18 **HESSE 
 **********

 FCN=   8064.504     FROM HESSE     STATUS=OK           403 CALLS     3144 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9562        2.2564        .14158E-03   -1.5428    
   2  norm          19.565        7.5997        .90553E-04   -1.4823    
   3  Prefactor     8.4196        19.044        .13817E-03   -1.5128    
   4  Prefactor     7.4796        18.192        .14666E-03   -1.5161    
   5  Prefactor     .10000E-03    2.9434        .15038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.5374        11.899        .12978E-03   -1.5090    
   7  norm          4.5262        3.9950        .16291E-03   -1.5282    
   8  Prefactor     117.95        89.307        .37051E-04   -1.3532    
   9  norm          4.0451        14.356        .10024E-02   -1.5306    
  10  norm          .10000E-03    37.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.4495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.2371        3.7519        .15573E-03   -1.5296    
  13  Prefactor     26.632        30.382        .77631E-04   -1.4675    
  14  Prefactor     .10000E-03    118.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    137.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.6563        28.593        .32749E-03   -1.5451    
  17  Prefactor     .10000E-03    79.838        .51999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.370        5.1494        .11881E-03   -1.5033    
  19  Prefactor     .10000E-03    17.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    114.28        .36301E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.5528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     51.724        45.951        .55764E-04   -1.4268    
  23  Normalizat    1.3844        .30865        .35321E-03   -.81082    
  24  Prefactor     .82776        .12350        .18030E-03   -.98713    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29445e-11
Minuit parameter uncertainties:
  1  2.25646
  2  7.60011
  3  19.058
  4  18.2057
  5  7.2048e-07
  6  11.9015
  7  3.99523
  8  89.4093
  9  14.3686
  10  2.9188e-07
  11  4.51522e-07
  12  3.75208
  13  30.3992
  14  0.000103004
  15  0.00019925
  16  13.7709
  17  7.59069e-06
  18  5.14956
  19  1.05215e-05
  20  0.000374556
  21  1.94031e-06
  22  45.9828
  23  0.309062
  24  0.123538
Done.

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

Extracting fit parameters...

4FGL J1352.7-2742
   Spectrum: PowerLaw
296    Prefactor:  4.237e+00  3.752e+00  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  2.663e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  7.623e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
660    Prefactor:  8.278e-01  1.235e-01  0.000e+00  1.000e+01 ( 1.000e+00)
661        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
662        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
659   Normalization:  1.384e+00  3.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.78
Ra Dec: 208.190 -27.705
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 5.70e-08 +/- 5.04e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.25e-05

TS (Fixed Index): 1.78
Ra Dec: 208.190 -27.705
Photon Flux Upper Limit: 1.64e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.29e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/38565/likelihoodResults_383702401_383961601_4FGL_J1352.7-2742_daily_bin557.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) = 8064.26602272
delta logL = 0.237783308112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8064.19978864
delta logL = 0.304017387131

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2112       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9625       1.0000          .0000       10.000    
     3 'Normalizat'    1.4234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81592       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6630E+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=   8064.200     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      259 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2130        5.4999        .16108E-03    .55405E-04
   2  Index         1.9624        .71687        .10504E-01   -.16702E-03
   3  Normalizat    1.4235        .30095        .34904E-03   -.37833E-03
   4  Prefactor     .81589        .12198        .18141E-03   -.78826E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.21304
  Index      = 1.96236
  Normalizat = 1.42351
  Prefactor  = 0.815889
 **********
 **   18 **HESSE 
 **********

 FCN=   8064.200     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2130        5.5612        .64431E-05   -1.5209    
   2  Index         1.9624        .72484        .21009E-02   -.65294    
   3  Normalizat    1.4235        .30128        .69808E-04   -.79951    
   4  Prefactor     .81589        .12209        .36282E-04   -.99145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90463e-10
Minuit parameter uncertainties:
  1  5.56163
  2  0.728925
  3  0.301657
  4  0.122127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38565': 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) = 8064.19978842
delta logL = 0.304017601095

Extracting fit parameters...

4FGL J1352.7-2742
   Spectrum: PowerLaw
296    Prefactor:  6.213e+00  5.562e+00  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  1.962e+00  7.289e-01  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  7.623e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
660    Prefactor:  8.159e-01  1.221e-01  0.000e+00  1.000e+01 ( 1.000e+00)
661        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
662        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
659   Normalization:  1.424e+00  3.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.36
Ra Dec: 208.190 -27.705
Photon Index (Free Index): 1.96 +/- 0.73
Photon Flux (Free Index): 3.47e-08 +/- 4.52e-08
Energy Flux (Free Index): 2.64e-05 +/- 3.28e-05

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/38565/cmap_HighResolution_383702401_383961601_4FGL_J1352.7-2742_daily_bin557.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', comment='SUCCESS', photon_flux='5.70e-08', energy_flux2='2.64e-05', photon_flux_error='5.04e-08', dlogl='3.04e-01', energy_flux='1.41e-05', photon_flux2='3.47e-08', job_status='DONE', time_completed='2021-09-08 16:51:56.289336', photon_index_error2='0.73', photon_index2='1.96', ts='1.78', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.64e-07', energy_flux_error2='3.28e-05', EG='1.38', time_epoch_completed='1631145116.29', return_code='0', job_id='38565', GAL2='0.82', EG2='1.42', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='4.52e-08', ts2='2.36', photon_index='2.66' WHERE bin_id='557' AND source_name='4FGL J1352.7-2742' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 16:51:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 38565: <4FGL_J1352.7-2742_daily_bin557> in cluster <slac> Done

Job <4FGL_J1352.7-2742_daily_bin557> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 16:35:21 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 16:35:28 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:35:28 2021
Terminated at Wed Sep  8 16:51:56 2021
Results reported at Wed Sep  8 16:51:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1352.7-2742_daily_bin557 208.19 -27.7052 383702401 383961601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1352.7-2742 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   966.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             367.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            995 sec.

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

