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


Performing analysis on: 4FGL_J1352.7-2742_daily_bin929
RA = 208.19, Dec = -27.7052
tmin = 480124801, tmax = 480384001
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='41372', job_status='RUN', time_executed='2021-09-08 16:46:14.653201', time_epoch_executed='1631144774.65' WHERE source_name='4FGL J1352.7-2742' and cadence='daily' and bin_id='929'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/41372

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/41372/ft1_4FGL_J1352.7-2742_daily_bin929.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/41372/ft2_4FGL_J1352.7-2742_daily_bin929.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/41372/ft1_4FGL_J1352.7-2742_daily_bin929.fits outfile=/scratch/kocevski/41372/ft1_filteredMKT_4FGL_J1352.7-2742_daily_bin929.fits ra=208.19 dec=-27.7052 rad=12.0 tmin=480124801.0 tmax=480384001.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.02
user 2.80
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/41372/ft1_filtered_4FGL_J1352.7-2742_daily_bin929.fits" evtable="EVENTS" scfile=/scratch/kocevski/41372/ft2_4FGL_J1352.7-2742_daily_bin929.fits sctable="SC_DATA" outfile=/scratch/kocevski/41372/ltcube_480124801_480384001_4FGL_J1352.7-2742_daily_bin929.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/41372/ft2_4FGL_J1352.7-2742_daily_bin929.fits
.....................!
real 14.98
user 14.59
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/41372/ft1_filtered_4FGL_J1352.7-2742_daily_bin929.fits evtable="EVENTS" scfile=/scratch/kocevski/41372/ft2_4FGL_J1352.7-2742_daily_bin929.fits sctable="SC_DATA" expcube=/scratch/kocevski/41372/ltcube_480124801_480384001_4FGL_J1352.7-2742_daily_bin929.fits outfile=/scratch/kocevski/41372/expmap_480124801_480384001_4FGL_J1352.7-2742_daily_bin929.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/41372/ltcube_480124801_480384001_4FGL_J1352.7-2742_daily_bin929.fits
.....................!
real 158.02
user 151.90
sys 5.45

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/41372/ft1_filtered_4FGL_J1352.7-2742_daily_bin929.fits scfile=/scratch/kocevski/41372/ft2_4FGL_J1352.7-2742_daily_bin929.fits outfile=/scratch/kocevski/41372/cmap_480124801_480384001_4FGL_J1352.7-2742_daily_bin929.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.55
user 0.33
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/41372/ft1_filtered_4FGL_J1352.7-2742_daily_bin929.fits scfile=/scratch/kocevski/41372/ft2_4FGL_J1352.7-2742_daily_bin929.fits outfile=/scratch/kocevski/41372/cmap_HighResolution_480124801_480384001_4FGL_J1352.7-2742_daily_bin929.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.51
user 0.35
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/41372/ft1_filtered_4FGL_J1352.7-2742_daily_bin929.fits evtable="EVENTS" scfile=/scratch/kocevski/41372/ft2_4FGL_J1352.7-2742_daily_bin929.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/41372/Model_4FGL_J1352.7-2742_daily_bin929.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/41372/ft1_filtered_4FGL_J1352.7-2742_daily_bin929.fits.....................!
real 119.30
user 117.00
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/41372/ft1_filtered_4FGL_J1352.7-2742_daily_bin929.fits', '/scratch/kocevski/41372/ft2_4FGL_J1352.7-2742_daily_bin929.fits', expMap='/scratch/kocevski/41372/expmap_480124801_480384001_4FGL_J1352.7-2742_daily_bin929.fits', expCube='/scratch/kocevski/41372/ltcube_480124801_480384001_4FGL_J1352.7-2742_daily_bin929.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/41372/Model_4FGL_J1352.7-2742_daily_bin929.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/41372/ft1_filtered_4FGL_J1352.7-2742_daily_bin929.fits
Spacecraft file(s): /scratch/kocevski/41372/ft2_4FGL_J1352.7-2742_daily_bin929.fits
Exposure map: /scratch/kocevski/41372/expmap_480124801_480384001_4FGL_J1352.7-2742_daily_bin929.fits
Exposure cube: /scratch/kocevski/41372/ltcube_480124801_480384001_4FGL_J1352.7-2742_daily_bin929.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/41372/Model_4FGL_J1352.7-2742_daily_bin929.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) = 8705.78059415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19448E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.149       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .36772       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.7997       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .38214E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    18.598       1.0000         .10000E-03   10000.    
    11 'norm      '    .15980E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.2920       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.818       1.0000         .10000E-03   10000.    
    14 'Prefactor '    45.373       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1321       1.0000         .10000E-03   10000.    
    18 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15942E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.087       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10513E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.7398       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5144       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .80367       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=   8705.776     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2764 TOTAL
                     EDM=   .90E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4720       -.98752E-07** at limit **
   2  norm          10.149        6.7618       -.26760E-06    .18358E-04
   3  Prefactor     .36111        7.0050        .44557E-06   -.28787E-04
   4  Prefactor     .10000E-03    15.507       -.18417E-06** at limit **
   5  Prefactor     6.7990        10.421       -.13550E-05   -.64832E-04
   6  Prefactor     .10000E-03    4.3612        .13132E-06** at limit **
   7  norm          .10000E-03    2.4019        .13320E-06** at limit **
   8  Prefactor     .10000E-03    65.770       -.75902E-06** at limit **
   9  norm          .10000E-03    145.17        .33537E-04** at limit **
  10  norm          18.601        26.612       -.38950E-06   -.63680E-05
  11  norm          .10000E-03    23.065        .41812E-06** at limit **
  12  Prefactor     6.2795        4.4693        .52781E-07   -.10466E-03
  13  Prefactor     18.872        33.697        .14814E-05   -.16149E-04
  14  Prefactor     45.384        54.577        .12353E-05   -.14139E-04
  15  Prefactor     .10000E-03    15.335        .45405E-06** at limit **
  16  Prefactor     .10000E-03    4.7969        .18475E-07** at limit **
  17  Prefactor     4.1278        13.591       -.49380E-05   -.11752E-04
  18  norm          .10000E-03    1.3061       -.20490E-07** at limit **
  19  Prefactor     .10000E-03    33.375        .12068E-06** at limit **
  20  Prefactor     21.081        27.959        .19733E-06   -.14050E-04
  21  Prefactor     .10000E-03    8.5746        .18314E-07** at limit **
  22  Prefactor     2.8424        113.81        .82870E-05   -.52824E-05
  23  Normalizat    1.5146        .23835       -.95795E-06   -.27552E-03
  24  Prefactor     .80362        .94827E-01    .53362E-06   -.44501E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 10.1489
  Prefactor  = 0.361114
  Prefactor  = 0.0001
  Prefactor  = 6.79904
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 18.6015
  norm       = 0.0001
  Prefactor  = 6.27953
  Prefactor  = 18.8725
  Prefactor  = 45.3841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.12785
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.0815
  Prefactor  = 0.0001
  Prefactor  = 2.84237
  Normalizat = 1.51456
  Prefactor  = 0.803619
 **********
 **   18 **HESSE 
 **********

 FCN=   8705.776     FROM HESSE     STATUS=OK           399 CALLS     3163 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.5923        .21994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.149        6.7658        .12578E-03   -1.5071    
   3  Prefactor     .36111        82.026        .46941E-02   -1.5588    
   4  Prefactor     .10000E-03    15.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.7990        10.295        .76934E-03   -1.5186    
   6  Prefactor     .10000E-03    4.3752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.4363        .14121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    66.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    140.47        .77659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          18.601        26.612        .92874E-04   -1.4845    
  11  norm          .10000E-03    24.036        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.2795        4.4816        .15406E-03   -1.5207    
  13  Prefactor     18.872        33.723        .92329E-04   -1.4839    
  14  Prefactor     45.384        54.613        .59522E-04   -1.4360    
  15  Prefactor     .10000E-03    15.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.7985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.1278        13.599        .99150E-03   -1.5302    
  18  norm          .10000E-03    1.3123        .10410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    33.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.081        27.949        .87224E-04   -1.4789    
  21  Prefactor     .10000E-03    8.6024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.8424        113.91        .24597E-03   -1.5371    
  23  Normalizat    1.5146        .29258        .33124E-03   -.77370    
  24  Prefactor     .80362        .11534        .17835E-03   -.99595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06659e-08
