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


Performing analysis on: 4FGL_J1352.7-2742_daily_bin961
RA = 208.19, Dec = -27.7052
tmin = 488419201, tmax = 488678401
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='41422', job_status='RUN', time_executed='2021-09-08 16:46:51.331215', time_epoch_executed='1631144811.33' WHERE source_name='4FGL J1352.7-2742' and cadence='daily' and bin_id='961'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/41422

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/41422/ft1_4FGL_J1352.7-2742_daily_bin961.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/41422/ft2_4FGL_J1352.7-2742_daily_bin961.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/41422/ft1_4FGL_J1352.7-2742_daily_bin961.fits outfile=/scratch/kocevski/41422/ft1_filteredMKT_4FGL_J1352.7-2742_daily_bin961.fits ra=208.19 dec=-27.7052 rad=12.0 tmin=488419201.0 tmax=488678401.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 7.22
user 6.91
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/41422/ft2_4FGL_J1352.7-2742_daily_bin961.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/41422/ft1_filteredMKT_4FGL_J1352.7-2742_daily_bin961.fits evtable="EVENTS" outfile="/scratch/kocevski/41422/ft1_filtered_4FGL_J1352.7-2742_daily_bin961.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/41422/ft1_filtered_4FGL_J1352.7-2742_daily_bin961.fits" evtable="EVENTS" scfile=/scratch/kocevski/41422/ft2_4FGL_J1352.7-2742_daily_bin961.fits sctable="SC_DATA" outfile=/scratch/kocevski/41422/ltcube_488419201_488678401_4FGL_J1352.7-2742_daily_bin961.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/41422/ft2_4FGL_J1352.7-2742_daily_bin961.fits
.....................!
real 14.01
user 13.56
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/41422/ft1_filtered_4FGL_J1352.7-2742_daily_bin961.fits evtable="EVENTS" scfile=/scratch/kocevski/41422/ft2_4FGL_J1352.7-2742_daily_bin961.fits sctable="SC_DATA" expcube=/scratch/kocevski/41422/ltcube_488419201_488678401_4FGL_J1352.7-2742_daily_bin961.fits outfile=/scratch/kocevski/41422/expmap_488419201_488678401_4FGL_J1352.7-2742_daily_bin961.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/41422/ltcube_488419201_488678401_4FGL_J1352.7-2742_daily_bin961.fits
.....................!
real 192.76
user 187.16
sys 4.99

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/41422/ft1_filtered_4FGL_J1352.7-2742_daily_bin961.fits scfile=/scratch/kocevski/41422/ft2_4FGL_J1352.7-2742_daily_bin961.fits outfile=/scratch/kocevski/41422/cmap_488419201_488678401_4FGL_J1352.7-2742_daily_bin961.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.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/41422/ft1_filtered_4FGL_J1352.7-2742_daily_bin961.fits scfile=/scratch/kocevski/41422/ft2_4FGL_J1352.7-2742_daily_bin961.fits outfile=/scratch/kocevski/41422/cmap_HighResolution_488419201_488678401_4FGL_J1352.7-2742_daily_bin961.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.58
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/41422/ft1_filtered_4FGL_J1352.7-2742_daily_bin961.fits evtable="EVENTS" scfile=/scratch/kocevski/41422/ft2_4FGL_J1352.7-2742_daily_bin961.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/41422/Model_4FGL_J1352.7-2742_daily_bin961.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/41422/ft1_filtered_4FGL_J1352.7-2742_daily_bin961.fits.....................!
real 102.10
user 100.01
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.361       1.0000         .10000E-03   10000.    
     2 'norm      '    19.095       1.0000         .10000E-03   10000.    
     3 'Prefactor '    48.457       1.0000         .10000E-03   10000.    
     4 'Prefactor '    109.46       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.7661       1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11385E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .12039E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    20.434       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7176       1.0000         .10000E-03   10000.    
    13 'Prefactor '    125.02       1.0000         .10000E-03   10000.    
    14 'Prefactor '    115.71       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    49.852       1.0000         .10000E-03   10000.    
    18 'norm      '    1.3518       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.1306       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0083       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98581       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5815.689     FROM MIGRAD    STATUS=CONVERGED     83 CALLS     2270 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.362        4.7291       -.22160E-05   -.27607E-02
   2  norm          19.095        1.0163        .48361E-07   -.10861E-03
   3  Prefactor     48.448        1.4812        .52269E-06   -.70456E-03
   4  Prefactor     109.46        1.3973       -.20732E-06    .33553E-02
   5  Prefactor     .10002E-03    9.5920        .31951E-06** at limit **
   6  Prefactor     6.7596        2.7329        .33413E-05   -.12380E-02
   7  norm          .10000E-03    1.8316       -.15441E-05** at limit **
   8  Prefactor     .10390E-03    52.049        .91041E-05** at limit **
   9  norm          .10013E-03    7.4649       -.13592E-05** at limit **
  10  norm          .13759E-03    66.848        .42112E-04** at limit **
  11  norm          20.432        1.4617        .96907E-06    .58012E-03
  12  Prefactor     2.7191        4.9910        .91315E-05    .35659E-02
  13  Prefactor     125.02        1.1943       -.15988E-06    .21554E-02
  14  Prefactor     115.71        1.8331       -.40180E-06    .53363E-02
  15  Prefactor     .14782E-03    56.838       -.45663E-05** at limit **
  16  Prefactor     .10004E-03    9.9025       -.49986E-05** at limit **
  17  Prefactor     49.855        1.0741       -.18047E-06    .25273E-03
  18  norm          1.3511        4.9897        .15658E-05   -.16571E-03
  19  Prefactor     .10073E-03    20.124        .78445E-05** at limit **
  20  Prefactor     9.1375        1.3044        .47889E-06   -.58454E-03
  21  Prefactor     .10083E-03    14.358       -.14240E-04** at limit **
  22  Prefactor     .10034E-03    10.981        .73876E-05** at limit **
  23  Normalizat    1.0085        .39385       -.11100E-04    .12715E-04
  24  Prefactor     .98562        .15825        .41124E-05    .58085E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.3615
  norm       = 19.0949
  Prefactor  = 48.4483
  Prefactor  = 109.455
  Prefactor  = 0.000100024
  Prefactor  = 6.75961
  norm       = 0.0001
  Prefactor  = 0.000103899
  norm       = 0.000100133
  norm       = 0.00013759
  norm       = 20.4315
  Prefactor  = 2.71907
  Prefactor  = 125.018
  Prefactor  = 115.705
  Prefactor  = 0.000147825
  Prefactor  = 0.000100045
  Prefactor  = 49.8546
  norm       = 1.35115
  Prefactor  = 0.000100735
  Prefactor  = 9.13752
  Prefactor  = 0.000100831
  Prefactor  = 0.000100338
  Normalizat = 1.0085
  Prefactor  = 0.98562
 **********
 **   18 **HESSE 
 **********

 FCN=   5815.689     FROM HESSE     STATUS=OK           443 CALLS     2713 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.362        4.7349        .31120E-02   -1.5064    
   2  norm          19.095        9.9688        .22914E-02   -1.4834    
   3  Prefactor     48.448        35.625        .14401E-02   -1.4315    
   4  Prefactor     109.46        58.052        .96109E-03   -1.3612    
   5  Prefactor     .10002E-03    9.5933        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.7596        28.322        .38564E-02   -1.5188    
   7  norm          .10000E-03    1.8304        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10390E-03    158.48        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10013E-03    15.913        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .13759E-03    129.42        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          20.432        16.206        .22151E-02   -1.4804    
  12  Prefactor     2.7191        5.3587        .61763E-02   -1.5378    
  13  Prefactor     125.02        70.098        .90000E-03   -1.3467    
  14  Prefactor     115.71        122.46        .93507E-03   -1.3552    
  15  Prefactor     .14782E-03    174.61        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10004E-03    9.9899        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     49.855        27.259        .14199E-02   -1.4295    
  18  norm          1.3511        5.1638        .94054E-02   -1.5475    
  19  Prefactor     .10073E-03    21.911        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.1375        36.425        .33159E-02   -1.5103    
  21  Prefactor     .10083E-03    19.116        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10034E-03    14.917        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0085        .35290        .10190       -.92746    
  24  Prefactor     .98562        .13441        .46090E-01   -.93210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15993e-06
