/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 49 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 = 7493
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1352.7-2742_daily_bin285
RA = 208.19, Dec = -27.7052
tmin = 313200001, tmax = 313459201
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='37140', job_status='RUN', time_executed='2021-09-08 16:32:11.755093', time_epoch_executed='1631143931.76' WHERE source_name='4FGL J1352.7-2742' and cadence='daily' and bin_id='285'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/37140

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/37140/ft1_4FGL_J1352.7-2742_daily_bin285.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/37140/ft2_4FGL_J1352.7-2742_daily_bin285.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/37140/ft1_4FGL_J1352.7-2742_daily_bin285.fits outfile=/scratch/kocevski/37140/ft1_filteredMKT_4FGL_J1352.7-2742_daily_bin285.fits ra=208.19 dec=-27.7052 rad=12.0 tmin=313200001.0 tmax=313459201.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.40
user 3.16
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/37140/ft2_4FGL_J1352.7-2742_daily_bin285.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/37140/ft1_filteredMKT_4FGL_J1352.7-2742_daily_bin285.fits evtable="EVENTS" outfile="/scratch/kocevski/37140/ft1_filtered_4FGL_J1352.7-2742_daily_bin285.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/37140/ft1_filtered_4FGL_J1352.7-2742_daily_bin285.fits" evtable="EVENTS" scfile=/scratch/kocevski/37140/ft2_4FGL_J1352.7-2742_daily_bin285.fits sctable="SC_DATA" outfile=/scratch/kocevski/37140/ltcube_313200001_313459201_4FGL_J1352.7-2742_daily_bin285.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/37140/ft2_4FGL_J1352.7-2742_daily_bin285.fits
.....................!
real 14.86
user 14.44
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/37140/ft1_filtered_4FGL_J1352.7-2742_daily_bin285.fits evtable="EVENTS" scfile=/scratch/kocevski/37140/ft2_4FGL_J1352.7-2742_daily_bin285.fits sctable="SC_DATA" expcube=/scratch/kocevski/37140/ltcube_313200001_313459201_4FGL_J1352.7-2742_daily_bin285.fits outfile=/scratch/kocevski/37140/expmap_313200001_313459201_4FGL_J1352.7-2742_daily_bin285.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/37140/ltcube_313200001_313459201_4FGL_J1352.7-2742_daily_bin285.fits
.....................!
real 191.32
user 185.51
sys 5.04

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/37140/ft1_filtered_4FGL_J1352.7-2742_daily_bin285.fits scfile=/scratch/kocevski/37140/ft2_4FGL_J1352.7-2742_daily_bin285.fits outfile=/scratch/kocevski/37140/cmap_313200001_313459201_4FGL_J1352.7-2742_daily_bin285.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/37140/ft1_filtered_4FGL_J1352.7-2742_daily_bin285.fits scfile=/scratch/kocevski/37140/ft2_4FGL_J1352.7-2742_daily_bin285.fits outfile=/scratch/kocevski/37140/cmap_HighResolution_313200001_313459201_4FGL_J1352.7-2742_daily_bin285.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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/37140/ft1_filtered_4FGL_J1352.7-2742_daily_bin285.fits evtable="EVENTS" scfile=/scratch/kocevski/37140/ft2_4FGL_J1352.7-2742_daily_bin285.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/37140/Model_4FGL_J1352.7-2742_daily_bin285.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/37140/ft1_filtered_4FGL_J1352.7-2742_daily_bin285.fits.....................!
real 110.42
user 108.73
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3450       1.0000         .10000E-03   10000.    
     2 'norm      '    5.9886       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    109.09       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    92.813       1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10654E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8035       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.937       1.0000         .10000E-03   10000.    
    15 'Prefactor '    53.513       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    42.466       1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.752       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10859E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.438       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.8460       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .66304       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=   6363.047     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2664 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3450        2.3864       -.22101E-06   -.42901E-04
   2  norm          5.9884        8.4986       -.15735E-05   -.13522E-03
   3  Prefactor     .10000E-03    3.4203        .83939E-08** at limit **
   4  Prefactor     109.08        44.676       -.38322E-05   -.18779E-04
   5  Prefactor     .10000E-03    8.9787       -.32307E-06** at limit **
   6  Prefactor     .10000E-03    2.7325        .44392E-08** at limit **
   7  norm          .10000E-03    2.6039       -.23291E-07** at limit **
   8  Prefactor     92.808        88.778       -.23605E-05    .13729E-04
   9  norm          .10000E-03    16.603       -.27609E-05** at limit **
  10  norm          .10000E-03    23.915        .22814E-06** at limit **
  11  norm          .10000E-03    13.301        .93629E-05** at limit **
  12  Prefactor     1.8002        6.8113        .54705E-05   -.63160E-03
  13  Prefactor     .10000E-03    27.871       -.17984E-04** at limit **
  14  Prefactor     40.806        109.20       -.16947E-03   -.14186E-04
  15  Prefactor     53.500        58.148       -.10012E-04   -.27686E-04
  16  Prefactor     .10000E-03    31.792        .13914E-04** at limit **
  17  Prefactor     42.464        26.016        .10827E-04    .65002E-04
  18  norm          .10000E-03    1.7604       -.87607E-07** at limit **
  19  Prefactor     .10000E-03    17.926        .13045E-04** at limit **
  20  Prefactor     11.676        39.724       -.39803E-05    .27126E-04
  21  Prefactor     .10000E-03    14.479       -.14689E-04** at limit **
  22  Prefactor     25.432        51.489       -.74692E-05    .37791E-05
  23  Normalizat    1.8458        .30603        .56035E-05   -.19393E-03
  24  Prefactor     .66307        .11289        .21315E-05   -.53228E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.34498
  norm       = 5.98838
  Prefactor  = 0.0001
  Prefactor  = 109.082
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 92.8084
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.80023
  Prefactor  = 0.0001
  Prefactor  = 40.8065
  Prefactor  = 53.4998
  Prefactor  = 0.0001
  Prefactor  = 42.4636
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6759
  Prefactor  = 0.0001
  Prefactor  = 25.4316
  Normalizat = 1.84585
  Prefactor  = 0.663074
 **********
 **   18 **HESSE 
 **********

 FCN=   6363.047     FROM HESSE     STATUS=OK           389 CALLS     3053 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3450        2.3868        .12083E-03   -1.5402    
   2  norm          5.9884        8.5034        .16408E-03   -1.5218    
   3  Prefactor     .10000E-03    3.4219        .14408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     109.08        44.707        .38509E-04   -1.3615    
   5  Prefactor     .10000E-03    9.0119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7340        .12877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.6244        .12569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     92.808        88.843        .41714E-04   -1.3778    
   9  norm          .10000E-03    16.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    23.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    13.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8002        6.7878        .31123E-03   -1.5440    
  13  Prefactor     .10000E-03    27.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     40.806        109.41        .31325E-03   -1.4429    
  15  Prefactor     53.500        58.124        .54830E-04   -1.4244    
  16  Prefactor     .10000E-03    32.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     42.464        26.071        .61517E-04   -1.4404    
  18  norm          .10000E-03    1.7641        .10333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.676        39.738        .11686E-03   -1.5024    
  21  Prefactor     .10000E-03    14.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     25.432        51.539        .79425E-04   -1.4699    
  23  Normalizat    1.8458        .36994        .33320E-03   -.68473    
  24  Prefactor     .66307        .13597        .20005E-03   -1.0499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05112e-09