Minuit parameter uncertainties:
  1  3.33909e-05
  2  6.76631
  3  10.8986
  4  6.25669e-05
  5  10.2979
  6  1.32006e-05
  7  8.6849e-06
  8  0.000248392
  9  0.000179015
  10  26.6291
  11  0.000102662
  12  4.48189
  13  33.7573
  14  54.6736
  15  1.33662e-06
  16  2.08483e-06
  17  13.6088
  18  2.84966e-06
  19  1.2466e-06
  20  27.9663
  21  6.83643e-06
  22  36.0614
  23  0.292908
  24  0.115378
Done.

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

Extracting fit parameters...

4FGL J1352.7-2742
   Spectrum: PowerLaw
296    Prefactor:  6.280e+00  4.482e+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.036e-01  1.154e-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.515e+00  2.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.85
Ra Dec: 208.190 -27.705
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 8.44e-08 +/- 6.02e-08
Energy Flux (Fixed Index): 2.09e-05 +/- 1.49e-05

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

Saving results to:
/scratch/kocevski/41372/likelihoodResults_480124801_480384001_4FGL_J1352.7-2742_daily_bin929.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) = 8705.14182152
delta logL = 0.634474906203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8705.08651532
delta logL = 0.689781105042

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5291       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8478       1.0000          .0000       10.000    
     3 'Normalizat'    1.4273       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83119       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.

 FCN=   8705.087     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      257 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5282        10.900        .86303E-02    .88763E-03
   2  Index         3.8482        2.4842        .13455        .18859E-03
   3  Normalizat    1.4272        .66983E-01    .76667E-01    .96792E-05
   4  Prefactor     .83123        .27138E-01    .44122E-01   -.17084E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.52823
  Index      = 3.84821
  Normalizat = 1.42725
  Prefactor  = 0.831228
 **********
 **   18 **HESSE 
 **********

 FCN=   8705.087     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      290 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5282        22.220        .60779E-04   -1.5461    
   2  Index         3.8482        3.9270        .49282E-02   -.23245    
   3  Normalizat    1.4272        .27284        .33930E-03   -.79844    
   4  Prefactor     .83123        .11148        .17568E-03   -.98587    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.05759e-07