Minuit parameter uncertainties:
  1  4.73512
  2  9.96965
  3  35.6407
  4  58.0823
  5  0.000968593
  6  27.6948
  7  5.59736e-06
  8  0.0498485
  9  0.00290744
  10  0.139798
  11  16.2095
  12  5.35962
  13  70.1447
  14  122.725
  15  0.1833
  16  0.00133433
  17  27.266
  18  5.16545
  19  0.00802719
  20  36.5139
  21  0.00797603
  22  0.00449243
  23  0.353725
  24  0.134458
Done.

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

Extracting fit parameters...

4FGL J1352.7-2742
   Spectrum: PowerLaw
296    Prefactor:  2.719e+00  5.360e+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:  9.856e-01  1.345e-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.009e+00  3.537e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/41422/likelihoodResults_488419201_488678401_4FGL_J1352.7-2742_daily_bin961.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) = 5815.68901319
delta logL = 1.96878281713e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5815.68901276
delta logL = 2.01216598725e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7190       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6692       1.0000          .0000       10.000    
     3 'Normalizat'    1.0081       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98570       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=   5815.689     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      191 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6980        12.885        .61746E-02    .56461E-03
   2  Index         2.6714        2.2448        .22982E-01    .34875E-04
   3  Normalizat    1.0083        .33389        .10191        .30476E-04
   4  Prefactor     .98569        .13289        .46088E-01    .94085E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.69796
  Index      = 2.6714
  Normalizat = 1.00828
  Prefactor  = 0.985685
 **********
 **   18 **HESSE 
 **********

 FCN=   5815.689     FROM HESSE     STATUS=OK            31 CALLS      222 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6980        5.8552        .22369E-03   -1.5379    
   2  Index         2.6714        1.1624        .91928E-03   -.48445    
   3  Normalizat    1.0083        .39420        .45156E-03   -.92753    
   4  Prefactor     .98569        .15725        .18222E-03   -.93208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67022e-12