Minuit parameter uncertainties:
  1  2.38687
  2  8.50507
  3  5.93349e-06
  4  44.7212
  5  3.47734e-05
  6  4.19534e-06
  7  1.57956e-05
  8  88.9706
  9  1.87368e-05
  10  1.27047e-05
  11  9.4443e-05
  12  6.79071
  13  1.77611e-05
  14  109.957
  15  58.1861
  16  0.000131466
  17  26.0776
  18  6.63212e-06
  19  7.94997e-06
  20  39.8281
  21  1.558e-05
  22  51.6292
  23  0.370501
  24  0.136036
Done.

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

Extracting fit parameters...

4FGL J1352.7-2742
   Spectrum: PowerLaw
296    Prefactor:  1.800e+00  6.791e+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:  6.631e-01  1.360e-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.846e+00  3.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/37140/likelihoodResults_313200001_313459201_4FGL_J1352.7-2742_daily_bin285.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) = 6362.87456112
delta logL = 0.172607489088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6362.80703546
delta logL = 0.240133149608

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .71932       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9891       1.0000          .0000       10.000    
     3 'Normalizat'    1.7759       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68115       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=   6362.807     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      216 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71692        14.601        .12136E-01    .13296E-02
   2  Index         3.9910        2.9455        .20586        .86197E-04
   3  Normalizat    1.7760        .52649E-01    .76421E-01    .11088E-03
   4  Prefactor     .68116        .20359E-01    .42150E-01    .12340E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.716921
  Index      = 3.99095
  Normalizat = 1.77604
  Prefactor  = 0.681158
 **********
 **   18 **HESSE 
 **********

 FCN=   6362.807     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      249 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71692        64.417        .88261E-04   -1.5539    
   2  Index         3.9910        6.2258        .74517E-02   -.20320    
   3  Normalizat    1.7760        .32790        .16907E-02   -.70291    
   4  Prefactor     .68116        .12322        .19760E-03   -1.0427    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.73955e-07
Minuit parameter uncertainties:
  1  13.6057
  2  10.646
  3  0.328308
  4  0.123271
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/37140': 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) = 6362.80703475
delta logL = 0.240133859353

Extracting fit parameters...

4FGL J1352.7-2742
   Spectrum: PowerLaw
296    Prefactor:  7.169e-01  1.361e+01  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  3.991e+00  1.065e+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:  6.812e-01  1.233e-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.776e+00  3.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/37140/cmap_HighResolution_313200001_313459201_4FGL_J1352.7-2742_daily_bin285.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.68e-02', job_status='DONE', photon_flux_upper_limit='2.13e-07', time_completed='2021-09-08 16:45:26.365145', job_id='37140', GAL2='0.68', fit_tolerance='1e-08', EG2='1.78', EG='1.85', time_epoch_completed='1631144726.37', return_code2='102', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='2.40e-01', ts2='0.61', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='285' AND source_name='4FGL J1352.7-2742' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 16:45:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 37140: <4FGL_J1352.7-2742_daily_bin285> in cluster <slac> Done

Job <4FGL_J1352.7-2742_daily_bin285> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 16:30:35 2021
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 16:31:09 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:31:09 2021
Terminated at Wed Sep  8 16:45:27 2021
Results reported at Wed Sep  8 16:45:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1352.7-2742_daily_bin285 208.19 -27.7052 313200001 313459201 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 :                                   787.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             358.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            892 sec.

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