Minuit parameter uncertainties:
  1  11.6595
  2  4.56988
  3  0.273122
  4  0.111514
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/41372': 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) = 8705.08651522
delta logL = 0.689781198498

Extracting fit parameters...

4FGL J1352.7-2742
   Spectrum: PowerLaw
296    Prefactor:  1.528e+00  1.166e+01  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  3.848e+00  4.570e+00  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.312e-01  1.115e-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.427e+00  2.731e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.50
Ra Dec: 208.190 -27.705
Photon Index (Free Index): 3.85 +/- 4.57
Photon Flux (Free Index): 1.34e-07 +/- 7.48e-08
Energy Flux (Free Index): 2.05e-05 +/- 2.00e-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/41372/cmap_HighResolution_480124801_480384001_4FGL_J1352.7-2742_daily_bin929.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.57e-02', comment='SUCCESS', photon_flux='8.44e-08', energy_flux2='2.05e-05', photon_flux_error='6.02e-08', dlogl='6.90e-01', energy_flux='2.09e-05', photon_flux2='1.34e-07', job_status='DONE', time_completed='2021-09-08 17:00:15.668533', photon_index_error2='4.57', photon_index2='3.85', ts='2.85', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.99e-07', energy_flux_error2='2.00e-05', EG='1.51', time_epoch_completed='1631145615.67', return_code='0', job_id='41372', GAL2='0.83', EG2='1.43', return_code2='102', energy_flux_error='1.49e-05', photon_flux_error2='7.48e-08', ts2='4.50', photon_index='2.66' WHERE bin_id='929' AND source_name='4FGL J1352.7-2742' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:00:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 41372: <4FGL_J1352.7-2742_daily_bin929> in cluster <slac> Done

Job <4FGL_J1352.7-2742_daily_bin929> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 16:45:28 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 16:46:03 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:46:03 2021
Terminated at Wed Sep  8 17:00:16 2021
Results reported at Wed Sep  8 17:00:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1352.7-2742_daily_bin929 208.19 -27.7052 480124801 480384001 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 :                                   834.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            888 sec.

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