Minuit parameter uncertainties:
  1  5.85643
  2  1.17622
  3  0.395348
  4  0.157322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/41422': 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) = 5815.68900621
delta logL = 2.66700308202e-05

Extracting fit parameters...

4FGL J1352.7-2742
   Spectrum: PowerLaw
296    Prefactor:  2.698e+00  5.856e+00  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  2.671e+00  1.176e+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:  9.857e-01  1.573e-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.008e+00  3.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.35
Ra Dec: 208.190 -27.705

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/41422/cmap_HighResolution_488419201_488678401_4FGL_J1352.7-2742_daily_bin961.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.59e-02', job_status='DONE', photon_flux_upper_limit='2.03e-07', time_completed='2021-09-08 16:59:20.100264', job_id='41422', GAL2='0.99', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1631145560.1', return_code2='0', ts='0.35', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.67e-05', ts2='0.35', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='961' AND source_name='4FGL J1352.7-2742' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 16:59:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 41422: <4FGL_J1352.7-2742_daily_bin961> in cluster <slac> Done

Job <4FGL_J1352.7-2742_daily_bin961> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 16:45:32 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 16:46:38 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:38 2021
Terminated at Wed Sep  8 16:59:20 2021
Results reported at Wed Sep  8 16:59:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1352.7-2742_daily_bin961 208.19 -27.7052 488419201 488678401 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 :                                   743.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            828 sec.

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

